diff --git a/amazon-eks-ami/CHANGELOG.md b/amazon-eks-ami/CHANGELOG.md index cbcf93fe..5837a90c 100644 --- a/amazon-eks-ami/CHANGELOG.md +++ b/amazon-eks-ami/CHANGELOG.md @@ -2,6 +2,1128 @@ +# AMI Release v20241121 + + +## What's Changed +* feat(al2023): warn about bootstrap.sh usage by @cartermckinnon in https://github.com/awslabs/amazon-eks-ami/pull/2056 +* build: pull s3 binaries as root by @ndbaker1 in https://github.com/awslabs/amazon-eks-ami/pull/2058 +* Bump up nvidia-contianer-toolkit version by @Issacwww in https://github.com/awslabs/amazon-eks-ami/pull/2064 + + +**Full Changelog**: https://github.com/awslabs/amazon-eks-ami/compare/v20241115...v20241121 + +--- + +

AMI Details

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI TypeSource AMI Name
AL2023_ARM_64_STANDARDal2023-ami-minimal-2023.6.20241111.0-kernel-6.1-arm64
AL2023_x86_64_NEURONal2023-ami-minimal-2023.6.20241111.0-kernel-6.1-x86_64
AL2023_x86_64_NVIDIAal2023-ami-minimal-2023.6.20241111.0-kernel-6.1-x86_64
AL2023_x86_64_STANDARDal2023-ami-minimal-2023.6.20241111.0-kernel-6.1-x86_64
AL2_ARM_64amzn2-ami-minimal-hvm-2.0.20241113.1-arm64-ebs
AL2_x86_64amzn2-ami-minimal-hvm-2.0.20241113.1-x86_64-ebs
AL2_x86_64_GPUamzn2-ami-minimal-hvm-2.0.20241113.1-x86_64-ebs
+ +
+Kubernetes 1.31 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI NamesRelease versionIncluded artifacts
amazon-eks-node-al2023-x86_64-nvidia-1.31-v202411211.31.2-20241121s3://amazon-eks/1.31.2/2024-11-15/
amazon-eks-node-al2023-x86_64-neuron-1.31-v20241121
amazon-eks-node-al2023-x86_64-standard-1.31-v20241121
amazon-eks-node-1.31-v20241121
amazon-eks-node-al2023-arm64-standard-1.31-v20241121
amazon-eks-arm64-node-1.31-v20241121
amazon-eks-gpu-node-1.31-v20241121
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2_x86_64AL2_ARM_64AL2_x86_64_GPU
amazon-ssm-agent3.3.987.0-1.amzn2
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2.0.2
cuda-12-212.2.2-1
efa2.13.0-1.amzn2
kernel5.10.228-219.884.amzn2
kmod-nvidia-latest-dkms550.127.08-1.el7
nvidia-container-toolkit1.17.2-1
nvidia-driver-latest-dkms550.127.08-1.el7
runc1.1.14-1.amzn2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2023_x86_64_NVIDIAAL2023_x86_64_NEURONAL2023_x86_64_STANDARDAL2023_ARM_64_STANDARD
amazon-ssm-agent3.3.987.0-1.amzn2023
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2023.0.1
efa2.13.0-1.amzn2023
kernel6.1.115-126.197.amzn2023
kmod-nvidia-latest-dkms560.35.05-1.amzn2023
nvidia-container-toolkit1.17.2-1
runc1.1.14-1.amzn2023.0.1
+
+ +
+Kubernetes 1.30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI NamesRelease versionIncluded artifacts
amazon-eks-node-al2023-x86_64-nvidia-1.30-v202411211.30.6-20241121s3://amazon-eks/1.30.6/2024-11-15/
amazon-eks-node-al2023-x86_64-neuron-1.30-v20241121
amazon-eks-node-al2023-x86_64-standard-1.30-v20241121
amazon-eks-node-1.30-v20241121
amazon-eks-node-al2023-arm64-standard-1.30-v20241121
amazon-eks-arm64-node-1.30-v20241121
amazon-eks-gpu-node-1.30-v20241121
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2_x86_64AL2_ARM_64AL2_x86_64_GPU
amazon-ssm-agent3.3.987.0-1.amzn2
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2.0.2
cuda-12-212.2.2-1
efa2.13.0-1.amzn2
kernel5.10.228-219.884.amzn2
kmod-nvidia-latest-dkms550.127.08-1.el7
nvidia-container-toolkit1.17.2-1
nvidia-driver-latest-dkms550.127.08-1.el7
runc1.1.14-1.amzn2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2023_x86_64_NVIDIAAL2023_x86_64_NEURONAL2023_x86_64_STANDARDAL2023_ARM_64_STANDARD
amazon-ssm-agent3.3.987.0-1.amzn2023
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2023.0.1
efa2.13.0-1.amzn2023
kernel6.1.115-126.197.amzn2023
kmod-nvidia-latest-dkms560.35.05-1.amzn2023
nvidia-container-toolkit1.17.2-1
runc1.1.14-1.amzn2023.0.1
+
+ +
+Kubernetes 1.29 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI NamesRelease versionIncluded artifacts
amazon-eks-node-al2023-x86_64-nvidia-1.29-v202411211.29.10-20241121s3://amazon-eks/1.29.10/2024-11-15/
amazon-eks-node-al2023-x86_64-neuron-1.29-v20241121
amazon-eks-node-al2023-x86_64-standard-1.29-v20241121
amazon-eks-node-1.29-v20241121
amazon-eks-node-al2023-arm64-standard-1.29-v20241121
amazon-eks-arm64-node-1.29-v20241121
amazon-eks-gpu-node-1.29-v20241121
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2_x86_64AL2_ARM_64AL2_x86_64_GPU
amazon-ssm-agent3.3.987.0-1.amzn2
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2.0.2
cuda-12-212.2.2-1
efa2.13.0-1.amzn2
kernel5.10.228-219.884.amzn2
kmod-nvidia-latest-dkms550.127.08-1.el7
nvidia-container-toolkit1.17.2-1
nvidia-driver-latest-dkms550.127.08-1.el7
runc1.1.14-1.amzn2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2023_x86_64_NVIDIAAL2023_x86_64_NEURONAL2023_x86_64_STANDARDAL2023_ARM_64_STANDARD
amazon-ssm-agent3.3.987.0-1.amzn2023
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2023.0.1
efa2.13.0-1.amzn2023
kernel6.1.115-126.197.amzn2023
kmod-nvidia-latest-dkms560.35.05-1.amzn2023
nvidia-container-toolkit1.17.2-1
runc1.1.14-1.amzn2023.0.1
+
+ +
+Kubernetes 1.28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI NamesRelease versionIncluded artifacts
amazon-eks-node-al2023-x86_64-nvidia-1.28-v202411211.28.15-20241121s3://amazon-eks/1.28.15/2024-11-15/
amazon-eks-node-al2023-x86_64-neuron-1.28-v20241121
amazon-eks-node-al2023-x86_64-standard-1.28-v20241121
amazon-eks-node-1.28-v20241121
amazon-eks-node-al2023-arm64-standard-1.28-v20241121
amazon-eks-arm64-node-1.28-v20241121
amazon-eks-gpu-node-1.28-v20241121
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2_x86_64AL2_ARM_64AL2_x86_64_GPU
amazon-ssm-agent3.3.987.0-1.amzn2
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2.0.2
cuda-12-212.2.2-1
efa2.13.0-1.amzn2
kernel5.10.228-219.884.amzn2
kmod-nvidia-latest-dkms550.127.08-1.el7
nvidia-container-toolkit1.17.2-1
nvidia-driver-latest-dkms550.127.08-1.el7
runc1.1.14-1.amzn2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2023_x86_64_NVIDIAAL2023_x86_64_NEURONAL2023_x86_64_STANDARDAL2023_ARM_64_STANDARD
amazon-ssm-agent3.3.987.0-1.amzn2023
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2023.0.1
efa2.13.0-1.amzn2023
kernel6.1.115-126.197.amzn2023
kmod-nvidia-latest-dkms560.35.05-1.amzn2023
nvidia-container-toolkit1.17.2-1
runc1.1.14-1.amzn2023.0.1
+
+ +
+Kubernetes 1.27 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI NamesRelease versionIncluded artifacts
amazon-eks-node-al2023-x86_64-nvidia-1.27-v202411211.27.16-20241121s3://amazon-eks/1.27.16/2024-11-15/
amazon-eks-node-al2023-x86_64-neuron-1.27-v20241121
amazon-eks-node-al2023-x86_64-standard-1.27-v20241121
amazon-eks-node-1.27-v20241121
amazon-eks-node-al2023-arm64-standard-1.27-v20241121
amazon-eks-arm64-node-1.27-v20241121
amazon-eks-gpu-node-1.27-v20241121
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2_x86_64AL2_ARM_64AL2_x86_64_GPU
amazon-ssm-agent3.3.987.0-1.amzn2
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2.0.2
cuda-12-212.2.2-1
efa2.13.0-1.amzn2
kernel5.10.228-219.884.amzn2
kmod-nvidia-latest-dkms550.127.08-1.el7
nvidia-container-toolkit1.17.2-1
nvidia-driver-latest-dkms550.127.08-1.el7
runc1.1.14-1.amzn2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2023_x86_64_NVIDIAAL2023_x86_64_NEURONAL2023_x86_64_STANDARDAL2023_ARM_64_STANDARD
amazon-ssm-agent3.3.987.0-1.amzn2023
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2023.0.1
efa2.13.0-1.amzn2023
kernel6.1.115-126.197.amzn2023
kmod-nvidia-latest-dkms560.35.05-1.amzn2023
nvidia-container-toolkit1.17.2-1
runc1.1.14-1.amzn2023.0.1
+
+ +
+Kubernetes 1.26 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI NamesRelease versionIncluded artifacts
amazon-eks-node-al2023-x86_64-nvidia-1.26-v202411211.26.15-20241121s3://amazon-eks/1.26.15/2024-11-15/
amazon-eks-node-al2023-x86_64-neuron-1.26-v20241121
amazon-eks-node-al2023-x86_64-standard-1.26-v20241121
amazon-eks-node-1.26-v20241121
amazon-eks-node-al2023-arm64-standard-1.26-v20241121
amazon-eks-arm64-node-1.26-v20241121
amazon-eks-gpu-node-1.26-v20241121
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2_x86_64AL2_ARM_64AL2_x86_64_GPU
amazon-ssm-agent3.3.987.0-1.amzn2
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2.0.2
cuda-12-212.2.2-1
efa2.13.0-1.amzn2
kernel5.10.228-219.884.amzn2
kmod-nvidia-latest-dkms550.127.08-1.el7
nvidia-container-toolkit1.17.2-1
nvidia-driver-latest-dkms550.127.08-1.el7
runc1.1.14-1.amzn2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2023_x86_64_NVIDIAAL2023_x86_64_NEURONAL2023_x86_64_STANDARDAL2023_ARM_64_STANDARD
amazon-ssm-agent3.3.987.0-1.amzn2023
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2023.0.1
efa2.13.0-1.amzn2023
kernel6.1.115-126.197.amzn2023
kmod-nvidia-latest-dkms560.35.05-1.amzn2023
nvidia-container-toolkit1.17.2-1
runc1.1.14-1.amzn2023.0.1
+
+ +
+Kubernetes 1.25 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI NamesRelease versionIncluded artifacts
amazon-eks-node-al2023-x86_64-nvidia-1.25-v202411211.25.16-20241121s3://amazon-eks/1.25.16/2024-11-15/
amazon-eks-node-al2023-x86_64-neuron-1.25-v20241121
amazon-eks-node-al2023-x86_64-standard-1.25-v20241121
amazon-eks-node-1.25-v20241121
amazon-eks-node-al2023-arm64-standard-1.25-v20241121
amazon-eks-arm64-node-1.25-v20241121
amazon-eks-gpu-node-1.25-v20241121
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2_x86_64AL2_ARM_64AL2_x86_64_GPU
amazon-ssm-agent3.3.987.0-1.amzn2
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2.0.2
cuda-12-212.2.2-1
efa2.13.0-1.amzn2
kernel5.10.228-219.884.amzn2
kmod-nvidia-latest-dkms550.127.08-1.el7
nvidia-container-toolkit1.17.2-1
nvidia-driver-latest-dkms550.127.08-1.el7
runc1.1.14-1.amzn2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2023_x86_64_NVIDIAAL2023_x86_64_NEURONAL2023_x86_64_STANDARDAL2023_ARM_64_STANDARD
amazon-ssm-agent3.3.987.0-1.amzn2023
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2023.0.1
efa2.13.0-1.amzn2023
kernel6.1.115-126.197.amzn2023
kmod-nvidia-latest-dkms560.35.05-1.amzn2023
nvidia-container-toolkit1.17.2-1
runc1.1.14-1.amzn2023.0.1
+
+ +
+Kubernetes 1.24 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AMI NamesRelease versionIncluded artifacts
amazon-eks-node-al2023-x86_64-nvidia-1.24-v202411211.24.17-20241121s3://amazon-eks/1.24.17/2024-11-15/
amazon-eks-node-al2023-x86_64-neuron-1.24-v20241121
amazon-eks-node-al2023-x86_64-standard-1.24-v20241121
amazon-eks-node-1.24-v20241121
amazon-eks-node-al2023-arm64-standard-1.24-v20241121
amazon-eks-arm64-node-1.24-v20241121
amazon-eks-gpu-node-1.24-v20241121
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2_x86_64AL2_ARM_64AL2_x86_64_GPU
amazon-ssm-agent3.3.987.0-1.amzn2
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2.0.2
cuda-12-212.2.2-1
docker25.0.6-1.amzn2.0.2
efa2.13.0-1.amzn2
kernel5.10.228-219.884.amzn2
kmod-nvidia-latest-dkms550.127.08-1.el7
nvidia-container-toolkit1.17.2-1
nvidia-driver-latest-dkms550.127.08-1.el7
runc1.1.14-1.amzn2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PackageAL2023_x86_64_NVIDIAAL2023_x86_64_NEURONAL2023_x86_64_STANDARDAL2023_ARM_64_STANDARD
amazon-ssm-agent3.3.987.0-1.amzn2023
aws-neuronx-dkms2.18.20.0-dkms
containerd1.7.23-1.amzn2023.0.1
efa2.13.0-1.amzn2023
kernel6.1.115-126.197.amzn2023
kmod-nvidia-latest-dkms560.35.05-1.amzn2023
nvidia-container-toolkit1.17.2-1
runc1.1.14-1.amzn2023.0.1
+
+ + +--- + + # AMI Release v20241115 diff --git a/amazon-eks-ami/README.md b/amazon-eks-ami/README.md index 421cdbb8..c02fdf5a 100644 --- a/amazon-eks-ami/README.md +++ b/amazon-eks-ami/README.md @@ -46,7 +46,7 @@ make k8s=1.29 os_distro=al2023 make help ``` -The Makefile chooses a particular kubelet binary to use per Kubernetes version which you can [view here](Makefile). +The Makefile chooses a particular kubelet binary to use per Kubernetes version which you can [view here](https://github.com/awslabs/amazon-eks-ami/blob/main/Makefile). > **Note** > The default instance type to build this AMI does not qualify for the AWS free tier. @@ -54,7 +54,7 @@ The Makefile chooses a particular kubelet binary to use per Kubernetes version w ## 🔒 Security -For security issues or concerns, please do not open an issue or pull request on GitHub. Please report any suspected or confirmed security issues to AWS Security https://aws.amazon.com/security/vulnerability-reporting/ +For security issues or concerns, please do not open an issue or pull request on GitHub. Please report any suspected or confirmed security issues to [AWS Security](https://aws.amazon.com/security/vulnerability-reporting/). ## ⚖️ License Summary diff --git a/amazon-eks-ami/nodeadm/go.mod b/amazon-eks-ami/nodeadm/go.mod index af94a5f0..70982bef 100644 --- a/amazon-eks-ami/nodeadm/go.mod +++ b/amazon-eks-ami/nodeadm/go.mod @@ -3,19 +3,19 @@ module github.com/awslabs/amazon-eks-ami/nodeadm go 1.22.5 require ( - github.com/aws/aws-sdk-go-v2/config v1.28.4 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 - github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0 + github.com/aws/aws-sdk-go-v2/config v1.28.5 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 + github.com/aws/aws-sdk-go-v2/service/ec2 v1.194.0 github.com/aws/smithy-go v1.22.1 github.com/coreos/go-systemd/v22 v22.5.0 github.com/integrii/flaggy v1.5.2 github.com/pelletier/go-toml/v2 v2.2.3 - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 go.uber.org/zap v1.27.0 golang.org/x/mod v0.22.0 - k8s.io/apimachinery v0.31.2 - k8s.io/kubelet v0.31.2 - sigs.k8s.io/controller-runtime v0.19.1 + k8s.io/apimachinery v0.31.3 + k8s.io/kubelet v0.31.3 + sigs.k8s.io/controller-runtime v0.19.2 ) require ( @@ -24,22 +24,22 @@ require ( github.com/stretchr/objx v0.5.2 // indirect github.com/x448/float16 v0.8.4 // indirect golang.org/x/tools v0.22.0 // indirect - k8s.io/component-base v0.31.2 // indirect + k8s.io/component-base v0.31.3 // indirect ) require dario.cat/mergo v1.0.1 // direct require ( - github.com/aws/aws-sdk-go-v2 v1.32.4 - github.com/aws/aws-sdk-go-v2/credentials v1.17.45 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 // indirect + github.com/aws/aws-sdk-go-v2 v1.32.5 + github.com/aws/aws-sdk-go-v2/credentials v1.17.46 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect @@ -68,7 +68,7 @@ require ( gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/api v0.31.2 + k8s.io/api v0.31.3 k8s.io/klog/v2 v2.130.1 // indirect k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 // direct sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect diff --git a/amazon-eks-ami/nodeadm/go.sum b/amazon-eks-ami/nodeadm/go.sum index c7d69f64..66d1a07b 100644 --- a/amazon-eks-ami/nodeadm/go.sum +++ b/amazon-eks-ami/nodeadm/go.sum @@ -1,31 +1,31 @@ dario.cat/mergo v1.0.1 h1:Ra4+bf83h2ztPIQYNP99R6m+Y7KfnARDfID+a+vLl4s= dario.cat/mergo v1.0.1/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= -github.com/aws/aws-sdk-go-v2 v1.32.4 h1:S13INUiTxgrPueTmrm5DZ+MiAo99zYzHEFh1UNkOxNE= -github.com/aws/aws-sdk-go-v2 v1.32.4/go.mod h1:2SK5n0a2karNTv5tbP1SjsX0uhttou00v/HpXKM1ZUo= -github.com/aws/aws-sdk-go-v2/config v1.28.4 h1:qgD0MKmkIzZR2DrAjWJcI9UkndjR+8f6sjUQvXh0mb0= -github.com/aws/aws-sdk-go-v2/config v1.28.4/go.mod h1:LgnWnNzHZw4MLplSyEGia0WgJ/kCGD86zGCjvNpehJs= -github.com/aws/aws-sdk-go-v2/credentials v1.17.45 h1:DUgm5lFso57E7150RBgu1JpVQoF8fAPretiDStIuVjg= -github.com/aws/aws-sdk-go-v2/credentials v1.17.45/go.mod h1:dnBpENcPC1ekZrGpSWspX+ZRGzhkvqngT2Qp5xBR1dY= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19 h1:woXadbf0c7enQ2UGCi8gW/WuKmE0xIzxBF/eD94jMKQ= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.19/go.mod h1:zminj5ucw7w0r65bP6nhyOd3xL6veAUMc3ElGMoLVb4= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 h1:A2w6m6Tmr+BNXjDsr7M90zkWjsu4JXHwrzPg235STs4= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23/go.mod h1:35EVp9wyeANdujZruvHiQUAo9E3vbhnIO1mTCAxMlY0= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 h1:pgYW9FCabt2M25MoHYCfMrVY2ghiiBKYWUVXfwZs+sU= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23/go.mod h1:c48kLgzO19wAu3CPkDWC28JbaJ+hfQlsdl7I2+oqIbk= +github.com/aws/aws-sdk-go-v2 v1.32.5 h1:U8vdWJuY7ruAkzaOdD7guwJjD06YSKmnKCJs7s3IkIo= +github.com/aws/aws-sdk-go-v2 v1.32.5/go.mod h1:P5WJBrYqqbWVaOxgH0X/FYYD47/nooaPOZPlQdmiN2U= +github.com/aws/aws-sdk-go-v2/config v1.28.5 h1:Za41twdCXbuyyWv9LndXxZZv3QhTG1DinqlFsSuvtI0= +github.com/aws/aws-sdk-go-v2/config v1.28.5/go.mod h1:4VsPbHP8JdcdUDmbTVgNL/8w9SqOkM5jyY8ljIxLO3o= +github.com/aws/aws-sdk-go-v2/credentials v1.17.46 h1:AU7RcriIo2lXjUfHFnFKYsLCwgbz1E7Mm95ieIRDNUg= +github.com/aws/aws-sdk-go-v2/credentials v1.17.46/go.mod h1:1FmYyLGL08KQXQ6mcTlifyFXfJVCNJTVGuQP4m0d/UA= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 h1:sDSXIrlsFSFJtWKLQS4PUWRvrT580rrnuLydJrCQ/yA= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20/go.mod h1:WZ/c+w0ofps+/OUqMwWgnfrgzZH1DZO1RIkktICsqnY= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 h1:4usbeaes3yJnCFC7kfeyhkdkPtoRYPa/hTmCqMpKpLI= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24/go.mod h1:5CI1JemjVwde8m2WG3cz23qHKPOxbpkq0HaoreEgLIY= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 h1:N1zsICrQglfzaBnrfM0Ys00860C+QFwu6u/5+LomP+o= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24/go.mod h1:dCn9HbJ8+K31i8IQ8EWmWj0EiIk0+vKiHNMxTTYveAg= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 h1:VaRN3TlFdd6KxX1x3ILT5ynH6HvKgqdiXoTxAF4HQcQ= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1/go.mod h1:FbtygfRFze9usAadmnGJNc8KsP346kEe+y2/oyhGAGc= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0 h1:eBriSsQa4r7aiKF2wv1EGYbK3X1VnjAYvdOlepBUi8s= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0/go.mod h1:0A17IIeys01WfjDKehspGP+Cyo/YH/eNADIbEbRS9yM= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 h1:TToQNkvGguu209puTojY/ozlqy2d/SFNcoLIqTFi42g= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0/go.mod h1:0jp+ltwkf+SwG2fm/PKo8t4y8pJSgOCO4D8Lz3k0aHQ= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 h1:tHxQi/XHPK0ctd/wdOw0t7Xrc2OxcRCnVzv8lwWPu0c= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4/go.mod h1:4GQbF1vJzG60poZqWatZlhP31y8PGCCVTvIGPdaaYJ0= -github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 h1:HJwZwRt2Z2Tdec+m+fPjvdmkq2s9Ra+VR0hjF7V2o40= -github.com/aws/aws-sdk-go-v2/service/sso v1.24.5/go.mod h1:wrMCEwjFPms+V86TCQQeOxQF/If4vT44FGIOFiMC2ck= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 h1:zcx9LiGWZ6i6pjdcoE9oXAB6mUdeyC36Ia/QEiIvYdg= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4/go.mod h1:Tp/ly1cTjRLGBBmNccFumbZ8oqpZlpdhFf80SrRh4is= -github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 h1:s7LRgBqhwLaxcocnAniBJp7gaAB+4I4vHzqUqjH18yc= -github.com/aws/aws-sdk-go-v2/service/sts v1.33.0/go.mod h1:9XEUty5v5UAsMiFOBJrNibZgwCeOma73jgGwwhgffa8= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.194.0 h1:56YXcRmryw9wiTrvdVeJEUwBCoN/+o33R52PA7CCi08= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.194.0/go.mod h1:mzj8EEjIHSN2oZRXiw1Dd+uB4HZTl7hC8nBzX9IZMWw= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 h1:iXtILhvDxB6kPvEXgsDhGaZCSC6LQET5ZHSdJozeI0Y= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1/go.mod h1:9nu0fVANtYiAePIBh2/pFUSwtJ402hLnp854CNoDOeE= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 h1:wtpJ4zcwrSbwhECWQoI/g6WM9zqCcSpHDJIWSbMLOu4= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5/go.mod h1:qu/W9HXQbbQ4+1+JcZp0ZNPV31ym537ZJN+fiS7Ti8E= +github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 h1:3zu537oLmsPfDMyjnUS2g+F2vITgy5pB74tHI+JBNoM= +github.com/aws/aws-sdk-go-v2/service/sso v1.24.6/go.mod h1:WJSZH2ZvepM6t6jwu4w/Z45Eoi75lPN7DcydSRtJg6Y= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 h1:K0OQAsDywb0ltlFrZm0JHPY3yZp/S9OaoLU33S7vPS8= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5/go.mod h1:ORITg+fyuMoeiQFiVGoqB3OydVTLkClw/ljbblMq6Cc= +github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 h1:6SZUVRQNvExYlMLbHdlKB48x0fLbc2iVROyaNEwBHbU= +github.com/aws/aws-sdk-go-v2/service/sts v1.33.1/go.mod h1:GqWyYCwLXnlUB1lOAXQyNSPqPLQJvmo8J0DWBzp9mtg= github.com/aws/smithy-go v1.22.1 h1:/HPHZQ0g7f4eUeK6HKglFz8uwVfZKgoI25rb/J+dnro= github.com/aws/smithy-go v1.22.1/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -108,8 +108,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -167,20 +167,20 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.31.2 h1:3wLBbL5Uom/8Zy98GRPXpJ254nEFpl+hwndmk9RwmL0= -k8s.io/api v0.31.2/go.mod h1:bWmGvrGPssSK1ljmLzd3pwCQ9MgoTsRCuK35u6SygUk= -k8s.io/apimachinery v0.31.2 h1:i4vUt2hPK56W6mlT7Ry+AO8eEsyxMD1U44NR22CLTYw= -k8s.io/apimachinery v0.31.2/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= -k8s.io/component-base v0.31.2 h1:Z1J1LIaC0AV+nzcPRFqfK09af6bZ4D1nAOpWsy9owlA= -k8s.io/component-base v0.31.2/go.mod h1:9PeyyFN/drHjtJZMCTkSpQJS3U9OXORnHQqMLDz0sUQ= +k8s.io/api v0.31.3 h1:umzm5o8lFbdN/hIXbrK9oRpOproJO62CV1zqxXrLgk8= +k8s.io/api v0.31.3/go.mod h1:UJrkIp9pnMOI9K2nlL6vwpxRzzEX5sWgn8kGQe92kCE= +k8s.io/apimachinery v0.31.3 h1:6l0WhcYgasZ/wk9ktLq5vLaoXJJr5ts6lkaQzgeYPq4= +k8s.io/apimachinery v0.31.3/go.mod h1:rsPdaZJfTfLsNJSQzNHQvYoTmxhoOEofxtOsF3rtsMo= +k8s.io/component-base v0.31.3 h1:DMCXXVx546Rfvhj+3cOm2EUxhS+EyztH423j+8sOwhQ= +k8s.io/component-base v0.31.3/go.mod h1:xME6BHfUOafRgT0rGVBGl7TuSg8Z9/deT7qq6w7qjIU= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kubelet v0.31.2 h1:6Hytyw4LqWqhgzoi7sPfpDGClu2UfxmPmaiXPC4FRgI= -k8s.io/kubelet v0.31.2/go.mod h1:0E4++3cMWi2cJxOwuaQP3eMBa7PSOvAFgkTPlVc/2FA= +k8s.io/kubelet v0.31.3 h1:DIXRAmvVGp42mV2vpA1GCLU6oO8who0/vp3Oq6kSpbI= +k8s.io/kubelet v0.31.3/go.mod h1:KSdbEfNy5VzqUlAHlytA/fH12s+sE1u8fb/8JY9sL/8= k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 h1:jGnCPejIetjiy2gqaJ5V0NLwTpF4wbQ6cZIItJCSHno= k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/controller-runtime v0.19.1 h1:Son+Q40+Be3QWb+niBXAg2vFiYWolDjjRfO8hn/cxOk= -sigs.k8s.io/controller-runtime v0.19.1/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4= +sigs.k8s.io/controller-runtime v0.19.2 h1:3sPrF58XQEPzbE8T81TN6selQIMGbtYwuaJ6eDssDF8= +sigs.k8s.io/controller-runtime v0.19.2/go.mod h1:iRmWllt8IlaLjvTTDLhRBXIEtkCK6hwVBJJsYS9Ajf4= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go index 1d54fc7a..f965a510 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go @@ -3,4 +3,4 @@ package aws // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.4" +const goModuleVersion = "1.32.5" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md index 91c59f49..72889241 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md @@ -1,3 +1,8 @@ +# 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go index 75a7fe1e..65c44076 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go @@ -3,4 +3,4 @@ package config // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.4" +const goModuleVersion = "1.28.5" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md index ee332310..3730bc7b 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md @@ -1,3 +1,8 @@ +# 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go index b6bb1432..adc697b5 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go @@ -3,4 +3,4 @@ package credentials // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.45" +const goModuleVersion = "1.17.46" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md index 66beafc7..d2144191 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md @@ -1,3 +1,8 @@ +# 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go index 79b1d7c9..93e4280d 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go @@ -3,4 +3,4 @@ package imds // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.19" +const goModuleVersion = "1.16.20" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md index 669d69af..6396f510 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md @@ -1,3 +1,8 @@ +# 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go index 6a89827e..56bea7d6 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go @@ -3,4 +3,4 @@ package configsources // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.3.23" +const goModuleVersion = "1.3.24" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md index ac71e1c7..7c870b66 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md @@ -1,3 +1,8 @@ +# 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go index 460fef72..7f46f580 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go @@ -3,4 +3,4 @@ package endpoints // goModuleVersion is the tagged release for this module -const goModuleVersion = "2.6.23" +const goModuleVersion = "2.6.24" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md index dae193a7..22bc3e9c 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md @@ -1,3 +1,25 @@ +# 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go index e09acd7e..7d800237 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go @@ -13,6 +13,17 @@ import ( // 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. +// +// 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go index e07ab169..bd79455c 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go @@ -66,6 +66,16 @@ type CopySnapshotInput struct { // 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go index e2a1cdb8..f903c1cd 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go @@ -12,30 +12,29 @@ import ( "time" ) -// Creates a new Capacity Reservation with the specified attributes. +// 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. // -// Capacity Reservations enable you to reserve capacity for your Amazon EC2 -// instances in a specific Availability Zone for any duration. This gives you the -// flexibility to selectively add capacity reservations and still get the Regional -// RI discounts for that usage. By creating Capacity Reservations, you ensure that -// you always have access to Amazon EC2 capacity when you need it, for as long as -// you need it. For more information, see [Capacity Reservations]in the Amazon EC2 User Guide. +// 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. // -// Your request to create a Capacity Reservation could fail if Amazon EC2 does not -// have sufficient capacity to fulfill the request. If your request fails due to -// Amazon EC2 capacity constraints, either try again at a later time, try in a -// different Availability Zone, or request a smaller capacity reservation. If your -// application is flexible across instance types and sizes, try to create a -// Capacity Reservation with different instance attributes. +// For more information, see [Reserve compute capacity with On-Demand Capacity Reservations] in the Amazon EC2 User Guide. // -// Your request could also fail if the requested quantity exceeds your On-Demand -// Instance limit for the selected instance type. If your request fails due to -// limit constraints, increase your On-Demand Instance limit for the required -// instance type and try again. For more information about increasing your instance -// limits, see [Amazon EC2 Service Quotas]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 -// [Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.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{} @@ -55,6 +54,11 @@ 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 VPUs. 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. @@ -65,8 +69,12 @@ type CreateCapacityReservationInput struct { // This member is required. InstancePlatform types.CapacityReservationInstancePlatform - // The instance type for which to reserve capacity. For more information, see [Instance types] in - // the Amazon EC2 User Guide. + // 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 // @@ -85,6 +93,31 @@ type CreateCapacityReservationInput struct { // [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 @@ -110,6 +143,9 @@ type CreateCapacityReservationInput struct { // 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 @@ -139,13 +175,20 @@ type CreateCapacityReservationInput struct { // 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. @@ -153,6 +196,17 @@ type CreateCapacityReservationInput struct { // [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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go index bf0a68e6..08646ccf 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go @@ -65,6 +65,9 @@ type CreateLaunchTemplateInput struct { // 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 . // diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go index 3d5327ce..4cedfa45 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go @@ -133,6 +133,9 @@ type CreateNetworkInterfaceInput struct { // 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go index 889d6a2b..b5a5eb69 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go @@ -110,6 +110,14 @@ type CreateSnapshotInput struct { // Describes a snapshot. type CreateSnapshotOutput struct { + // 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 @@ -177,6 +185,20 @@ type CreateSnapshotOutput struct { // 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go index 16f29bfd..16b396c1 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go @@ -132,6 +132,9 @@ type CreateVolumeInput struct { // [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 @@ -231,6 +234,9 @@ type CreateVolumeOutput struct { // Indicates whether Amazon EBS Multi-Attach is enabled. MultiAttachEnabled *bool + // The entity that manages the volume. + Operator *types.OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000..b0668b1d --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go @@ -0,0 +1,189 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go index f5550bb7..ecbee38e 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go @@ -90,6 +90,9 @@ type CreateVpcEndpointInput struct { // default security group for the VPC. SecurityGroupIds []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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go index 16aa9137..0113e2de 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go @@ -76,6 +76,9 @@ type CreateVpcEndpointServiceConfigurationInput struct { // 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 diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000..a77060e3 --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go @@ -0,0 +1,170 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go new file mode 100644 index 00000000..5b1b21ef --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go @@ -0,0 +1,291 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go new file mode 100644 index 00000000..40163375 --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go @@ -0,0 +1,283 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go index 617b77e5..6e3660e6 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go @@ -46,7 +46,7 @@ type DescribeClassicLinkInstancesInput struct { // // - instance-id - The ID of the instance. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go index e6a015d0..ffaa347b 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go @@ -56,7 +56,7 @@ type DescribeDhcpOptionsInput struct { // - 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 - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go index 56862bea..6bebccc4 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go @@ -43,7 +43,7 @@ type DescribeEgressOnlyInternetGatewaysInput struct { // The filters. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go index b20c40e1..177468b1 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go @@ -101,6 +101,12 @@ type DescribeInstanceStatusInput struct { // - 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 ). // diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go index e2c04411..cbe95ea2 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go @@ -310,6 +310,13 @@ type DescribeInstancesInput struct { // // - 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. @@ -344,6 +351,12 @@ type DescribeInstancesInput struct { // // - network-interface.vpc-id - The ID of the VPC for the network interface. // + // - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go index cd73b9d1..c25ee0c7 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go @@ -55,7 +55,7 @@ type DescribeInternetGatewaysInput struct { // - 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 - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go index a6038197..6f82c0cd 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go @@ -51,7 +51,7 @@ type DescribeNatGatewaysInput struct { // // - 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 - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go index 4aca50a3..77167aee 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go @@ -80,7 +80,7 @@ type DescribeNetworkAclsInput struct { // - 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 - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go index 68b379cf..de391af2 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go @@ -118,6 +118,12 @@ type DescribeNetworkInterfacesInput struct { // // - 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). diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go index 78121183..cbee884f 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go @@ -101,7 +101,7 @@ type DescribeRouteTablesInput struct { // - 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 - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go index 585441ed..fc21b32a 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go @@ -116,7 +116,7 @@ type DescribeSubnetsInput struct { // // - subnet-id - The ID of the subnet. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go index 88aa51fa..2a84eb4b 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go @@ -76,11 +76,16 @@ type DescribeVolumesInput struct { // // - 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 ) // - // - fast-restored - Indicates whether the volume was created from a snapshot - // that is enabled for fast snapshot restore ( 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. // diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go new file mode 100644 index 00000000..5a7a8753 --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go @@ -0,0 +1,204 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go new file mode 100644 index 00000000..0a6b955d --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go @@ -0,0 +1,161 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go index fcbf3eac..68f82bcd 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go @@ -42,7 +42,7 @@ type DescribeVpcClassicLinkInput struct { // - 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 - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go index 10afbe3f..cb7553f3 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go @@ -45,6 +45,9 @@ type DescribeVpcEndpointConnectionsInput struct { // - 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 ). // diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go index 42c3c055..005f15e1 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go @@ -49,6 +49,8 @@ type DescribeVpcEndpointServicesInput struct { // // - service-name - The name of the service. // + // - service-region - The Region of the service. + // // - service-type - The type of service ( Interface | Gateway | // GatewayLoadBalancer ). // @@ -76,6 +78,9 @@ type DescribeVpcEndpointServicesInput struct { // The service names. ServiceNames []string + // The service Regions. + ServiceRegions []string + noSmithyDocumentSerde } diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go index d021db2a..d489555c 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go @@ -43,6 +43,8 @@ type DescribeVpcEndpointsInput struct { // // - 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 , diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go index e8920eab..d1cf7549 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go @@ -68,7 +68,7 @@ type DescribeVpcPeeringConnectionsInput struct { // - 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 - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go index 6cba0d69..504e90ed 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go @@ -77,7 +77,7 @@ type DescribeVpcsInput struct { // // - state - The state of the VPC ( pending | available ). // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go index 9abe2178..cb8c4f75 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go @@ -79,22 +79,38 @@ type GetCapacityReservationUsageOutput struct { // 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. + // - active - The capacity is available for 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. + // time specified in your reservation request. The reserved capacity is no longer + // available for your use. // - // - cancelled - The Capacity Reservation was cancelled. The reserved capacity is + // - 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 might fail - // due to invalid request parameters, capacity constraints, or instance limit - // constraints. Failed requests are retained for 60 minutes. + // - 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 only) The future-dated + // Capacity Reservation request was approved and the Capacity Reservation is + // scheduled for delivery on the requested start date. + // + // - assessing - (Future-dated Capacity Reservations only) Amazon EC2 is + // assessing your request for a future-dated Capacity Reservation. + // + // - delayed - (Future-dated Capacity Reservations only) 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 only) 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. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go index 41fab81d..8a90bd9f 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go @@ -19,6 +19,22 @@ import ( // 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 { diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go index 0ad3f51b..03b0dd7a 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go @@ -13,8 +13,8 @@ import ( // 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, or run On-Demand -// Instance capacity. +// 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{} diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go index 35c57a1a..3eade00d 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go @@ -41,6 +41,15 @@ type ModifyIpamResourceDiscoveryInput struct { // 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. + // + // [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html + AddOrganizationalUnitExclusions []types.AddIpamOrganizationalUnitExclusion + // A resource discovery description. Description *string @@ -53,6 +62,15 @@ type ModifyIpamResourceDiscoveryInput struct { // 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. + // + // [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html + RemoveOrganizationalUnitExclusions []types.RemoveIpamOrganizationalUnitExclusion + noSmithyDocumentSerde } diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000..cc2a26f7 --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go new file mode 100644 index 00000000..2202604b --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go @@ -0,0 +1,181 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go index 6e5e35e2..addbaadd 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go @@ -10,10 +10,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Modifies the attributes of your VPC endpoint service configuration. You can -// change the Network Load Balancers or Gateway Load Balancers for your service, -// and you can specify whether acceptance is required for requests to connect to -// your endpoint service through an interface VPC endpoint. +// 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. @@ -39,21 +36,24 @@ type ModifyVpcEndpointServiceConfigurationInput struct { // This member is required. ServiceId *string - // Indicates whether requests to create an endpoint to your service must be + // 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 your + // 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 your + // The Amazon Resource Names (ARNs) of Network Load Balancers to add to the // service configuration. AddNetworkLoadBalancerArns []string - // The IP address types to add to your service configuration. + // 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 @@ -64,11 +64,11 @@ type ModifyVpcEndpointServiceConfigurationInput struct { // endpoint service. PrivateDnsName *string - // The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from your + // 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 your + // The Amazon Resource Names (ARNs) of Network Load Balancers to remove from the // service configuration. RemoveNetworkLoadBalancerArns []string @@ -76,9 +76,12 @@ type ModifyVpcEndpointServiceConfigurationInput struct { // service. RemovePrivateDnsName *bool - // The IP address types to remove from your service configuration. + // The IP address types to remove from the service configuration. RemoveSupportedIpAddressTypes []string + // The supported Regions to remove from the service configuration. + RemoveSupportedRegions []string + noSmithyDocumentSerde } diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go new file mode 100644 index 00000000..c907bf94 --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go @@ -0,0 +1,169 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "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 = 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/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go index 91ce7cab..2d32bf20 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go @@ -118,7 +118,7 @@ type RunInstancesInput struct { // 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). + // matching attributes (instance type, platform, Availability Zone, and tenancy). CapacityReservationSpecification *types.CapacityReservationSpecification // Unique, case-sensitive identifier you provide to ensure the idempotency of the @@ -309,6 +309,9 @@ type RunInstancesInput struct { // The network interfaces to associate with the instance. NetworkInterfaces []types.InstanceNetworkInterfaceSpecification + // Reserved for internal use. + Operator *types.OperatorRequest + // The placement for the instance. Placement *types.Placement diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go index 7d24ae7b..890e1522 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go @@ -12721,6 +12721,101 @@ func awsEc2query_deserializeOpErrorCreateVpc(response *smithyhttp.Response, meta } } +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 { } @@ -19455,6 +19550,101 @@ func awsEc2query_deserializeOpErrorDeleteVpc(response *smithyhttp.Response, meta } } +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 { } @@ -21643,14 +21833,14 @@ func awsEc2query_deserializeOpErrorDescribeByoipCidrs(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpDescribeCapacityBlockOfferings struct { +type awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory struct { } -func (*awsEc2query_deserializeOpDescribeCapacityBlockOfferings) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -21668,9 +21858,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionHistory(response, &metadata) } - output := &DescribeCapacityBlockOfferingsOutput{} + output := &DescribeCapacityBlockExtensionHistoryOutput{} out.Result = output var buff [1024]byte @@ -21691,7 +21881,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockOfferingsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionHistoryOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21705,7 +21895,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -21738,14 +21928,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response *smit } } -type awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests struct { +type awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings struct { } -func (*awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -21763,9 +21953,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionOfferings(response, &metadata) } - output := &DescribeCapacityReservationBillingRequestsOutput{} + output := &DescribeCapacityBlockExtensionOfferingsOutput{} out.Result = output var buff [1024]byte @@ -21786,7 +21976,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationBillingRequestsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionOfferingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21800,7 +21990,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -21833,14 +22023,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(re } } -type awsEc2query_deserializeOpDescribeCapacityReservationFleets struct { +type awsEc2query_deserializeOpDescribeCapacityBlockOfferings struct { } -func (*awsEc2query_deserializeOpDescribeCapacityReservationFleets) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityBlockOfferings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -21858,9 +22048,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response, &metadata) } - output := &DescribeCapacityReservationFleetsOutput{} + output := &DescribeCapacityBlockOfferingsOutput{} out.Result = output var buff [1024]byte @@ -21881,7 +22071,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationFleetsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockOfferingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21895,7 +22085,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -21928,14 +22118,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response *s } } -type awsEc2query_deserializeOpDescribeCapacityReservations struct { +type awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests struct { } -func (*awsEc2query_deserializeOpDescribeCapacityReservations) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -21953,9 +22143,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(response, &metadata) } - output := &DescribeCapacityReservationsOutput{} + output := &DescribeCapacityReservationBillingRequestsOutput{} out.Result = output var buff [1024]byte @@ -21976,7 +22166,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationBillingRequestsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21990,7 +22180,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityReservations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -22023,14 +22213,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityReservations(response *smithy } } -type awsEc2query_deserializeOpDescribeCarrierGateways struct { +type awsEc2query_deserializeOpDescribeCapacityReservationFleets struct { } -func (*awsEc2query_deserializeOpDescribeCarrierGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityReservationFleets) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -22048,9 +22238,9 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCarrierGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response, &metadata) } - output := &DescribeCarrierGatewaysOutput{} + output := &DescribeCapacityReservationFleetsOutput{} out.Result = output var buff [1024]byte @@ -22071,7 +22261,7 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCarrierGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationFleetsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22085,7 +22275,7 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCarrierGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -22118,14 +22308,14 @@ func awsEc2query_deserializeOpErrorDescribeCarrierGateways(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeClassicLinkInstances struct { +type awsEc2query_deserializeOpDescribeCapacityReservations struct { } -func (*awsEc2query_deserializeOpDescribeClassicLinkInstances) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityReservations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -22143,9 +22333,9 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservations(response, &metadata) } - output := &DescribeClassicLinkInstancesOutput{} + output := &DescribeCapacityReservationsOutput{} out.Result = output var buff [1024]byte @@ -22166,7 +22356,7 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClassicLinkInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22180,7 +22370,7 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -22213,14 +22403,14 @@ func awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response *smithy } } -type awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules struct { +type awsEc2query_deserializeOpDescribeCarrierGateways struct { } -func (*awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) ID() string { +func (*awsEc2query_deserializeOpDescribeCarrierGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -22238,9 +22428,9 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCarrierGateways(response, &metadata) } - output := &DescribeClientVpnAuthorizationRulesOutput{} + output := &DescribeCarrierGatewaysOutput{} out.Result = output var buff [1024]byte @@ -22261,7 +22451,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClientVpnAuthorizationRulesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCarrierGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22275,7 +22465,197 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -34373,14 +34753,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcAttribute(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcClassicLink struct { +type awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions struct { } -func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -34398,9 +34778,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessExclusions(response, &metadata) } - output := &DescribeVpcClassicLinkOutput{} + output := &DescribeVpcBlockPublicAccessExclusionsOutput{} out.Result = output var buff [1024]byte @@ -34421,7 +34801,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessExclusionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34435,7 +34815,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -34468,14 +34848,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct { +type awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions struct { } -func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -34493,9 +34873,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessOptions(response, &metadata) } - output := &DescribeVpcClassicLinkDnsSupportOutput{} + output := &DescribeVpcBlockPublicAccessOptionsOutput{} out.Result = output var buff [1024]byte @@ -34516,7 +34896,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34530,7 +34910,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -34563,14 +34943,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *sm } } -type awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct { +type awsEc2query_deserializeOpDescribeVpcClassicLink struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -34588,9 +34968,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response, &metadata) } - output := &DescribeVpcEndpointConnectionNotificationsOutput{} + output := &DescribeVpcClassicLinkOutput{} out.Result = output var buff [1024]byte @@ -34611,7 +34991,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34625,7 +35005,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -34658,14 +35038,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(re } } -type awsEc2query_deserializeOpDescribeVpcEndpointConnections struct { +type awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -34683,9 +35063,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata) } - output := &DescribeVpcEndpointConnectionsOutput{} + output := &DescribeVpcClassicLinkDnsSupportOutput{} out.Result = output var buff [1024]byte @@ -34706,7 +35086,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34720,7 +35100,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -34753,14 +35133,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response *smit } } -type awsEc2query_deserializeOpDescribeVpcEndpoints struct { +type awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpoints) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -34778,9 +35158,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata) } - output := &DescribeVpcEndpointsOutput{} + output := &DescribeVpcEndpointConnectionNotificationsOutput{} out.Result = output var buff [1024]byte @@ -34801,7 +35181,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34815,7 +35195,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -34848,14 +35228,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations struct { +type awsEc2query_deserializeOpDescribeVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -34873,9 +35253,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata) } - output := &DescribeVpcEndpointServiceConfigurationsOutput{} + output := &DescribeVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -34896,7 +35276,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34910,7 +35290,197 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -51652,14 +52222,14 @@ func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpModifyVpcEndpoint struct { +type awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -51677,9 +52247,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessExclusion(response, &metadata) } - output := &ModifyVpcEndpointOutput{} + output := &ModifyVpcBlockPublicAccessExclusionOutput{} out.Result = output var buff [1024]byte @@ -51700,7 +52270,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessExclusionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51714,7 +52284,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -51747,14 +52317,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -51772,9 +52342,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessOptions(response, &metadata) } - output := &ModifyVpcEndpointConnectionNotificationOutput{} + output := &ModifyVpcBlockPublicAccessOptionsOutput{} out.Result = output var buff [1024]byte @@ -51795,7 +52365,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51809,7 +52379,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -51842,14 +52412,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(respo } } -type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_deserializeOpModifyVpcEndpoint struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -51867,9 +52437,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) } - output := &ModifyVpcEndpointServiceConfigurationOutput{} + output := &ModifyVpcEndpointOutput{} out.Result = output var buff [1024]byte @@ -51890,7 +52460,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51904,7 +52474,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -51937,14 +52507,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(respons } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility struct { +type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -51962,9 +52532,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) } - output := &ModifyVpcEndpointServicePayerResponsibilityOutput{} + output := &ModifyVpcEndpointConnectionNotificationOutput{} out.Result = output var buff [1024]byte @@ -51985,7 +52555,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePayerResponsibilityOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51999,7 +52569,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -52032,14 +52602,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(r } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -52057,9 +52627,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) } - output := &ModifyVpcEndpointServicePermissionsOutput{} + output := &ModifyVpcEndpointServiceConfigurationOutput{} out.Result = output var buff [1024]byte @@ -52080,7 +52650,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52094,7 +52664,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -52127,14 +52697,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response } } -type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { +type awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility struct { } -func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -52152,9 +52722,9 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response, &metadata) } - output := &ModifyVpcPeeringConnectionOptionsOutput{} + output := &ModifyVpcEndpointServicePayerResponsibilityOutput{} out.Result = output var buff [1024]byte @@ -52175,7 +52745,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePayerResponsibilityOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52189,7 +52759,197 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -53552,14 +54312,14 @@ func awsEc2query_deserializeOpErrorPurchaseCapacityBlock(response *smithyhttp.Re } } -type awsEc2query_deserializeOpPurchaseHostReservation struct { +type awsEc2query_deserializeOpPurchaseCapacityBlockExtension struct { } -func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { +func (*awsEc2query_deserializeOpPurchaseCapacityBlockExtension) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -53577,9 +54337,9 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseCapacityBlockExtension(response, &metadata) } - output := &PurchaseHostReservationOutput{} + output := &PurchaseCapacityBlockExtensionOutput{} out.Result = output var buff [1024]byte @@ -53600,7 +54360,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseCapacityBlockExtensionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53614,7 +54374,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -53647,14 +54407,14 @@ func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp. } } -type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { +type awsEc2query_deserializeOpPurchaseHostReservation struct { } -func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { +func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -53672,9 +54432,9 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) } - output := &PurchaseReservedInstancesOfferingOutput{} + output := &PurchaseHostReservationOutput{} out.Result = output var buff [1024]byte @@ -53695,7 +54455,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53709,7 +54469,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -53742,14 +54502,14 @@ func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *s } } -type awsEc2query_deserializeOpPurchaseScheduledInstances struct { +type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { } -func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -53767,9 +54527,9 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) } - output := &PurchaseScheduledInstancesOutput{} + output := &PurchaseReservedInstancesOfferingOutput{} out.Result = output var buff [1024]byte @@ -53790,7 +54550,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53804,7 +54564,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -53837,14 +54597,14 @@ func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyht } } -type awsEc2query_deserializeOpRebootInstances struct { +type awsEc2query_deserializeOpPurchaseScheduledInstances struct { } -func (*awsEc2query_deserializeOpRebootInstances) ID() string { +func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -53862,21 +54622,116 @@ func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) } - output := &RebootInstancesOutput{} + output := &PurchaseScheduledInstancesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + 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_deserializeOpErrorRebootInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -64177,6 +65032,48 @@ func awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(v **types.BaselineE 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) @@ -64326,6 +65223,55 @@ func awsEc2query_deserializeDocumentBlockDeviceMappingListUnwrapped(v *[]types.B *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) @@ -65655,13 +66601,13 @@ func awsEc2query_deserializeDocumentCapacityAllocationsUnwrapped(v *[]types.Capa *v = sv return nil } -func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error { +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.CapacityBlockOffering + var sv *types.CapacityBlockExtension if *v == nil { - sv = &types.CapacityBlockOffering{} + sv = &types.CapacityBlockExtension{} } else { sv = *v } @@ -65690,7 +66636,20 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("capacityBlockDurationHours", t.Name.Local): + 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 @@ -65704,10 +66663,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc if err != nil { return err } - sv.CapacityBlockDurationHours = ptr.Int32(int32(i64)) + sv.CapacityBlockExtensionDurationHours = ptr.Int32(int32(i64)) } - case strings.EqualFold("capacityBlockOfferingId", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionEndDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65717,10 +66676,14 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.CapacityBlockOfferingId = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CapacityBlockExtensionEndDate = ptr.Time(t) } - case strings.EqualFold("currencyCode", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionOfferingId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65730,10 +66693,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.CurrencyCode = ptr.String(xtv) + sv.CapacityBlockExtensionOfferingId = ptr.String(xtv) } - case strings.EqualFold("endDate", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionPurchaseDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65747,10 +66710,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc if err != nil { return err } - sv.EndDate = ptr.Time(t) + sv.CapacityBlockExtensionPurchaseDate = ptr.Time(t) } - case strings.EqualFold("instanceCount", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionStartDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65760,14 +66723,14 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.CapacityBlockExtensionStartDate = ptr.Time(t) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65777,10 +66740,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.InstanceType = ptr.String(xtv) + sv.CapacityBlockExtensionStatus = types.CapacityBlockExtensionStatus(xtv) } - case strings.EqualFold("startDate", t.Name.Local): + case strings.EqualFold("capacityReservationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65790,14 +66753,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.StartDate = ptr.Time(t) + sv.CapacityReservationId = ptr.String(xtv) } - case strings.EqualFold("tenancy", t.Name.Local): + case strings.EqualFold("currencyCode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65807,10 +66766,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.Tenancy = types.CapacityReservationTenancy(xtv) + sv.CurrencyCode = ptr.String(xtv) } - case strings.EqualFold("upfrontFee", t.Name.Local): + case strings.EqualFold("instanceCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65820,55 +66779,41 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.UpfrontFee = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.InstanceCount = ptr.Int32(int32(i64)) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + 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) + } - } - 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 { + case strings.EqualFold("upfrontFee", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + 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 @@ -65881,37 +66826,628 @@ func awsEc2query_deserializeDocumentCapacityBlockOfferingSet(v *[]types.Capacity 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_deserializeDocumentCapacityReservation(v **types.CapacityReservation, decoder smithyxml.NodeDecoder) error { +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.CapacityReservation + var sv *types.CapacityBlockExtensionOffering if *v == nil { - sv = &types.CapacityReservation{} + 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("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_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 } @@ -66015,6 +67551,12 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv 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 { @@ -66032,6 +67574,19 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv 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 { @@ -66470,6 +68025,76 @@ func awsEc2query_deserializeDocumentCapacityReservationBillingRequestSetUnwrappe *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) @@ -70177,6 +71802,19 @@ func awsEc2query_deserializeDocumentConnectionNotification(v **types.ConnectionN 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 { @@ -70977,6 +72615,48 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi 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) @@ -75490,6 +77170,12 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance 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 { @@ -86937,6 +88623,12 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx 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 { @@ -88890,6 +90582,12 @@ func awsEc2query_deserializeDocumentInstanceImageMetadata(v **types.InstanceImag 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 { @@ -89943,6 +91641,12 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN 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 { @@ -90967,6 +92671,12 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi 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 { @@ -91469,6 +93179,12 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec 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 { @@ -94118,6 +95834,19 @@ func awsEc2query_deserializeDocumentIpamDiscoveredAccount(v **types.IpamDiscover 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() @@ -95251,6 +96980,123 @@ func awsEc2query_deserializeDocumentIpamOperatingRegionSetUnwrapped(v *[]types.I *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) @@ -96886,6 +98732,12 @@ func awsEc2query_deserializeDocumentIpamResourceDiscovery(v **types.IpamResource 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 { @@ -100236,6 +102088,12 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec 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 { @@ -102877,6 +104735,12 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla 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 { @@ -109064,6 +110928,12 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, 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 { @@ -111116,6 +112986,71 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d 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_deserializeDocumentPacketHeaderStatement(v **types.PacketHeaderStatement, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -111880,6 +113815,123 @@ func awsEc2query_deserializeDocumentPeeringTgwInfo(v **types.PeeringTgwInfo, dec 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) @@ -119097,6 +121149,12 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons 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 { @@ -122868,6 +124926,22 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig 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 { @@ -122919,6 +124993,12 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig 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 { @@ -123157,6 +125237,19 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod 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 { @@ -123412,6 +125505,40 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + 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 { @@ -123624,6 +125751,19 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx 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 { @@ -127839,6 +129979,12 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N 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 { @@ -129245,6 +131391,136 @@ func awsEc2query_deserializeDocumentSupportedIpAddressTypesUnwrapped(v *[]types. *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) @@ -141248,6 +143524,12 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N 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 { @@ -142867,6 +145149,12 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec 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 { @@ -143123,6 +145411,350 @@ func awsEc2query_deserializeDocumentVpcAttachmentListUnwrapped(v *[]types.VpcAtt *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("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("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) @@ -143619,6 +146251,19 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s 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("state", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -143825,6 +146470,19 @@ func awsEc2query_deserializeDocumentVpcEndpointConnection(v **types.VpcEndpointC 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 { @@ -150972,6 +153630,40 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + 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 { @@ -151184,6 +153876,19 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut 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 { @@ -152431,6 +155136,12 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, 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 { @@ -152563,6 +155274,48 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, return nil } +func awsEc2query_deserializeOpDocumentCreateVpcBlockPublicAccessExclusionOutput(v **CreateVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &CreateVpcBlockPublicAccessExclusionOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, 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_deserializeOpDocumentCreateVpcEndpointConnectionNotificationOutput(v **CreateVpcEndpointConnectionNotificationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -155224,6 +157977,48 @@ func awsEc2query_deserializeOpDocumentDeleteVerifiedAccessTrustProviderOutput(v return nil } +func awsEc2query_deserializeOpDocumentDeleteVpcBlockPublicAccessExclusionOutput(v **DeleteVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &DeleteVpcBlockPublicAccessExclusionOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, 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_deserializeOpDocumentDeleteVpcEndpointConnectionNotificationsOutput(v **DeleteVpcEndpointConnectionNotificationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -156155,6 +158950,116 @@ func awsEc2query_deserializeOpDocumentDescribeByoipCidrsOutput(v **DescribeByoip return nil } +func awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionHistoryOutput(v **DescribeCapacityBlockExtensionHistoryOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeCapacityBlockExtensionHistoryOutput + if *v == nil { + sv = &DescribeCapacityBlockExtensionHistoryOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("capacityBlockExtensionSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityBlockExtensionSet(&sv.CapacityBlockExtensions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionOfferingsOutput(v **DescribeCapacityBlockExtensionOfferingsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeCapacityBlockExtensionOfferingsOutput + if *v == nil { + sv = &DescribeCapacityBlockExtensionOfferingsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("capacityBlockExtensionOfferingSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityBlockExtensionOfferingSet(&sv.CapacityBlockExtensionOfferings, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDescribeCapacityBlockOfferingsOutput(v **DescribeCapacityBlockOfferingsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -162012,9 +164917,174 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): + case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSpotInstanceRequestList(&sv.SpotInstanceRequests, 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_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **DescribeSpotPriceHistoryOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeSpotPriceHistoryOutput + if *v == nil { + sv = &DescribeSpotPriceHistoryOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("spotPriceHistorySet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSpotPriceHistoryList(&sv.SpotPriceHistory, 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_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **DescribeStaleSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeStaleSecurityGroupsOutput + if *v == nil { + sv = &DescribeStaleSecurityGroupsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentStaleSecurityGroupSet(&sv.StaleSecurityGroupSet, 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_deserializeOpDocumentDescribeStoreImageTasksOutput(v **DescribeStoreImageTasksOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeStoreImageTasksOutput + if *v == nil { + sv = &DescribeStoreImageTasksOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("storeImageTaskResultSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotInstanceRequestList(&sv.SpotInstanceRequests, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentStoreImageTaskResultSet(&sv.StoreImageTaskResults, nodeDecoder); err != nil { return err } @@ -162032,13 +165102,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **DescribeSpotPriceHistoryOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSpotPriceHistoryOutput + var sv *DescribeSubnetsOutput if *v == nil { - sv = &DescribeSpotPriceHistoryOutput{} + sv = &DescribeSubnetsOutput{} } else { sv = *v } @@ -162067,9 +165137,9 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotPriceHistorySet", t.Name.Local): + case strings.EqualFold("subnetSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotPriceHistoryList(&sv.SpotPriceHistory, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSubnetList(&sv.Subnets, nodeDecoder); err != nil { return err } @@ -162087,13 +165157,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ return nil } -func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **DescribeStaleSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeStaleSecurityGroupsOutput + var sv *DescribeTagsOutput if *v == nil { - sv = &DescribeStaleSecurityGroupsOutput{} + sv = &DescribeTagsOutput{} } else { sv = *v } @@ -162122,9 +165192,9 @@ func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **Desc sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStaleSecurityGroupSet(&sv.StaleSecurityGroupSet, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagDescriptionList(&sv.Tags, nodeDecoder); err != nil { return err } @@ -162142,13 +165212,13 @@ func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **Desc return nil } -func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **DescribeStoreImageTasksOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v **DescribeTrafficMirrorFilterRulesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeStoreImageTasksOutput + var sv *DescribeTrafficMirrorFilterRulesOutput if *v == nil { - sv = &DescribeStoreImageTasksOutput{} + sv = &DescribeTrafficMirrorFilterRulesOutput{} } else { sv = *v } @@ -162177,9 +165247,9 @@ func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **Describe sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("storeImageTaskResultSet", t.Name.Local): + case strings.EqualFold("trafficMirrorFilterRuleSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStoreImageTaskResultSet(&sv.StoreImageTaskResults, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRuleSet(&sv.TrafficMirrorFilterRules, nodeDecoder); err != nil { return err } @@ -162197,13 +165267,13 @@ func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **DescribeTrafficMirrorFiltersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSubnetsOutput + var sv *DescribeTrafficMirrorFiltersOutput if *v == nil { - sv = &DescribeSubnetsOutput{} + sv = &DescribeTrafficMirrorFiltersOutput{} } else { sv = *v } @@ -162232,9 +165302,9 @@ func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsO sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("subnetSet", t.Name.Local): + case strings.EqualFold("trafficMirrorFilterSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetList(&sv.Subnets, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorFilterSet(&sv.TrafficMirrorFilters, nodeDecoder); err != nil { return err } @@ -162252,13 +165322,13 @@ func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsO return nil } -func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **DescribeTrafficMirrorSessionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTagsOutput + var sv *DescribeTrafficMirrorSessionsOutput if *v == nil { - sv = &DescribeTagsOutput{} + sv = &DescribeTrafficMirrorSessionsOutput{} } else { sv = *v } @@ -162287,9 +165357,9 @@ func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("trafficMirrorSessionSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagDescriptionList(&sv.Tags, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorSessionSet(&sv.TrafficMirrorSessions, nodeDecoder); err != nil { return err } @@ -162307,13 +165377,13 @@ func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v **DescribeTrafficMirrorFilterRulesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **DescribeTrafficMirrorTargetsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorFilterRulesOutput + var sv *DescribeTrafficMirrorTargetsOutput if *v == nil { - sv = &DescribeTrafficMirrorFilterRulesOutput{} + sv = &DescribeTrafficMirrorTargetsOutput{} } else { sv = *v } @@ -162342,9 +165412,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v * sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorFilterRuleSet", t.Name.Local): + case strings.EqualFold("trafficMirrorTargetSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRuleSet(&sv.TrafficMirrorFilterRules, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorTargetSet(&sv.TrafficMirrorTargets, nodeDecoder); err != nil { return err } @@ -162362,13 +165432,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v * return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **DescribeTrafficMirrorFiltersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v **DescribeTransitGatewayAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorFiltersOutput + var sv *DescribeTransitGatewayAttachmentsOutput if *v == nil { - sv = &DescribeTrafficMirrorFiltersOutput{} + sv = &DescribeTransitGatewayAttachmentsOutput{} } else { sv = *v } @@ -162397,9 +165467,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorFilterSet", t.Name.Local): + case strings.EqualFold("transitGatewayAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilterSet(&sv.TrafficMirrorFilters, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentList(&sv.TransitGatewayAttachments, nodeDecoder); err != nil { return err } @@ -162417,13 +165487,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **DescribeTrafficMirrorSessionsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v **DescribeTransitGatewayConnectPeersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorSessionsOutput + var sv *DescribeTransitGatewayConnectPeersOutput if *v == nil { - sv = &DescribeTrafficMirrorSessionsOutput{} + sv = &DescribeTransitGatewayConnectPeersOutput{} } else { sv = *v } @@ -162452,9 +165522,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **De sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorSessionSet", t.Name.Local): + case strings.EqualFold("transitGatewayConnectPeerSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorSessionSet(&sv.TrafficMirrorSessions, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeerList(&sv.TransitGatewayConnectPeers, nodeDecoder); err != nil { return err } @@ -162472,13 +165542,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **De return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **DescribeTrafficMirrorTargetsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **DescribeTransitGatewayConnectsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorTargetsOutput + var sv *DescribeTransitGatewayConnectsOutput if *v == nil { - sv = &DescribeTrafficMirrorTargetsOutput{} + sv = &DescribeTransitGatewayConnectsOutput{} } else { sv = *v } @@ -162507,9 +165577,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorTargetSet", t.Name.Local): + case strings.EqualFold("transitGatewayConnectSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorTargetSet(&sv.TrafficMirrorTargets, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayConnectList(&sv.TransitGatewayConnects, nodeDecoder); err != nil { return err } @@ -162527,13 +165597,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v **DescribeTransitGatewayAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(v **DescribeTransitGatewayMulticastDomainsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayAttachmentsOutput + var sv *DescribeTransitGatewayMulticastDomainsOutput if *v == nil { - sv = &DescribeTransitGatewayAttachmentsOutput{} + sv = &DescribeTransitGatewayMulticastDomainsOutput{} } else { sv = *v } @@ -162562,9 +165632,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayAttachments", t.Name.Local): + case strings.EqualFold("transitGatewayMulticastDomains", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentList(&sv.TransitGatewayAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(&sv.TransitGatewayMulticastDomains, nodeDecoder); err != nil { return err } @@ -162582,13 +165652,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v **DescribeTransitGatewayConnectPeersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(v **DescribeTransitGatewayPeeringAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayConnectPeersOutput + var sv *DescribeTransitGatewayPeeringAttachmentsOutput if *v == nil { - sv = &DescribeTransitGatewayConnectPeersOutput{} + sv = &DescribeTransitGatewayPeeringAttachmentsOutput{} } else { sv = *v } @@ -162617,9 +165687,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayConnectPeerSet", t.Name.Local): + case strings.EqualFold("transitGatewayPeeringAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeerList(&sv.TransitGatewayConnectPeers, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(&sv.TransitGatewayPeeringAttachments, nodeDecoder); err != nil { return err } @@ -162637,13 +165707,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **DescribeTransitGatewayConnectsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v **DescribeTransitGatewayPolicyTablesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayConnectsOutput + var sv *DescribeTransitGatewayPolicyTablesOutput if *v == nil { - sv = &DescribeTransitGatewayConnectsOutput{} + sv = &DescribeTransitGatewayPolicyTablesOutput{} } else { sv = *v } @@ -162672,9 +165742,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **D sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayConnectSet", t.Name.Local): + case strings.EqualFold("transitGatewayPolicyTables", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayConnectList(&sv.TransitGatewayConnects, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableList(&sv.TransitGatewayPolicyTables, nodeDecoder); err != nil { return err } @@ -162692,13 +165762,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **D return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(v **DescribeTransitGatewayMulticastDomainsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnouncementsOutput(v **DescribeTransitGatewayRouteTableAnnouncementsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayMulticastDomainsOutput + var sv *DescribeTransitGatewayRouteTableAnnouncementsOutput if *v == nil { - sv = &DescribeTransitGatewayMulticastDomainsOutput{} + sv = &DescribeTransitGatewayRouteTableAnnouncementsOutput{} } else { sv = *v } @@ -162727,9 +165797,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutp sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayMulticastDomains", t.Name.Local): + case strings.EqualFold("transitGatewayRouteTableAnnouncements", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(&sv.TransitGatewayMulticastDomains, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncementList(&sv.TransitGatewayRouteTableAnnouncements, nodeDecoder); err != nil { return err } @@ -162747,13 +165817,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutp return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(v **DescribeTransitGatewayPeeringAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v **DescribeTransitGatewayRouteTablesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayPeeringAttachmentsOutput + var sv *DescribeTransitGatewayRouteTablesOutput if *v == nil { - sv = &DescribeTransitGatewayPeeringAttachmentsOutput{} + sv = &DescribeTransitGatewayRouteTablesOutput{} } else { sv = *v } @@ -162782,9 +165852,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOu sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayPeeringAttachments", t.Name.Local): + case strings.EqualFold("transitGatewayRouteTables", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(&sv.TransitGatewayPeeringAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableList(&sv.TransitGatewayRouteTables, nodeDecoder); err != nil { return err } @@ -162802,13 +165872,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOu return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v **DescribeTransitGatewayPolicyTablesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **DescribeTransitGatewaysOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayPolicyTablesOutput + var sv *DescribeTransitGatewaysOutput if *v == nil { - sv = &DescribeTransitGatewayPolicyTablesOutput{} + sv = &DescribeTransitGatewaysOutput{} } else { sv = *v } @@ -162837,9 +165907,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayPolicyTables", t.Name.Local): + case strings.EqualFold("transitGatewaySet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableList(&sv.TransitGatewayPolicyTables, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayList(&sv.TransitGateways, nodeDecoder); err != nil { return err } @@ -162857,13 +165927,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnouncementsOutput(v **DescribeTransitGatewayRouteTableAnnouncementsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(v **DescribeTransitGatewayVpcAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayRouteTableAnnouncementsOutput + var sv *DescribeTransitGatewayVpcAttachmentsOutput if *v == nil { - sv = &DescribeTransitGatewayRouteTableAnnouncementsOutput{} + sv = &DescribeTransitGatewayVpcAttachmentsOutput{} } else { sv = *v } @@ -162892,9 +165962,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnounceme sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayRouteTableAnnouncements", t.Name.Local): + case strings.EqualFold("transitGatewayVpcAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncementList(&sv.TransitGatewayRouteTableAnnouncements, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(&sv.TransitGatewayVpcAttachments, nodeDecoder); err != nil { return err } @@ -162912,13 +165982,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnounceme return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v **DescribeTransitGatewayRouteTablesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v **DescribeTrunkInterfaceAssociationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayRouteTablesOutput + var sv *DescribeTrunkInterfaceAssociationsOutput if *v == nil { - sv = &DescribeTransitGatewayRouteTablesOutput{} + sv = &DescribeTrunkInterfaceAssociationsOutput{} } else { sv = *v } @@ -162934,6 +166004,12 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("interfaceAssociationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociationList(&sv.InterfaceAssociations, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("nextToken", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -162947,12 +166023,6 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayRouteTables", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableList(&sv.TransitGatewayRouteTables, nodeDecoder); err != nil { - return err - } - default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -162967,13 +166037,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **DescribeTransitGatewaysOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v **DescribeVerifiedAccessEndpointsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewaysOutput + var sv *DescribeVerifiedAccessEndpointsOutput if *v == nil { - sv = &DescribeTransitGatewaysOutput{} + sv = &DescribeVerifiedAccessEndpointsOutput{} } else { sv = *v } @@ -163002,9 +166072,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **Describe sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewaySet", t.Name.Local): + case strings.EqualFold("verifiedAccessEndpointSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayList(&sv.TransitGateways, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointList(&sv.VerifiedAccessEndpoints, nodeDecoder); err != nil { return err } @@ -163022,13 +166092,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(v **DescribeTransitGatewayVpcAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **DescribeVerifiedAccessGroupsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayVpcAttachmentsOutput + var sv *DescribeVerifiedAccessGroupsOutput if *v == nil { - sv = &DescribeTransitGatewayVpcAttachmentsOutput{} + sv = &DescribeVerifiedAccessGroupsOutput{} } else { sv = *v } @@ -163057,9 +166127,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayVpcAttachments", t.Name.Local): + case strings.EqualFold("verifiedAccessGroupSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(&sv.TransitGatewayVpcAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessGroupList(&sv.VerifiedAccessGroups, nodeDecoder); err != nil { return err } @@ -163077,13 +166147,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput return nil } -func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v **DescribeTrunkInterfaceAssociationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfigurationsOutput(v **DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrunkInterfaceAssociationsOutput + var sv *DescribeVerifiedAccessInstanceLoggingConfigurationsOutput if *v == nil { - sv = &DescribeTrunkInterfaceAssociationsOutput{} + sv = &DescribeVerifiedAccessInstanceLoggingConfigurationsOutput{} } else { sv = *v } @@ -163099,9 +166169,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("interfaceAssociationSet", t.Name.Local): + case strings.EqualFold("loggingConfigurationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociationList(&sv.InterfaceAssociations, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfigurationList(&sv.LoggingConfigurations, nodeDecoder); err != nil { return err } @@ -163132,13 +166202,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v **DescribeVerifiedAccessEndpointsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v **DescribeVerifiedAccessInstancesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessEndpointsOutput + var sv *DescribeVerifiedAccessInstancesOutput if *v == nil { - sv = &DescribeVerifiedAccessEndpointsOutput{} + sv = &DescribeVerifiedAccessInstancesOutput{} } else { sv = *v } @@ -163167,9 +166237,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v ** sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessEndpointSet", t.Name.Local): + case strings.EqualFold("verifiedAccessInstanceSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointList(&sv.VerifiedAccessEndpoints, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceList(&sv.VerifiedAccessInstances, nodeDecoder); err != nil { return err } @@ -163187,13 +166257,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v ** return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **DescribeVerifiedAccessGroupsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput(v **DescribeVerifiedAccessTrustProvidersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessGroupsOutput + var sv *DescribeVerifiedAccessTrustProvidersOutput if *v == nil { - sv = &DescribeVerifiedAccessGroupsOutput{} + sv = &DescribeVerifiedAccessTrustProvidersOutput{} } else { sv = *v } @@ -163222,9 +166292,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessGroupSet", t.Name.Local): + case strings.EqualFold("verifiedAccessTrustProviderSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessGroupList(&sv.VerifiedAccessGroups, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderList(&sv.VerifiedAccessTrustProviders, nodeDecoder); err != nil { return err } @@ -163242,13 +166312,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfigurationsOutput(v **DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **DescribeVolumeAttributeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessInstanceLoggingConfigurationsOutput + var sv *DescribeVolumeAttributeOutput if *v == nil { - sv = &DescribeVerifiedAccessInstanceLoggingConfigurationsOutput{} + sv = &DescribeVolumeAttributeOutput{} } else { sv = *v } @@ -163264,13 +166334,19 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("loggingConfigurationSet", t.Name.Local): + case strings.EqualFold("autoEnableIO", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfigurationList(&sv.LoggingConfigurations, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.AutoEnableIO, nodeDecoder); err != nil { return err } - case strings.EqualFold("nextToken", t.Name.Local): + 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("volumeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163280,7 +166356,7 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi } { xtv := string(val) - sv.NextToken = ptr.String(xtv) + sv.VolumeId = ptr.String(xtv) } default: @@ -163297,13 +166373,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v **DescribeVerifiedAccessInstancesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **DescribeVolumesModificationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessInstancesOutput + var sv *DescribeVolumesModificationsOutput if *v == nil { - sv = &DescribeVerifiedAccessInstancesOutput{} + sv = &DescribeVolumesModificationsOutput{} } else { sv = *v } @@ -163332,9 +166408,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v ** sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessInstanceSet", t.Name.Local): + case strings.EqualFold("volumeModificationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceList(&sv.VerifiedAccessInstances, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVolumeModificationList(&sv.VolumesModifications, nodeDecoder); err != nil { return err } @@ -163352,13 +166428,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v ** return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput(v **DescribeVerifiedAccessTrustProvidersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessTrustProvidersOutput + var sv *DescribeVolumesOutput if *v == nil { - sv = &DescribeVerifiedAccessTrustProvidersOutput{} + sv = &DescribeVolumesOutput{} } else { sv = *v } @@ -163387,9 +166463,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessTrustProviderSet", t.Name.Local): + case strings.EqualFold("volumeSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderList(&sv.VerifiedAccessTrustProviders, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVolumeList(&sv.Volumes, nodeDecoder); err != nil { return err } @@ -163407,13 +166483,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **DescribeVolumeAttributeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVolumeStatusOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumeAttributeOutput + var sv *DescribeVolumeStatusOutput if *v == nil { - sv = &DescribeVolumeAttributeOutput{} + sv = &DescribeVolumeStatusOutput{} } else { sv = *v } @@ -163429,19 +166505,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("autoEnableIO", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.AutoEnableIO, 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("volumeId", t.Name.Local): + case strings.EqualFold("nextToken", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163451,7 +166515,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe } { xtv := string(val) - sv.VolumeId = ptr.String(xtv) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("volumeStatusSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVolumeStatusList(&sv.VolumeStatuses, nodeDecoder); err != nil { + return err } default: @@ -163468,13 +166538,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **DescribeVolumesModificationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpcAttributeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumesModificationsOutput + var sv *DescribeVpcAttributeOutput if *v == nil { - sv = &DescribeVolumesModificationsOutput{} + sv = &DescribeVpcAttributeOutput{} } else { sv = *v } @@ -163490,62 +166560,25 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **Des originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("nextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("enableDnsHostnames", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsHostnames, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - case strings.EqualFold("volumeModificationSet", t.Name.Local): + case strings.EqualFold("enableDnsSupport", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeModificationList(&sv.VolumesModifications, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsSupport, nodeDecoder); err != nil { return err } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("enableNetworkAddressUsageMetrics", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableNetworkAddressUsageMetrics, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeVolumesOutput - if *v == nil { - sv = &DescribeVolumesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("nextToken", t.Name.Local): + case strings.EqualFold("vpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163555,13 +166588,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesO } { xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - - case strings.EqualFold("volumeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeList(&sv.Volumes, nodeDecoder); err != nil { - return err + sv.VpcId = ptr.String(xtv) } default: @@ -163578,13 +166605,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesO return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVolumeStatusOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessExclusionsOutput(v **DescribeVpcBlockPublicAccessExclusionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumeStatusOutput + var sv *DescribeVpcBlockPublicAccessExclusionsOutput if *v == nil { - sv = &DescribeVolumeStatusOutput{} + sv = &DescribeVpcBlockPublicAccessExclusionsOutput{} } else { sv = *v } @@ -163613,9 +166640,9 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVol sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("volumeStatusSet", t.Name.Local): + case strings.EqualFold("vpcBlockPublicAccessExclusionSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusList(&sv.VolumeStatuses, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusionList(&sv.VpcBlockPublicAccessExclusions, nodeDecoder); err != nil { return err } @@ -163633,13 +166660,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVol return nil } -func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpcAttributeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessOptionsOutput(v **DescribeVpcBlockPublicAccessOptionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVpcAttributeOutput + var sv *DescribeVpcBlockPublicAccessOptionsOutput if *v == nil { - sv = &DescribeVpcAttributeOutput{} + sv = &DescribeVpcBlockPublicAccessOptionsOutput{} } else { sv = *v } @@ -163655,37 +166682,12 @@ func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpc originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("enableDnsHostnames", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsHostnames, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("enableDnsSupport", t.Name.Local): + case strings.EqualFold("vpcBlockPublicAccessOptions", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsSupport, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(&sv.VpcBlockPublicAccessOptions, nodeDecoder); err != nil { return err } - case strings.EqualFold("enableNetworkAddressUsageMetrics", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableNetworkAddressUsageMetrics, 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() @@ -173380,6 +176382,90 @@ func awsEc2query_deserializeOpDocumentModifyVolumeOutput(v **ModifyVolumeOutput, return nil } +func awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessExclusionOutput(v **ModifyVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &ModifyVpcBlockPublicAccessExclusionOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, 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_deserializeOpDocumentModifyVpcBlockPublicAccessOptionsOutput(v **ModifyVpcBlockPublicAccessOptionsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyVpcBlockPublicAccessOptionsOutput + if *v == nil { + sv = &ModifyVpcBlockPublicAccessOptionsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("vpcBlockPublicAccessOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(&sv.VpcBlockPublicAccessOptions, 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_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(v **ModifyVpcEndpointConnectionNotificationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -174306,6 +177392,48 @@ func awsEc2query_deserializeOpDocumentProvisionPublicIpv4PoolCidrOutput(v **Prov return nil } +func awsEc2query_deserializeOpDocumentPurchaseCapacityBlockExtensionOutput(v **PurchaseCapacityBlockExtensionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *PurchaseCapacityBlockExtensionOutput + if *v == nil { + sv = &PurchaseCapacityBlockExtensionOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("capacityBlockExtensionSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityBlockExtensionSet(&sv.CapacityBlockExtensions, 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_deserializeOpDocumentPurchaseCapacityBlockOutput(v **PurchaseCapacityBlockOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json index 7631a3dd..63cdf4d2 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json @@ -146,6 +146,7 @@ "api_op_CreateVerifiedAccessTrustProvider.go", "api_op_CreateVolume.go", "api_op_CreateVpc.go", + "api_op_CreateVpcBlockPublicAccessExclusion.go", "api_op_CreateVpcEndpoint.go", "api_op_CreateVpcEndpointConnectionNotification.go", "api_op_CreateVpcEndpointServiceConfiguration.go", @@ -221,6 +222,7 @@ "api_op_DeleteVerifiedAccessTrustProvider.go", "api_op_DeleteVolume.go", "api_op_DeleteVpc.go", + "api_op_DeleteVpcBlockPublicAccessExclusion.go", "api_op_DeleteVpcEndpointConnectionNotifications.go", "api_op_DeleteVpcEndpointServiceConfigurations.go", "api_op_DeleteVpcEndpoints.go", @@ -245,6 +247,8 @@ "api_op_DescribeAwsNetworkPerformanceMetricSubscriptions.go", "api_op_DescribeBundleTasks.go", "api_op_DescribeByoipCidrs.go", + "api_op_DescribeCapacityBlockExtensionHistory.go", + "api_op_DescribeCapacityBlockExtensionOfferings.go", "api_op_DescribeCapacityBlockOfferings.go", "api_op_DescribeCapacityReservationBillingRequests.go", "api_op_DescribeCapacityReservationFleets.go", @@ -379,6 +383,8 @@ "api_op_DescribeVolumes.go", "api_op_DescribeVolumesModifications.go", "api_op_DescribeVpcAttribute.go", + "api_op_DescribeVpcBlockPublicAccessExclusions.go", + "api_op_DescribeVpcBlockPublicAccessOptions.go", "api_op_DescribeVpcClassicLink.go", "api_op_DescribeVpcClassicLinkDnsSupport.go", "api_op_DescribeVpcEndpointConnectionNotifications.go", @@ -565,6 +571,8 @@ "api_op_ModifyVolume.go", "api_op_ModifyVolumeAttribute.go", "api_op_ModifyVpcAttribute.go", + "api_op_ModifyVpcBlockPublicAccessExclusion.go", + "api_op_ModifyVpcBlockPublicAccessOptions.go", "api_op_ModifyVpcEndpoint.go", "api_op_ModifyVpcEndpointConnectionNotification.go", "api_op_ModifyVpcEndpointServiceConfiguration.go", @@ -585,6 +593,7 @@ "api_op_ProvisionIpamPoolCidr.go", "api_op_ProvisionPublicIpv4PoolCidr.go", "api_op_PurchaseCapacityBlock.go", + "api_op_PurchaseCapacityBlockExtension.go", "api_op_PurchaseHostReservation.go", "api_op_PurchaseReservedInstancesOffering.go", "api_op_PurchaseScheduledInstances.go", diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go index 443248fe..0d959f60 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go @@ -3,4 +3,4 @@ package ec2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.189.0" +const goModuleVersion = "1.194.0" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go index 7d889125..8d51c9f2 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go @@ -9468,6 +9468,76 @@ func (m *awsEc2query_serializeOpCreateVpc) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateVpcBlockPublicAccessExclusionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateVpcBlockPublicAccessExclusion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateVpcBlockPublicAccessExclusionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateVpcEndpoint struct { } @@ -14718,6 +14788,76 @@ func (m *awsEc2query_serializeOpDeleteVpc) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteVpcBlockPublicAccessExclusionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DeleteVpcBlockPublicAccessExclusion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDeleteVpcBlockPublicAccessExclusionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications struct { } @@ -16398,6 +16538,146 @@ func (m *awsEc2query_serializeOpDescribeByoipCidrs) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDescribeCapacityBlockExtensionHistory struct { +} + +func (*awsEc2query_serializeOpDescribeCapacityBlockExtensionHistory) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeCapacityBlockExtensionHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeCapacityBlockExtensionHistoryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeCapacityBlockExtensionHistory") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeCapacityBlockExtensionHistoryInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeCapacityBlockExtensionOfferings struct { +} + +func (*awsEc2query_serializeOpDescribeCapacityBlockExtensionOfferings) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeCapacityBlockExtensionOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeCapacityBlockExtensionOfferingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeCapacityBlockExtensionOfferings") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeCapacityBlockExtensionOfferingsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDescribeCapacityBlockOfferings struct { } @@ -25778,14 +26058,14 @@ func (m *awsEc2query_serializeOpDescribeVpcAttribute) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcClassicLink struct { +type awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions struct { } -func (*awsEc2query_serializeOpDescribeVpcClassicLink) ID() string { +func (*awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -25797,7 +26077,147 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcClassicLinkInput) + input, ok := in.Parameters.(*DescribeVpcBlockPublicAccessExclusionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeVpcBlockPublicAccessExclusions") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessExclusionsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions struct { +} + +func (*awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeVpcBlockPublicAccessOptionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeVpcBlockPublicAccessOptions") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessOptionsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeVpcClassicLink struct { +} + +func (*awsEc2query_serializeOpDescribeVpcClassicLink) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeVpcClassicLinkInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -38798,6 +39218,146 @@ func (m *awsEc2query_serializeOpModifyVpcAttribute) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessExclusionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ModifyVpcBlockPublicAccessExclusion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessExclusionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions struct { +} + +func (*awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessOptionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ModifyVpcBlockPublicAccessOptions") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessOptionsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpModifyVpcEndpoint struct { } @@ -40198,6 +40758,76 @@ func (m *awsEc2query_serializeOpPurchaseCapacityBlock) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpPurchaseCapacityBlockExtension struct { +} + +func (*awsEc2query_serializeOpPurchaseCapacityBlockExtension) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpPurchaseCapacityBlockExtension) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*PurchaseCapacityBlockExtensionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("PurchaseCapacityBlockExtension") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentPurchaseCapacityBlockExtensionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpPurchaseHostReservation struct { } @@ -44797,6 +45427,33 @@ func awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v []types.AddIpamOpe return nil } +func awsEc2query_serializeDocumentAddIpamOrganizationalUnitExclusion(v *types.AddIpamOrganizationalUnitExclusion, value query.Value) error { + object := value.Object() + _ = object + + if v.OrganizationsEntityPath != nil { + objectKey := object.Key("OrganizationsEntityPath") + objectKey.String(*v.OrganizationsEntityPath) + } + + return nil +} + +func awsEc2query_serializeDocumentAddIpamOrganizationalUnitExclusionSet(v []types.AddIpamOrganizationalUnitExclusion, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Member") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentAddIpamOrganizationalUnitExclusion(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentAddPrefixListEntries(v []types.AddPrefixListEntry, value query.Value) error { if len(v) == 0 { return nil @@ -45050,6 +45707,34 @@ func awsEc2query_serializeDocumentBaselineEbsBandwidthMbpsRequest(v *types.Basel return nil } +func awsEc2query_serializeDocumentBaselinePerformanceFactors(v *types.BaselinePerformanceFactors, value query.Value) error { + object := value.Object() + _ = object + + if v.Cpu != nil { + objectKey := object.Key("Cpu") + if err := awsEc2query_serializeDocumentCpuPerformanceFactor(v.Cpu, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentBaselinePerformanceFactorsRequest(v *types.BaselinePerformanceFactorsRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Cpu != nil { + objectKey := object.Key("Cpu") + if err := awsEc2query_serializeDocumentCpuPerformanceFactorRequest(v.Cpu, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentBillingProductList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -45592,6 +46277,34 @@ func awsEc2query_serializeDocumentCpuOptionsRequest(v *types.CpuOptionsRequest, return nil } +func awsEc2query_serializeDocumentCpuPerformanceFactor(v *types.CpuPerformanceFactor, value query.Value) error { + object := value.Object() + _ = object + + if v.References != nil { + objectKey := object.FlatKey("ReferenceSet") + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceSet(v.References, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentCpuPerformanceFactorRequest(v *types.CpuPerformanceFactorRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.References != nil { + objectKey := object.FlatKey("Reference") + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceSetRequest(v.References, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentCreateTransitGatewayConnectRequestOptions(v *types.CreateTransitGatewayConnectRequestOptions, value query.Value) error { object := value.Object() _ = object @@ -47770,6 +48483,13 @@ func awsEc2query_serializeDocumentInstanceRequirements(v *types.InstanceRequirem } } + if v.BaselinePerformanceFactors != nil { + objectKey := object.Key("BaselinePerformanceFactors") + if err := awsEc2query_serializeDocumentBaselinePerformanceFactors(v.BaselinePerformanceFactors, objectKey); err != nil { + return err + } + } + if len(v.BurstablePerformance) > 0 { objectKey := object.Key("BurstablePerformance") objectKey.String(string(v.BurstablePerformance)) @@ -47931,6 +48651,13 @@ func awsEc2query_serializeDocumentInstanceRequirementsRequest(v *types.InstanceR } } + if v.BaselinePerformanceFactors != nil { + objectKey := object.Key("BaselinePerformanceFactors") + if err := awsEc2query_serializeDocumentBaselinePerformanceFactorsRequest(v.BaselinePerformanceFactors, objectKey); err != nil { + return err + } + } + if len(v.BurstablePerformance) > 0 { objectKey := object.Key("BurstablePerformance") objectKey.String(string(v.BurstablePerformance)) @@ -50286,6 +51013,18 @@ func awsEc2query_serializeDocumentOnDemandOptionsRequest(v *types.OnDemandOption return nil } +func awsEc2query_serializeDocumentOperatorRequest(v *types.OperatorRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Principal != nil { + objectKey := object.Key("Principal") + objectKey.String(*v.Principal) + } + + return nil +} + func awsEc2query_serializeDocumentOrganizationalUnitArnStringList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -50455,6 +51194,60 @@ func awsEc2query_serializeDocumentPeeringConnectionOptionsRequest(v *types.Peeri return nil } +func awsEc2query_serializeDocumentPerformanceFactorReference(v *types.PerformanceFactorReference, value query.Value) error { + object := value.Object() + _ = object + + if v.InstanceFamily != nil { + objectKey := object.Key("InstanceFamily") + objectKey.String(*v.InstanceFamily) + } + + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceRequest(v *types.PerformanceFactorReferenceRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.InstanceFamily != nil { + objectKey := object.Key("InstanceFamily") + objectKey.String(*v.InstanceFamily) + } + + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceSet(v []types.PerformanceFactorReference, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentPerformanceFactorReference(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceSetRequest(v []types.PerformanceFactorReferenceRequest, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestList(v []types.Phase1DHGroupNumbersRequestListValue, value query.Value) error { if len(v) == 0 { return nil @@ -51071,6 +51864,33 @@ func awsEc2query_serializeDocumentRemoveIpamOperatingRegionSet(v []types.RemoveI return nil } +func awsEc2query_serializeDocumentRemoveIpamOrganizationalUnitExclusion(v *types.RemoveIpamOrganizationalUnitExclusion, value query.Value) error { + object := value.Object() + _ = object + + if v.OrganizationsEntityPath != nil { + objectKey := object.Key("OrganizationsEntityPath") + objectKey.String(*v.OrganizationsEntityPath) + } + + return nil +} + +func awsEc2query_serializeDocumentRemoveIpamOrganizationalUnitExclusionSet(v []types.RemoveIpamOrganizationalUnitExclusion, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Member") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentRemoveIpamOrganizationalUnitExclusion(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentRemovePrefixListEntries(v []types.RemovePrefixListEntry, value query.Value) error { if len(v) == 0 { return nil @@ -51355,6 +52175,13 @@ func awsEc2query_serializeDocumentRequestLaunchTemplateData(v *types.RequestLaun } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.Placement != nil { objectKey := object.Key("Placement") if err := awsEc2query_serializeDocumentLaunchTemplatePlacementRequest(v.Placement, objectKey); err != nil { @@ -54112,6 +54939,19 @@ func awsEc2query_serializeDocumentVolumeIdStringList(v []string, value query.Val return nil } +func awsEc2query_serializeDocumentVpcBlockPublicAccessExclusionIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsEc2query_serializeDocumentVpcClassicLinkIdList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -56158,6 +56998,11 @@ func awsEc2query_serializeOpDocumentCopySnapshotInput(v *CopySnapshotInput, valu object := value.Object() _ = object + if v.CompletionDurationMinutes != nil { + objectKey := object.Key("CompletionDurationMinutes") + objectKey.Integer(*v.CompletionDurationMinutes) + } + if v.Description != nil { objectKey := object.Key("Description") objectKey.String(*v.Description) @@ -56322,6 +57167,16 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(*v.ClientToken) } + if v.CommitmentDuration != nil { + objectKey := object.Key("CommitmentDuration") + objectKey.Long(*v.CommitmentDuration) + } + + if len(v.DeliveryPreference) > 0 { + objectKey := object.Key("DeliveryPreference") + objectKey.String(string(v.DeliveryPreference)) + } + if v.DryRun != nil { objectKey := object.Key("DryRun") objectKey.Boolean(*v.DryRun) @@ -56377,6 +57232,11 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(*v.PlacementGroupArn) } + if v.StartDate != nil { + objectKey := object.Key("StartDate") + objectKey.String(smithytime.FormatDateTime(*v.StartDate)) + } + if v.TagSpecifications != nil { objectKey := object.FlatKey("TagSpecifications") if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { @@ -57457,6 +58317,13 @@ func awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(v *CreateLaunchTem objectKey.String(*v.LaunchTemplateName) } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.TagSpecifications != nil { objectKey := object.FlatKey("TagSpecification") if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { @@ -58029,6 +58896,13 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.PrivateIpAddress != nil { objectKey := object.Key("PrivateIpAddress") objectKey.String(*v.PrivateIpAddress) @@ -59540,6 +60414,13 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.Boolean(*v.MultiAttachEnabled) } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.OutpostArn != nil { objectKey := object.Key("OutpostArn") objectKey.String(*v.OutpostArn) @@ -59575,6 +60456,40 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu return nil } +func awsEc2query_serializeOpDocumentCreateVpcBlockPublicAccessExclusionInput(v *CreateVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if len(v.InternetGatewayExclusionMode) > 0 { + objectKey := object.Key("InternetGatewayExclusionMode") + objectKey.String(string(v.InternetGatewayExclusionMode)) + } + + if v.SubnetId != nil { + objectKey := object.Key("SubnetId") + objectKey.String(*v.SubnetId) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + if v.VpcId != nil { + objectKey := object.Key("VpcId") + objectKey.String(*v.VpcId) + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateVpcEndpointConnectionNotificationInput(v *CreateVpcEndpointConnectionNotificationInput, value query.Value) error { object := value.Object() _ = object @@ -59669,6 +60584,11 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointInput(v *CreateVpcEndpointI objectKey.String(*v.ServiceName) } + if v.ServiceRegion != nil { + objectKey := object.Key("ServiceRegion") + objectKey.String(*v.ServiceRegion) + } + if v.SubnetConfigurations != nil { objectKey := object.FlatKey("SubnetConfiguration") if err := awsEc2query_serializeDocumentSubnetConfigurationsList(v.SubnetConfigurations, objectKey); err != nil { @@ -59748,6 +60668,13 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointServiceConfigurationInput(v } } + if v.SupportedRegions != nil { + objectKey := object.FlatKey("SupportedRegion") + if err := awsEc2query_serializeDocumentValueStringList(v.SupportedRegions, objectKey); err != nil { + return err + } + } + if v.TagSpecifications != nil { objectKey := object.FlatKey("TagSpecification") if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { @@ -61249,6 +62176,23 @@ func awsEc2query_serializeOpDocumentDeleteVolumeInput(v *DeleteVolumeInput, valu return nil } +func awsEc2query_serializeOpDocumentDeleteVpcBlockPublicAccessExclusionInput(v *DeleteVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionId != nil { + objectKey := object.Key("ExclusionId") + objectKey.String(*v.ExclusionId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeleteVpcEndpointConnectionNotificationsInput(v *DeleteVpcEndpointConnectionNotificationsInput, value query.Value) error { object := value.Object() _ = object @@ -61810,6 +62754,74 @@ func awsEc2query_serializeOpDocumentDescribeByoipCidrsInput(v *DescribeByoipCidr return nil } +func awsEc2query_serializeOpDocumentDescribeCapacityBlockExtensionHistoryInput(v *DescribeCapacityBlockExtensionHistoryInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CapacityReservationIds != nil { + objectKey := object.FlatKey("CapacityReservationId") + if err := awsEc2query_serializeDocumentCapacityReservationIdSet(v.CapacityReservationIds, objectKey); err != nil { + return err + } + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDescribeCapacityBlockExtensionOfferingsInput(v *DescribeCapacityBlockExtensionOfferingsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CapacityBlockExtensionDurationHours != nil { + objectKey := object.Key("CapacityBlockExtensionDurationHours") + objectKey.Integer(*v.CapacityBlockExtensionDurationHours) + } + + if v.CapacityReservationId != nil { + objectKey := object.Key("CapacityReservationId") + objectKey.String(*v.CapacityReservationId) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeCapacityBlockOfferingsInput(v *DescribeCapacityBlockOfferingsInput, value query.Value) error { object := value.Object() _ = object @@ -66512,6 +67524,54 @@ func awsEc2query_serializeOpDocumentDescribeVpcAttributeInput(v *DescribeVpcAttr return nil } +func awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessExclusionsInput(v *DescribeVpcBlockPublicAccessExclusionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionIds != nil { + objectKey := object.FlatKey("ExclusionId") + if err := awsEc2query_serializeDocumentVpcBlockPublicAccessExclusionIdList(v.ExclusionIds, objectKey); err != nil { + return err + } + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessOptionsInput(v *DescribeVpcBlockPublicAccessOptionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(v *DescribeVpcClassicLinkDnsSupportInput, value query.Value) error { object := value.Object() _ = object @@ -66728,6 +67788,13 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicesInput(v *Describe } } + if v.ServiceRegions != nil { + objectKey := object.FlatKey("ServiceRegion") + if err := awsEc2query_serializeDocumentValueStringList(v.ServiceRegions, objectKey); err != nil { + return err + } + } + return nil } @@ -70975,6 +72042,13 @@ func awsEc2query_serializeOpDocumentModifyIpamResourceDiscoveryInput(v *ModifyIp } } + if v.AddOrganizationalUnitExclusions != nil { + objectKey := object.FlatKey("AddOrganizationalUnitExclusion") + if err := awsEc2query_serializeDocumentAddIpamOrganizationalUnitExclusionSet(v.AddOrganizationalUnitExclusions, objectKey); err != nil { + return err + } + } + if v.Description != nil { objectKey := object.Key("Description") objectKey.String(*v.Description) @@ -70997,6 +72071,13 @@ func awsEc2query_serializeOpDocumentModifyIpamResourceDiscoveryInput(v *ModifyIp } } + if v.RemoveOrganizationalUnitExclusions != nil { + objectKey := object.FlatKey("RemoveOrganizationalUnitExclusion") + if err := awsEc2query_serializeDocumentRemoveIpamOrganizationalUnitExclusionSet(v.RemoveOrganizationalUnitExclusions, objectKey); err != nil { + return err + } + } + return nil } @@ -72089,6 +73170,45 @@ func awsEc2query_serializeOpDocumentModifyVpcAttributeInput(v *ModifyVpcAttribut return nil } +func awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessExclusionInput(v *ModifyVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionId != nil { + objectKey := object.Key("ExclusionId") + objectKey.String(*v.ExclusionId) + } + + if len(v.InternetGatewayExclusionMode) > 0 { + objectKey := object.Key("InternetGatewayExclusionMode") + objectKey.String(string(v.InternetGatewayExclusionMode)) + } + + return nil +} + +func awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessOptionsInput(v *ModifyVpcBlockPublicAccessOptionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if len(v.InternetGatewayBlockMode) > 0 { + objectKey := object.Key("InternetGatewayBlockMode") + objectKey.String(string(v.InternetGatewayBlockMode)) + } + + return nil +} + func awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput(v *ModifyVpcEndpointConnectionNotificationInput, value query.Value) error { object := value.Object() _ = object @@ -72241,6 +73361,13 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(v } } + if v.AddSupportedRegions != nil { + objectKey := object.FlatKey("AddSupportedRegion") + if err := awsEc2query_serializeDocumentValueStringList(v.AddSupportedRegions, objectKey); err != nil { + return err + } + } + if v.DryRun != nil { objectKey := object.Key("DryRun") objectKey.Boolean(*v.DryRun) @@ -72277,6 +73404,13 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(v } } + if v.RemoveSupportedRegions != nil { + objectKey := object.FlatKey("RemoveSupportedRegion") + if err := awsEc2query_serializeDocumentValueStringList(v.RemoveSupportedRegions, objectKey); err != nil { + return err + } + } + if v.ServiceId != nil { objectKey := object.Key("ServiceId") objectKey.String(*v.ServiceId) @@ -72772,6 +73906,28 @@ func awsEc2query_serializeOpDocumentProvisionPublicIpv4PoolCidrInput(v *Provisio return nil } +func awsEc2query_serializeOpDocumentPurchaseCapacityBlockExtensionInput(v *PurchaseCapacityBlockExtensionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CapacityBlockExtensionOfferingId != nil { + objectKey := object.Key("CapacityBlockExtensionOfferingId") + objectKey.String(*v.CapacityBlockExtensionOfferingId) + } + + if v.CapacityReservationId != nil { + objectKey := object.Key("CapacityReservationId") + objectKey.String(*v.CapacityReservationId) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentPurchaseCapacityBlockInput(v *PurchaseCapacityBlockInput, value query.Value) error { object := value.Object() _ = object @@ -74310,6 +75466,13 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.Placement != nil { objectKey := object.Key("Placement") if err := awsEc2query_serializeDocumentPlacement(v.Placement, objectKey); err != nil { diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go index 52abe006..cfb28393 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go @@ -695,6 +695,27 @@ func (BgpStatus) Values() []BgpStatus { } } +type BlockPublicAccessMode string + +// Enum values for BlockPublicAccessMode +const ( + BlockPublicAccessModeOff BlockPublicAccessMode = "off" + BlockPublicAccessModeBlockBidirectional BlockPublicAccessMode = "block-bidirectional" + BlockPublicAccessModeBlockIngress BlockPublicAccessMode = "block-ingress" +) + +// Values returns all known values for BlockPublicAccessMode. Note that this can +// be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (BlockPublicAccessMode) Values() []BlockPublicAccessMode { + return []BlockPublicAccessMode{ + "off", + "block-bidirectional", + "block-ingress", + } +} + type BootModeType string // Enum values for BootModeType @@ -884,6 +905,28 @@ func (CancelSpotInstanceRequestState) Values() []CancelSpotInstanceRequestState } } +type CapacityBlockExtensionStatus string + +// Enum values for CapacityBlockExtensionStatus +const ( + CapacityBlockExtensionStatusPaymentPending CapacityBlockExtensionStatus = "payment-pending" + CapacityBlockExtensionStatusPaymentFailed CapacityBlockExtensionStatus = "payment-failed" + CapacityBlockExtensionStatusPaymentSucceeded CapacityBlockExtensionStatus = "payment-succeeded" +) + +// Values returns all known values for CapacityBlockExtensionStatus. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (CapacityBlockExtensionStatus) Values() []CapacityBlockExtensionStatus { + return []CapacityBlockExtensionStatus{ + "payment-pending", + "payment-failed", + "payment-succeeded", + } +} + type CapacityReservationBillingRequestStatus string // Enum values for CapacityReservationBillingRequestStatus @@ -912,6 +955,26 @@ func (CapacityReservationBillingRequestStatus) Values() []CapacityReservationBil } } +type CapacityReservationDeliveryPreference string + +// Enum values for CapacityReservationDeliveryPreference +const ( + CapacityReservationDeliveryPreferenceFixed CapacityReservationDeliveryPreference = "fixed" + CapacityReservationDeliveryPreferenceIncremental CapacityReservationDeliveryPreference = "incremental" +) + +// Values returns all known values for CapacityReservationDeliveryPreference. Note +// that this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (CapacityReservationDeliveryPreference) Values() []CapacityReservationDeliveryPreference { + return []CapacityReservationDeliveryPreference{ + "fixed", + "incremental", + } +} + type CapacityReservationFleetState string // Enum values for CapacityReservationFleetState @@ -1002,8 +1065,9 @@ type CapacityReservationPreference string // Enum values for CapacityReservationPreference const ( - CapacityReservationPreferenceOpen CapacityReservationPreference = "open" - CapacityReservationPreferenceNone CapacityReservationPreference = "none" + CapacityReservationPreferenceCapacityReservationsOnly CapacityReservationPreference = "capacity-reservations-only" + CapacityReservationPreferenceOpen CapacityReservationPreference = "open" + CapacityReservationPreferenceNone CapacityReservationPreference = "none" ) // Values returns all known values for CapacityReservationPreference. Note that @@ -1013,6 +1077,7 @@ const ( // The ordering of this slice is not guaranteed to be stable across updates. func (CapacityReservationPreference) Values() []CapacityReservationPreference { return []CapacityReservationPreference{ + "capacity-reservations-only", "open", "none", } @@ -1030,6 +1095,9 @@ const ( CapacityReservationStateScheduled CapacityReservationState = "scheduled" CapacityReservationStatePaymentPending CapacityReservationState = "payment-pending" CapacityReservationStatePaymentFailed CapacityReservationState = "payment-failed" + CapacityReservationStateAssessing CapacityReservationState = "assessing" + CapacityReservationStateDelayed CapacityReservationState = "delayed" + CapacityReservationStateUnsupported CapacityReservationState = "unsupported" ) // Values returns all known values for CapacityReservationState. Note that this @@ -1046,6 +1114,9 @@ func (CapacityReservationState) Values() []CapacityReservationState { "scheduled", "payment-pending", "payment-failed", + "assessing", + "delayed", + "unsupported", } } @@ -1384,6 +1455,7 @@ const ( CpuManufacturerIntel CpuManufacturer = "intel" CpuManufacturerAmd CpuManufacturer = "amd" CpuManufacturerAmazonWebServices CpuManufacturer = "amazon-web-services" + CpuManufacturerApple CpuManufacturer = "apple" ) // Values returns all known values for CpuManufacturer. Note that this can be @@ -1395,6 +1467,7 @@ func (CpuManufacturer) Values() []CpuManufacturer { "intel", "amd", "amazon-web-services", + "apple", } } @@ -4986,6 +5059,47 @@ func (InterfaceProtocolType) Values() []InterfaceProtocolType { } } +type InternetGatewayBlockMode string + +// Enum values for InternetGatewayBlockMode +const ( + InternetGatewayBlockModeOff InternetGatewayBlockMode = "off" + InternetGatewayBlockModeBlockBidirectional InternetGatewayBlockMode = "block-bidirectional" + InternetGatewayBlockModeBlockIngress InternetGatewayBlockMode = "block-ingress" +) + +// Values returns all known values for InternetGatewayBlockMode. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (InternetGatewayBlockMode) Values() []InternetGatewayBlockMode { + return []InternetGatewayBlockMode{ + "off", + "block-bidirectional", + "block-ingress", + } +} + +type InternetGatewayExclusionMode string + +// Enum values for InternetGatewayExclusionMode +const ( + InternetGatewayExclusionModeAllowBidirectional InternetGatewayExclusionMode = "allow-bidirectional" + InternetGatewayExclusionModeAllowEgress InternetGatewayExclusionMode = "allow-egress" +) + +// Values returns all known values for InternetGatewayExclusionMode. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (InternetGatewayExclusionMode) Values() []InternetGatewayExclusionMode { + return []InternetGatewayExclusionMode{ + "allow-bidirectional", + "allow-egress", + } +} + type IpAddressType string // Enum values for IpAddressType @@ -8391,6 +8505,25 @@ func (TrafficType) Values() []TrafficType { } } +type TransferType string + +// Enum values for TransferType +const ( + TransferTypeTimeBased TransferType = "time-based" + TransferTypeStandard TransferType = "standard" +) + +// Values returns all known values for TransferType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (TransferType) Values() []TransferType { + return []TransferType{ + "time-based", + "standard", + } +} + type TransitGatewayAssociationState string // Enum values for TransitGatewayAssociationState @@ -9246,6 +9379,63 @@ func (VpcAttributeName) Values() []VpcAttributeName { } } +type VpcBlockPublicAccessExclusionState string + +// Enum values for VpcBlockPublicAccessExclusionState +const ( + VpcBlockPublicAccessExclusionStateCreateInProgress VpcBlockPublicAccessExclusionState = "create-in-progress" + VpcBlockPublicAccessExclusionStateCreateComplete VpcBlockPublicAccessExclusionState = "create-complete" + VpcBlockPublicAccessExclusionStateCreateFailed VpcBlockPublicAccessExclusionState = "create-failed" + VpcBlockPublicAccessExclusionStateUpdateInProgress VpcBlockPublicAccessExclusionState = "update-in-progress" + VpcBlockPublicAccessExclusionStateUpdateComplete VpcBlockPublicAccessExclusionState = "update-complete" + VpcBlockPublicAccessExclusionStateUpdateFailed VpcBlockPublicAccessExclusionState = "update-failed" + VpcBlockPublicAccessExclusionStateDeleteInProgress VpcBlockPublicAccessExclusionState = "delete-in-progress" + VpcBlockPublicAccessExclusionStateDeleteComplete VpcBlockPublicAccessExclusionState = "delete-complete" + VpcBlockPublicAccessExclusionStateDisableInProgress VpcBlockPublicAccessExclusionState = "disable-in-progress" + VpcBlockPublicAccessExclusionStateDisableComplete VpcBlockPublicAccessExclusionState = "disable-complete" +) + +// Values returns all known values for VpcBlockPublicAccessExclusionState. Note +// that this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (VpcBlockPublicAccessExclusionState) Values() []VpcBlockPublicAccessExclusionState { + return []VpcBlockPublicAccessExclusionState{ + "create-in-progress", + "create-complete", + "create-failed", + "update-in-progress", + "update-complete", + "update-failed", + "delete-in-progress", + "delete-complete", + "disable-in-progress", + "disable-complete", + } +} + +type VpcBlockPublicAccessState string + +// Enum values for VpcBlockPublicAccessState +const ( + VpcBlockPublicAccessStateDefaultState VpcBlockPublicAccessState = "default-state" + VpcBlockPublicAccessStateUpdateInProgress VpcBlockPublicAccessState = "update-in-progress" + VpcBlockPublicAccessStateUpdateComplete VpcBlockPublicAccessState = "update-complete" +) + +// Values returns all known values for VpcBlockPublicAccessState. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (VpcBlockPublicAccessState) Values() []VpcBlockPublicAccessState { + return []VpcBlockPublicAccessState{ + "default-state", + "update-in-progress", + "update-complete", + } +} + type VpcCidrBlockStateCode string // Enum values for VpcCidrBlockStateCode diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go index 57109eda..697d5c78 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go @@ -190,6 +190,47 @@ type AddIpamOperatingRegion struct { noSmithyDocumentSerde } +// 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. +// +// [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html +type AddIpamOrganizationalUnitExclusion struct { + + // An Amazon Web Services Organizations entity path. Build the path for the OU(s) + // using Amazon Web Services Organizations IDs separated by a / . Include all child + // OUs by ending the path with /* . + // + // - Example 1 + // + // - Path to a child OU: + // o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/ou-jkl0-awsddddd/ + // + // - In this example, o-a1b2c3d4e5 is the organization ID, r-f6g7h8i9j0example is + // the root ID , ou-ghi0-awsccccc is an OU ID, and ou-jkl0-awsddddd is a child OU + // ID. + // + // - IPAM will not manage the IP addresses in accounts in the child OU. + // + // - Example 2 + // + // - Path where all child OUs will be part of the exclusion: + // o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/* + // + // - In this example, IPAM will not manage the IP addresses in accounts in the + // OU ( ou-ghi0-awsccccc ) or in accounts in any OUs that are children of the OU. + // + // For more information on how to construct an entity path, see [Understand the Amazon Web Services Organizations entity path] in the Amazon Web + // Services Identity and Access Management User Guide. + // + // [Understand the Amazon Web Services Organizations entity path]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed-view-data-orgs.html#access_policies_access-advisor-viewing-orgs-entity-path + OrganizationsEntityPath *string + + noSmithyDocumentSerde +} + // Describes an additional detail for a path analysis. For more information, see [Reachability Analyzer additional detail codes]. // // [Reachability Analyzer additional detail codes]: https://docs.aws.amazon.com/vpc/latest/reachability/additional-detail-codes.html @@ -858,6 +899,42 @@ type BaselineEbsBandwidthMbpsRequest struct { noSmithyDocumentSerde } +// The baseline performance to consider, using an instance family as a baseline +// reference. The instance family establishes the lowest acceptable level of +// performance. Amazon EC2 uses this baseline to guide instance type selection, but +// there is no guarantee that the selected instance types will always exceed the +// baseline for every application. +// +// Currently, this parameter only supports CPU performance as a baseline +// performance factor. For example, specifying c6i would use the CPU performance +// of the c6i family as the baseline reference. +type BaselinePerformanceFactors struct { + + // The CPU performance to consider, using an instance family as the baseline + // reference. + Cpu *CpuPerformanceFactor + + noSmithyDocumentSerde +} + +// The baseline performance to consider, using an instance family as a baseline +// reference. The instance family establishes the lowest acceptable level of +// performance. Amazon EC2 uses this baseline to guide instance type selection, but +// there is no guarantee that the selected instance types will always exceed the +// baseline for every application. +// +// Currently, this parameter only supports CPU performance as a baseline +// performance factor. For example, specifying c6i would use the CPU performance +// of the c6i family as the baseline reference. +type BaselinePerformanceFactorsRequest struct { + + // The CPU performance to consider, using an instance family as the baseline + // reference. + Cpu *CpuPerformanceFactorRequest + + noSmithyDocumentSerde +} + type BlobAttributeValue struct { Value []byte @@ -897,6 +974,27 @@ type BlockDeviceMapping struct { noSmithyDocumentSerde } +// The state of VPC Block Public Access (BPA). +type BlockPublicAccessStates 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. + InternetGatewayBlockMode BlockPublicAccessMode + + noSmithyDocumentSerde +} + // Describes a bundle task. type BundleTask struct { @@ -1101,15 +1199,134 @@ type CapacityAllocation struct { noSmithyDocumentSerde } +// Describes a Capacity Block extension. With an extension, you can extend the +// duration of time for an existing Capacity Block. +type CapacityBlockExtension struct { + + // The Availability Zone of the Capacity Block extension. + AvailabilityZone *string + + // The Availability Zone ID of the Capacity Block extension. + AvailabilityZoneId *string + + // The duration of the Capacity Block extension in hours. + CapacityBlockExtensionDurationHours *int32 + + // The end date of the Capacity Block extension. + CapacityBlockExtensionEndDate *time.Time + + // The ID of the Capacity Block extension offering. + CapacityBlockExtensionOfferingId *string + + // The date when the Capacity Block extension was purchased. + CapacityBlockExtensionPurchaseDate *time.Time + + // The start date of the Capacity Block extension. + CapacityBlockExtensionStartDate *time.Time + + // The status of the Capacity Block extension. A Capacity Block extension can have + // one of the following statuses: + // + // - payment-pending - The Capacity Block extension payment is processing. If + // your payment can't be processed within 12 hours, the Capacity Block extension is + // failed. + // + // - payment-failed - Payment for the Capacity Block extension request was not + // successful. + // + // - payment-succeeded - Payment for the Capacity Block extension request was + // successful. You receive an invoice that reflects the one-time upfront payment. + // In the invoice, you can associate the paid amount with the Capacity Block + // reservation ID. + CapacityBlockExtensionStatus CapacityBlockExtensionStatus + + // The reservation ID of the Capacity Block extension. + CapacityReservationId *string + + // The currency of the payment for the Capacity Block extension. + CurrencyCode *string + + // The number of instances in the Capacity Block extension. + InstanceCount *int32 + + // The instance type of the Capacity Block extension. + InstanceType *string + + // The total price to be paid up front. + UpfrontFee *string + + noSmithyDocumentSerde +} + +// The recommended Capacity Block extension that fits your search requirements. +type CapacityBlockExtensionOffering struct { + + // The Availability Zone of the Capacity Block that will be extended. + AvailabilityZone *string + + // The Availability Zone ID of the Capacity Block that will be extended. + AvailabilityZoneId *string + + // The amount of time of the Capacity Block extension offering in hours. + CapacityBlockExtensionDurationHours *int32 + + // The date and time at which the Capacity Block extension expires. When a + // Capacity Block expires, the reserved capacity is released and you can no longer + // launch instances into it. The Capacity Block's state changes to expired when it + // reaches its end date + CapacityBlockExtensionEndDate *time.Time + + // The ID of the Capacity Block extension offering. + CapacityBlockExtensionOfferingId *string + + // The date and time at which the Capacity Block extension will start. This date + // is also the same as the end date of the Capacity Block that will be extended. + CapacityBlockExtensionStartDate *time.Time + + // The currency of the payment for the Capacity Block extension offering. + CurrencyCode *string + + // The number of instances in the Capacity Block extension offering. + InstanceCount *int32 + + // The instance type of the Capacity Block that will be extended. + InstanceType *string + + // The start date of the Capacity Block that will be extended. + StartDate *time.Time + + // Indicates the tenancy of the Capacity Block extension offering. A Capacity + // Block can have one of the following tenancy settings: + // + // - default - The Capacity Block is created on hardware that is shared with + // other Amazon Web Services accounts. + // + // - dedicated - The Capacity Block is created on single-tenant hardware that is + // dedicated to a single Amazon Web Services account. + Tenancy CapacityReservationTenancy + + // The total price of the Capacity Block extension offering, to be paid up front. + UpfrontFee *string + + noSmithyDocumentSerde +} + // The recommended Capacity Block that fits your search requirements. type CapacityBlockOffering struct { // The Availability Zone of the Capacity Block offering. AvailabilityZone *string - // The amount of time of the Capacity Block reservation in hours. + // The number of hours (in addition to capacityBlockDurationMinutes ) for the + // duration of the Capacity Block reservation. For example, if a Capacity Block + // starts at 04:55 and ends at 11:30, the hours field would be 6. CapacityBlockDurationHours *int32 + // The number of minutes (in addition to capacityBlockDurationHours ) for the + // duration of the Capacity Block reservation. For example, if a Capacity Block + // starts at 08:55 and ends at 11:30, the minutes field would be 35. + CapacityBlockDurationMinutes *int32 + // The ID of the Capacity Block offering. CapacityBlockOfferingId *string @@ -1164,9 +1381,18 @@ type CapacityReservation struct { // The ID of the Capacity Reservation. CapacityReservationId *string + // Information about your commitment for a future-dated Capacity Reservation. + CommitmentInfo *CapacityReservationCommitmentInfo + // The date and time at which the Capacity Reservation was created. CreateDate *time.Time + // The delivery method for a future-dated Capacity Reservation. incremental + // indicates that the requested capacity is delivered in addition to any running + // instances and reserved capacity that you have in your account at the requested + // date and time. + DeliveryPreference CapacityReservationDeliveryPreference + // 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 @@ -1237,22 +1463,38 @@ type CapacityReservation struct { // 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. + // - active - The capacity is available for 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. + // time specified in your reservation request. The reserved capacity is no longer + // available for your use. // - // - cancelled - The Capacity Reservation was cancelled. The reserved capacity is + // - 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 might fail - // due to invalid request parameters, capacity constraints, or instance limit - // constraints. Failed requests are retained for 60 minutes. + // - 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 only) The future-dated + // Capacity Reservation request was approved and the Capacity Reservation is + // scheduled for delivery on the requested start date. + // + // - assessing - (Future-dated Capacity Reservations only) Amazon EC2 is + // assessing your request for a future-dated Capacity Reservation. + // + // - delayed - (Future-dated Capacity Reservations only) 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 only) 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 CapacityReservationState // Any tags assigned to the Capacity Reservation. @@ -1309,6 +1551,21 @@ type CapacityReservationBillingRequest struct { noSmithyDocumentSerde } +// Information about your commitment for a future-dated Capacity Reservation. +type CapacityReservationCommitmentInfo struct { + + // The date and time at which the commitment duration expires, in the ISO8601 + // format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). You can't decrease the + // instance count or cancel the Capacity Reservation before this date and time. + CommitmentEndDate *time.Time + + // The instance capacity that you committed to when you requested the future-dated + // Capacity Reservation. + CommittedInstanceCount *int32 + + noSmithyDocumentSerde +} + // Information about a Capacity Reservation Fleet. type CapacityReservationFleet struct { @@ -1509,24 +1766,30 @@ type CapacityReservationOptionsRequest struct { noSmithyDocumentSerde } -// Describes an instance's Capacity Reservation targeting option. You can specify -// only one parameter at a time. If you specify CapacityReservationPreference and -// CapacityReservationTarget , the request fails. +// Describes an instance's Capacity Reservation targeting option. // // Use the CapacityReservationPreference parameter to configure the instance to -// run as an On-Demand Instance or to run in any open Capacity Reservation that -// has matching attributes (instance type, platform, Availability Zone). Use the -// CapacityReservationTarget parameter to explicitly target a specific Capacity -// Reservation or a Capacity Reservation group. +// run as an On-Demand Instance, to run in any open Capacity Reservation that has +// matching attributes, or to run only in a Capacity Reservation or Capacity +// Reservation group. Use the CapacityReservationTarget parameter to explicitly +// target a specific Capacity Reservation or a Capacity Reservation group. +// +// You can only specify CapacityReservationPreference and CapacityReservationTarget +// if the CapacityReservationPreference is capacity-reservations-only . type CapacityReservationSpecification struct { // Indicates the instance's Capacity Reservation preferences. Possible preferences // include: // + // - capacity-reservations-only - The instance will only run in a Capacity + // Reservation or Capacity Reservation group. If capacity isn't available, the + // instance will fail to launch. + // // - open - The instance can run in any open Capacity Reservation that has - // matching attributes (instance type, platform, Availability Zone). + // matching attributes (instance type, platform, Availability Zone, and tenancy). + // If capacity isn't available, the instance runs as an On-Demand Instance. // - // - none - The instance avoids running in a Capacity Reservation even if one is + // - none - The instance doesn't run in a Capacity Reservation even if one is // available. The instance runs as an On-Demand Instance. CapacityReservationPreference CapacityReservationPreference @@ -2248,6 +2511,9 @@ type ConnectionNotification struct { // The ID of the endpoint service. ServiceId *string + // The Region for the endpoint service. + ServiceRegion *string + // The ID of the VPC endpoint. VpcEndpointId *string @@ -2423,6 +2689,36 @@ type CpuOptionsRequest struct { noSmithyDocumentSerde } +// The CPU performance to consider, using an instance family as the baseline +// reference. +type CpuPerformanceFactor struct { + + // Specify an instance family to use as the baseline reference for CPU + // performance. All instance types that match your specified attributes will be + // compared against the CPU performance of the referenced instance family, + // regardless of CPU manufacturer or architecture differences. + // + // Currently, only one instance family can be specified in the list. + References []PerformanceFactorReference + + noSmithyDocumentSerde +} + +// The CPU performance to consider, using an instance family as the baseline +// reference. +type CpuPerformanceFactorRequest struct { + + // Specify an instance family to use as the baseline reference for CPU + // performance. All instance types that match your specified attributes will be + // compared against the CPU performance of the referenced instance family, + // regardless of CPU manufacturer or architecture differences. + // + // Currently, only one instance family can be specified in the list. + References []PerformanceFactorReferenceRequest + + noSmithyDocumentSerde +} + // Describes the instances that could not be launched by the fleet. type CreateFleetError struct { @@ -3501,6 +3797,9 @@ type EbsInstanceBlockDevice struct { // Indicates whether the volume is deleted on instance termination. DeleteOnTermination *bool + // The entity that manages the EBS volume. + Operator *OperatorResponse + // The attachment state. Status AttachmentStatus @@ -6372,6 +6671,9 @@ type Instance struct { // The network interfaces for the instance. NetworkInterfaces []InstanceNetworkInterface + // The entity that manages the instance. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -6784,6 +7086,9 @@ type InstanceImageMetadata struct { // The time the instance was launched. LaunchTime *time.Time + // The entity that manages the instance. + Operator *OperatorResponse + // The ID of the Amazon Web Services account that owns the instance. OwnerId *string @@ -7063,6 +7368,9 @@ type InstanceNetworkInterface struct { // The ID of the network interface. NetworkInterfaceId *string + // The entity that manages the network interface. + Operator *OperatorResponse + // The ID of the Amazon Web Services account that created the network interface. OwnerId *string @@ -7450,6 +7758,17 @@ type InstanceRequirements struct { // [Amazon EBS–optimized instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbps + // The baseline performance to consider, using an instance family as a baseline + // reference. The instance family establishes the lowest acceptable level of + // performance. Amazon EC2 uses this baseline to guide instance type selection, but + // there is no guarantee that the selected instance types will always exceed the + // baseline for every application. Currently, this parameter only supports CPU + // performance as a baseline performance factor. For more information, see [Performance protection]in the + // Amazon EC2 User Guide. + // + // [Performance protection]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection + BaselinePerformanceFactors *BaselinePerformanceFactors + // Indicates whether burstable performance T instance types are included, // excluded, or required. For more information, see [Burstable performance instances]. // @@ -7473,6 +7792,8 @@ type InstanceRequirements struct { // - For instance types with Amazon Web Services CPUs, specify // amazon-web-services . // + // - For instance types with Apple CPUs, specify apple . + // // Don't confuse the CPU manufacturer with the CPU architecture. Instances will be // launched with a compatible CPU architecture based on the Amazon Machine Image // (AMI) that you specify in your launch template. @@ -7806,6 +8127,17 @@ type InstanceRequirementsRequest struct { // [Amazon EBS–optimized instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbpsRequest + // The baseline performance to consider, using an instance family as a baseline + // reference. The instance family establishes the lowest acceptable level of + // performance. Amazon EC2 uses this baseline to guide instance type selection, but + // there is no guarantee that the selected instance types will always exceed the + // baseline for every application. Currently, this parameter only supports CPU + // performance as a baseline performance factor. For more information, see [Performance protection]in the + // Amazon EC2 User Guide. + // + // [Performance protection]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection + BaselinePerformanceFactors *BaselinePerformanceFactorsRequest + // Indicates whether burstable performance T instance types are included, // excluded, or required. For more information, see [Burstable performance instances]. // @@ -7829,6 +8161,8 @@ type InstanceRequirementsRequest struct { // - For instance types with Amazon Web Services CPUs, specify // amazon-web-services . // + // - For instance types with Apple CPUs, specify apple . + // // Don't confuse the CPU manufacturer with the CPU architecture. Instances will be // launched with a compatible CPU architecture based on the Amazon Machine Image // (AMI) that you specify in your launch template. @@ -8124,6 +8458,9 @@ type InstanceStatus struct { // such as impaired reachability. InstanceStatus *InstanceStatusSummary + // The entity that manages the instance. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -8609,6 +8946,9 @@ type IpamDiscoveredAccount struct { // The last successful resource discovery time. LastSuccessfulDiscoveryTime *time.Time + // The ID of an Organizational Unit in Amazon Web Services Organizations. + OrganizationalUnitId *string + noSmithyDocumentSerde } @@ -8839,6 +9179,21 @@ type IpamOperatingRegion struct { noSmithyDocumentSerde } +// 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. +type IpamOrganizationalUnitExclusion struct { + + // An Amazon Web Services Organizations entity path. For more information on the + // entity path, see [Understand the Amazon Web Services Organizations entity path]in the Amazon Web Services Identity and Access Management User + // Guide. + // + // [Understand the Amazon Web Services Organizations entity path]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed-view-data-orgs.html#access_policies_access-advisor-viewing-orgs-entity-path + OrganizationsEntityPath *string + + noSmithyDocumentSerde +} + // 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 @@ -9220,6 +9575,11 @@ type IpamResourceDiscovery struct { // select as operating Regions. OperatingRegions []IpamOperatingRegion + // 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. + OrganizationalUnitExclusions []IpamOrganizationalUnitExclusion + // The ID of the owner. OwnerId *string @@ -9750,6 +10110,9 @@ type LaunchTemplate struct { // The name of the launch template. LaunchTemplateName *string + // The entity that manages the launch template. + Operator *OperatorResponse + // The tags for the launch template. Tags []Tag @@ -9821,8 +10184,12 @@ type LaunchTemplateCapacityReservationSpecificationRequest struct { // Indicates the instance's Capacity Reservation preferences. Possible preferences // include: // + // - capacity-reservations-only - The instance will only run in a Capacity + // Reservation or Capacity Reservation group. If capacity isn't available, the + // instance will fail to launch. + // // - open - The instance can run in any open Capacity Reservation that has - // matching attributes (instance type, platform, Availability Zone). + // matching attributes (instance type, platform, Availability Zone, tenancy). // // - none - The instance avoids running in a Capacity Reservation even if one is // available. The instance runs in On-Demand capacity. @@ -10892,6 +11259,9 @@ type LaunchTemplateVersion struct { // The name of the launch template. LaunchTemplateName *string + // The entity that manages the launch template. + Operator *OperatorResponse + // The description for the version. VersionDescription *string @@ -12321,6 +12691,9 @@ type NetworkInterface struct { // The ID of the network interface. NetworkInterfaceId *string + // The entity that manages the network interface. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -12757,6 +13130,29 @@ type OnDemandOptionsRequest struct { noSmithyDocumentSerde } +// The entity that manages the resource. +type OperatorRequest struct { + + // The entity that manages the resource. + Principal *string + + noSmithyDocumentSerde +} + +// Describes whether the resource is managed by an entity and, if so, describes +// the entity that manages it. +type OperatorResponse struct { + + // If true , the resource is managed by an entity. + Managed *bool + + // If managed is true , then the principal is returned. The principal is the entity + // that manages the resource. + Principal *string + + noSmithyDocumentSerde +} + // Describes a packet header statement. type PacketHeaderStatement struct { @@ -13019,6 +13415,102 @@ type PeeringTgwInfo struct { noSmithyDocumentSerde } +// Specify an instance family to use as the baseline reference for CPU +// performance. All instance types that match your specified attributes will be +// compared against the CPU performance of the referenced instance family, +// regardless of CPU manufacturer or architecture. +// +// Currently, only one instance family can be specified in the list. +type PerformanceFactorReference struct { + + // The instance family to use as a baseline reference. + // + // Ensure that you specify the correct value for the instance family. The instance + // family is everything before the period ( . ) in the instance type name. For + // example, in the instance type c6i.large , the instance family is c6i , not c6 . + // For more information, see [Amazon EC2 instance type naming conventions]in Amazon EC2 Instance Types. + // + // The following instance families are not supported for performance protection: + // + // - c1 + // + // - g3 | g3s + // + // - hpc7g + // + // - m1 | m2 + // + // - mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro + // + // - p3dn | p4d | p5 + // + // - t1 + // + // - u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | + // u7in-16tb | u7in-24tb | u7in-32tb + // + // If you enable performance protection by specifying a supported instance family, + // the returned instance types will exclude the above unsupported instance + // families. + // + // If you specify an unsupported instance family as a value for baseline + // performance, the API returns an empty response for and an exception for , , , + // and . + // + // [Amazon EC2 instance type naming conventions]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html + InstanceFamily *string + + noSmithyDocumentSerde +} + +// Specify an instance family to use as the baseline reference for CPU +// performance. All instance types that match your specified attributes will be +// compared against the CPU performance of the referenced instance family, +// regardless of CPU manufacturer or architecture. +// +// Currently, only one instance family can be specified in the list. +type PerformanceFactorReferenceRequest struct { + + // The instance family to use as a baseline reference. + // + // Ensure that you specify the correct value for the instance family. The instance + // family is everything before the period ( . ) in the instance type name. For + // example, in the instance type c6i.large , the instance family is c6i , not c6 . + // For more information, see [Amazon EC2 instance type naming conventions]in Amazon EC2 Instance Types. + // + // The following instance families are not supported for performance protection: + // + // - c1 + // + // - g3 | g3s + // + // - hpc7g + // + // - m1 | m2 + // + // - mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro + // + // - p3dn | p4d | p5 + // + // - t1 + // + // - u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | + // u7in-16tb | u7in-24tb | u7in-32tb + // + // If you enable performance protection by specifying a supported instance family, + // the returned instance types will exclude the above unsupported instance + // families. + // + // If you specify an unsupported instance family as a value for baseline + // performance, the API returns an empty response for and an exception for , , , + // and . + // + // [Amazon EC2 instance type naming conventions]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html + InstanceFamily *string + + noSmithyDocumentSerde +} + // The Diffie-Hellmann group number for phase 1 IKE negotiations. type Phase1DHGroupNumbersListValue struct { @@ -13759,6 +14251,47 @@ type RemoveIpamOperatingRegion struct { noSmithyDocumentSerde } +// 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. +// +// [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html +type RemoveIpamOrganizationalUnitExclusion struct { + + // An Amazon Web Services Organizations entity path. Build the path for the OU(s) + // using Amazon Web Services Organizations IDs separated by a / . Include all child + // OUs by ending the path with /* . + // + // - Example 1 + // + // - Path to a child OU: + // o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/ou-jkl0-awsddddd/ + // + // - In this example, o-a1b2c3d4e5 is the organization ID, r-f6g7h8i9j0example is + // the root ID , ou-ghi0-awsccccc is an OU ID, and ou-jkl0-awsddddd is a child OU + // ID. + // + // - IPAM will not manage the IP addresses in accounts in the child OU. + // + // - Example 2 + // + // - Path where all child OUs will be part of the exclusion: + // o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/* + // + // - In this example, IPAM will not manage the IP addresses in accounts in the + // OU ( ou-ghi0-awsccccc ) or in accounts in any OUs that are children of the OU. + // + // For more information on how to construct an entity path, see [Understand the Amazon Web Services Organizations entity path] in the Amazon Web + // Services Identity and Access Management User Guide. + // + // [Understand the Amazon Web Services Organizations entity path]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed-view-data-orgs.html#access_policies_access-advisor-viewing-orgs-entity-path + OrganizationsEntityPath *string + + noSmithyDocumentSerde +} + // An entry for a prefix list. type RemovePrefixListEntry struct { @@ -14065,6 +14598,9 @@ type RequestLaunchTemplateData struct { // The network interfaces for the instance. NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecificationRequest + // The entity that manages the launch template. + Operator *OperatorRequest + // The placement for the instance. Placement *LaunchTemplatePlacementRequest @@ -14702,6 +15238,9 @@ type ResponseLaunchTemplateData struct { // The network interfaces. NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecification + // The entity that manages the launch template. + Operator *OperatorResponse + // The placement of the instance. Placement *LaunchTemplatePlacement @@ -15658,6 +16197,10 @@ type ServiceConfiguration struct { // Information about the endpoint service private DNS name configuration. PrivateDnsNameConfiguration *PrivateDnsNameConfiguration + // Indicates whether consumers can access the service from a Region other than the + // Region where the service is hosted. + RemoteAccessEnabled *bool + // The ID of the service. ServiceId *string @@ -15673,6 +16216,9 @@ type ServiceConfiguration struct { // The supported IP address types. SupportedIpAddressTypes []ServiceConnectivityType + // The supported Regions. + SupportedRegions []SupportedRegionDetail + // The tags assigned to the service. Tags []Tag @@ -15720,6 +16266,9 @@ type ServiceDetail struct { // The name of the service. ServiceName *string + // The Region where the service is hosted. + ServiceRegion *string + // The type of service. ServiceType []ServiceTypeDetail @@ -15778,6 +16327,14 @@ type SlotStartTimeRangeRequest struct { // Describes a snapshot. type Snapshot struct { + // 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 @@ -15845,6 +16402,20 @@ type Snapshot struct { // Any tags assigned to the snapshot. Tags []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 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 @@ -17192,6 +17763,9 @@ type Subnet struct { // for any stopped instances are considered unavailable. AvailableIpAddressCount *int32 + // The state of VPC Block Public Access (BPA). + BlockPublicAccessStates *BlockPublicAccessStates + // The IPv4 CIDR block assigned to the subnet. CidrBlock *string @@ -17403,6 +17977,19 @@ type SuccessfulQueuedPurchaseDeletion struct { noSmithyDocumentSerde } +// Describes a supported Region. +type SupportedRegionDetail struct { + + // The Region code. + Region *string + + // The service state. The possible values are Pending , Available , Deleting , + // Deleted , Failed , and Closed . + ServiceState *string + + noSmithyDocumentSerde +} + // Describes a tag. type Tag struct { @@ -19625,6 +20212,9 @@ type Volume struct { // Indicates whether Amazon EBS Multi-Attach is enabled. MultiAttachEnabled *bool + // The entity that manages the volume. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -19867,6 +20457,9 @@ type VolumeStatusItem struct { // Describes a VPC. type Vpc struct { + // The state of VPC Block Public Access (BPA). + BlockPublicAccessStates *BlockPublicAccessStates + // The primary IPv4 CIDR block for the VPC. CidrBlock *string @@ -19912,6 +20505,97 @@ type VpcAttachment struct { noSmithyDocumentSerde } +// 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 +type VpcBlockPublicAccessExclusion struct { + + // When the exclusion was created. + CreationTimestamp *time.Time + + // When the exclusion was deleted. + DeletionTimestamp *time.Time + + // The ID of the exclusion. + 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. + InternetGatewayExclusionMode InternetGatewayExclusionMode + + // When the exclusion was last updated. + LastUpdateTimestamp *time.Time + + // The reason for the current exclusion state. + Reason *string + + // The ARN of the exclusion. + ResourceArn *string + + // The state of the exclusion. + State VpcBlockPublicAccessExclusionState + + // 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. + Tags []Tag + + noSmithyDocumentSerde +} + +// 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 +type VpcBlockPublicAccessOptions struct { + + // An Amazon Web Services account ID. + AwsAccountId *string + + // An Amazon Web Services Region. + AwsRegion *string + + // The current 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. + InternetGatewayBlockMode InternetGatewayBlockMode + + // The last time the VPC BPA mode was updated. + LastUpdateTimestamp *time.Time + + // The reason for the current state. + Reason *string + + // The current state of VPC BPA. + State VpcBlockPublicAccessState + + noSmithyDocumentSerde +} + // Describes an IPv4 CIDR block associated with a VPC. type VpcCidrBlockAssociation struct { @@ -20000,6 +20684,9 @@ type VpcEndpoint struct { // The name of the service to which the endpoint is associated. ServiceName *string + // The Region where the service is hosted. + ServiceRegion *string + // The state of the endpoint. State State @@ -20054,6 +20741,9 @@ type VpcEndpointConnection struct { // The ID of the Amazon Web Services account that owns the VPC endpoint. VpcEndpointOwner *string + // The Region of the endpoint. + VpcEndpointRegion *string + // The state of the VPC endpoint. VpcEndpointState State diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go index 30ca8697..28a4f85d 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go @@ -2370,6 +2370,26 @@ func (m *validateOpCreateVolume) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpCreateVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpCreateVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateVpcEndpointConnectionNotification struct { } @@ -3750,6 +3770,26 @@ func (m *validateOpDeleteVolume) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpDeleteVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpDeleteVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteVpcEndpointConnectionNotifications struct { } @@ -4050,6 +4090,26 @@ func (m *validateOpDescribeByoipCidrs) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpDescribeCapacityBlockExtensionOfferings struct { +} + +func (*validateOpDescribeCapacityBlockExtensionOfferings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeCapacityBlockExtensionOfferings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeCapacityBlockExtensionOfferingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeCapacityBlockExtensionOfferingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeCapacityBlockOfferings struct { } @@ -7450,6 +7510,46 @@ func (m *validateOpModifyVpcAttribute) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpModifyVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpModifyVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpModifyVpcBlockPublicAccessOptions struct { +} + +func (*validateOpModifyVpcBlockPublicAccessOptions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyVpcBlockPublicAccessOptions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessOptionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyVpcBlockPublicAccessOptionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpModifyVpcEndpointConnectionNotification struct { } @@ -7830,6 +7930,26 @@ func (m *validateOpProvisionPublicIpv4PoolCidr) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpPurchaseCapacityBlockExtension struct { +} + +func (*validateOpPurchaseCapacityBlockExtension) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPurchaseCapacityBlockExtension) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PurchaseCapacityBlockExtensionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPurchaseCapacityBlockExtensionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpPurchaseCapacityBlock struct { } @@ -9462,6 +9582,10 @@ func addOpCreateVolumeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVolume{}, middleware.After) } +func addOpCreateVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateVpcBlockPublicAccessExclusion{}, middleware.After) +} + func addOpCreateVpcEndpointConnectionNotificationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVpcEndpointConnectionNotification{}, middleware.After) } @@ -9738,6 +9862,10 @@ func addOpDeleteVolumeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteVolume{}, middleware.After) } +func addOpDeleteVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After) +} + func addOpDeleteVpcEndpointConnectionNotificationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteVpcEndpointConnectionNotifications{}, middleware.After) } @@ -9798,6 +9926,10 @@ func addOpDescribeByoipCidrsValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpDescribeByoipCidrs{}, middleware.After) } +func addOpDescribeCapacityBlockExtensionOfferingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeCapacityBlockExtensionOfferings{}, middleware.After) +} + func addOpDescribeCapacityBlockOfferingsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeCapacityBlockOfferings{}, middleware.After) } @@ -10478,6 +10610,14 @@ func addOpModifyVpcAttributeValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpModifyVpcAttribute{}, middleware.After) } +func addOpModifyVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyVpcBlockPublicAccessExclusion{}, middleware.After) +} + +func addOpModifyVpcBlockPublicAccessOptionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyVpcBlockPublicAccessOptions{}, middleware.After) +} + func addOpModifyVpcEndpointConnectionNotificationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpModifyVpcEndpointConnectionNotification{}, middleware.After) } @@ -10554,6 +10694,10 @@ func addOpProvisionPublicIpv4PoolCidrValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpProvisionPublicIpv4PoolCidr{}, middleware.After) } +func addOpPurchaseCapacityBlockExtensionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPurchaseCapacityBlockExtension{}, middleware.After) +} + func addOpPurchaseCapacityBlockValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPurchaseCapacityBlock{}, middleware.After) } @@ -13770,6 +13914,21 @@ func validateOpCreateVolumeInput(v *CreateVolumeInput) error { } } +func validateOpCreateVpcBlockPublicAccessExclusionInput(v *CreateVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateVpcBlockPublicAccessExclusionInput"} + if len(v.InternetGatewayExclusionMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayExclusionMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateVpcEndpointConnectionNotificationInput(v *CreateVpcEndpointConnectionNotificationInput) error { if v == nil { return nil @@ -14838,6 +14997,21 @@ func validateOpDeleteVolumeInput(v *DeleteVolumeInput) error { } } +func validateOpDeleteVpcBlockPublicAccessExclusionInput(v *DeleteVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteVpcBlockPublicAccessExclusionInput"} + if v.ExclusionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExclusionId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteVpcEndpointConnectionNotificationsInput(v *DeleteVpcEndpointConnectionNotificationsInput) error { if v == nil { return nil @@ -15072,6 +15246,24 @@ func validateOpDescribeByoipCidrsInput(v *DescribeByoipCidrsInput) error { } } +func validateOpDescribeCapacityBlockExtensionOfferingsInput(v *DescribeCapacityBlockExtensionOfferingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeCapacityBlockExtensionOfferingsInput"} + if v.CapacityBlockExtensionDurationHours == nil { + invalidParams.Add(smithy.NewErrParamRequired("CapacityBlockExtensionDurationHours")) + } + if v.CapacityReservationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("CapacityReservationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeCapacityBlockOfferingsInput(v *DescribeCapacityBlockOfferingsInput) error { if v == nil { return nil @@ -17905,6 +18097,39 @@ func validateOpModifyVpcAttributeInput(v *ModifyVpcAttributeInput) error { } } +func validateOpModifyVpcBlockPublicAccessExclusionInput(v *ModifyVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyVpcBlockPublicAccessExclusionInput"} + if v.ExclusionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExclusionId")) + } + if len(v.InternetGatewayExclusionMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayExclusionMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpModifyVpcBlockPublicAccessOptionsInput(v *ModifyVpcBlockPublicAccessOptionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyVpcBlockPublicAccessOptionsInput"} + if len(v.InternetGatewayBlockMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayBlockMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpModifyVpcEndpointConnectionNotificationInput(v *ModifyVpcEndpointConnectionNotificationInput) error { if v == nil { return nil @@ -18238,6 +18463,24 @@ func validateOpProvisionPublicIpv4PoolCidrInput(v *ProvisionPublicIpv4PoolCidrIn } } +func validateOpPurchaseCapacityBlockExtensionInput(v *PurchaseCapacityBlockExtensionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PurchaseCapacityBlockExtensionInput"} + if v.CapacityBlockExtensionOfferingId == nil { + invalidParams.Add(smithy.NewErrParamRequired("CapacityBlockExtensionOfferingId")) + } + if v.CapacityReservationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("CapacityReservationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpPurchaseCapacityBlockInput(v *PurchaseCapacityBlockInput) error { if v == nil { return nil diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/CHANGELOG.md index 297618fc..8ab28d3a 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.12.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. + # v1.12.0 (2024-10-04) * **Feature**: Add support for HTTP client metrics. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/go_module_metadata.go index 4e50b257..1514acbe 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/go_module_metadata.go @@ -3,4 +3,4 @@ package acceptencoding // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.0" +const goModuleVersion = "1.12.1" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md index f239d1a7..8b667bc0 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.12.5 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.4 (2024-11-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go index c5d9e1e9..20e16af7 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go @@ -3,4 +3,4 @@ package presignedurl // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.4" +const goModuleVersion = "1.12.5" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md index a62058e5..02837af8 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sso/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.24.6 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.5 (2024-11-07) * **Bug Fix**: Adds case-insensitive handling of error message fields in service responses diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go index 7c1604ea..dd77f04d 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sso/go_module_metadata.go @@ -3,4 +3,4 @@ package sso // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.5" +const goModuleVersion = "1.24.6" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md index b7625523..db46aa0c 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/CHANGELOG.md @@ -1,3 +1,8 @@ +# 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-06) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go index a0db85a3..3859b0ad 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/ssooidc/go_module_metadata.go @@ -3,4 +3,4 @@ package ssooidc // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.4" +const goModuleVersion = "1.28.5" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md index 9763fcb9..85396ddb 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sts/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.33.1 (2024-11-18) + +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.0 (2024-11-14) * **Feature**: This release introduces the new API 'AssumeRoot', which returns short-term credentials that you can use to perform privileged tasks. diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go index e1c926c8..5213e0a1 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/aws/aws-sdk-go-v2/service/sts/go_module_metadata.go @@ -3,4 +3,4 @@ package sts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.0" +const goModuleVersion = "1.33.1" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_compare.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_compare.go index 4d4b4aad..7e19eba0 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_compare.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_compare.go @@ -7,10 +7,13 @@ import ( "time" ) -type CompareType int +// Deprecated: CompareType has only ever been for internal use and has accidentally been published since v1.6.0. Do not use it. +type CompareType = compareResult + +type compareResult int const ( - compareLess CompareType = iota - 1 + compareLess compareResult = iota - 1 compareEqual compareGreater ) @@ -39,7 +42,7 @@ var ( bytesType = reflect.TypeOf([]byte{}) ) -func compare(obj1, obj2 interface{}, kind reflect.Kind) (CompareType, bool) { +func compare(obj1, obj2 interface{}, kind reflect.Kind) (compareResult, bool) { obj1Value := reflect.ValueOf(obj1) obj2Value := reflect.ValueOf(obj2) @@ -325,7 +328,13 @@ func compare(obj1, obj2 interface{}, kind reflect.Kind) (CompareType, bool) { timeObj2 = obj2Value.Convert(timeType).Interface().(time.Time) } - return compare(timeObj1.UnixNano(), timeObj2.UnixNano(), reflect.Int64) + if timeObj1.Before(timeObj2) { + return compareLess, true + } + if timeObj1.Equal(timeObj2) { + return compareEqual, true + } + return compareGreater, true } case reflect.Slice: { @@ -345,7 +354,7 @@ func compare(obj1, obj2 interface{}, kind reflect.Kind) (CompareType, bool) { bytesObj2 = obj2Value.Convert(bytesType).Interface().([]byte) } - return CompareType(bytes.Compare(bytesObj1, bytesObj2)), true + return compareResult(bytes.Compare(bytesObj1, bytesObj2)), true } case reflect.Uintptr: { @@ -381,7 +390,7 @@ func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface if h, ok := t.(tHelper); ok { h.Helper() } - return compareTwoValues(t, e1, e2, []CompareType{compareGreater}, "\"%v\" is not greater than \"%v\"", msgAndArgs...) + return compareTwoValues(t, e1, e2, []compareResult{compareGreater}, "\"%v\" is not greater than \"%v\"", msgAndArgs...) } // GreaterOrEqual asserts that the first element is greater than or equal to the second @@ -394,7 +403,7 @@ func GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...in if h, ok := t.(tHelper); ok { h.Helper() } - return compareTwoValues(t, e1, e2, []CompareType{compareGreater, compareEqual}, "\"%v\" is not greater than or equal to \"%v\"", msgAndArgs...) + return compareTwoValues(t, e1, e2, []compareResult{compareGreater, compareEqual}, "\"%v\" is not greater than or equal to \"%v\"", msgAndArgs...) } // Less asserts that the first element is less than the second @@ -406,7 +415,7 @@ func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) if h, ok := t.(tHelper); ok { h.Helper() } - return compareTwoValues(t, e1, e2, []CompareType{compareLess}, "\"%v\" is not less than \"%v\"", msgAndArgs...) + return compareTwoValues(t, e1, e2, []compareResult{compareLess}, "\"%v\" is not less than \"%v\"", msgAndArgs...) } // LessOrEqual asserts that the first element is less than or equal to the second @@ -419,7 +428,7 @@ func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...inter if h, ok := t.(tHelper); ok { h.Helper() } - return compareTwoValues(t, e1, e2, []CompareType{compareLess, compareEqual}, "\"%v\" is not less than or equal to \"%v\"", msgAndArgs...) + return compareTwoValues(t, e1, e2, []compareResult{compareLess, compareEqual}, "\"%v\" is not less than or equal to \"%v\"", msgAndArgs...) } // Positive asserts that the specified element is positive @@ -431,7 +440,7 @@ func Positive(t TestingT, e interface{}, msgAndArgs ...interface{}) bool { h.Helper() } zero := reflect.Zero(reflect.TypeOf(e)) - return compareTwoValues(t, e, zero.Interface(), []CompareType{compareGreater}, "\"%v\" is not positive", msgAndArgs...) + return compareTwoValues(t, e, zero.Interface(), []compareResult{compareGreater}, "\"%v\" is not positive", msgAndArgs...) } // Negative asserts that the specified element is negative @@ -443,10 +452,10 @@ func Negative(t TestingT, e interface{}, msgAndArgs ...interface{}) bool { h.Helper() } zero := reflect.Zero(reflect.TypeOf(e)) - return compareTwoValues(t, e, zero.Interface(), []CompareType{compareLess}, "\"%v\" is not negative", msgAndArgs...) + return compareTwoValues(t, e, zero.Interface(), []compareResult{compareLess}, "\"%v\" is not negative", msgAndArgs...) } -func compareTwoValues(t TestingT, e1 interface{}, e2 interface{}, allowedComparesResults []CompareType, failMessage string, msgAndArgs ...interface{}) bool { +func compareTwoValues(t TestingT, e1 interface{}, e2 interface{}, allowedComparesResults []compareResult, failMessage string, msgAndArgs ...interface{}) bool { if h, ok := t.(tHelper); ok { h.Helper() } @@ -469,7 +478,7 @@ func compareTwoValues(t TestingT, e1 interface{}, e2 interface{}, allowedCompare return true } -func containsValue(values []CompareType, value CompareType) bool { +func containsValue(values []compareResult, value compareResult) bool { for _, v := range values { if v == value { return true diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_format.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_format.go index 3ddab109..19063416 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_format.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_format.go @@ -104,8 +104,8 @@ func EqualExportedValuesf(t TestingT, expected interface{}, actual interface{}, return EqualExportedValues(t, expected, actual, append([]interface{}{msg}, args...)...) } -// EqualValuesf asserts that two objects are equal or convertible to the same types -// and equal. +// EqualValuesf asserts that two objects are equal or convertible to the larger +// type and equal. // // assert.EqualValuesf(t, uint32(123), int32(123), "error message %s", "formatted") func EqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool { @@ -186,7 +186,7 @@ func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick // assert.EventuallyWithTf(t, func(c *assert.CollectT, "error message %s", "formatted") { // // add assertions as needed; any assertion failure will fail the current tick // assert.True(c, externalValue, "expected 'externalValue' to be true") -// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false") +// }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false") func EventuallyWithTf(t TestingT, condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool { if h, ok := t.(tHelper); ok { h.Helper() @@ -568,6 +568,23 @@ func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, a return NotContains(t, s, contains, append([]interface{}{msg}, args...)...) } +// NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified +// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, +// the number of appearances of each of them in both lists should not match. +// This is an inverse of ElementsMatch. +// +// assert.NotElementsMatchf(t, [1, 1, 2, 3], [1, 1, 2, 3], "error message %s", "formatted") -> false +// +// assert.NotElementsMatchf(t, [1, 1, 2, 3], [1, 2, 3], "error message %s", "formatted") -> true +// +// assert.NotElementsMatchf(t, [1, 2, 3], [1, 2, 4], "error message %s", "formatted") -> true +func NotElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{}) bool { + if h, ok := t.(tHelper); ok { + h.Helper() + } + return NotElementsMatch(t, listA, listB, append([]interface{}{msg}, args...)...) +} + // NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either // a slice or a channel with len == 0. // @@ -604,7 +621,16 @@ func NotEqualValuesf(t TestingT, expected interface{}, actual interface{}, msg s return NotEqualValues(t, expected, actual, append([]interface{}{msg}, args...)...) } -// NotErrorIsf asserts that at none of the errors in err's chain matches target. +// NotErrorAsf asserts that none of the errors in err's chain matches target, +// but if so, sets target to that error value. +func NotErrorAsf(t TestingT, err error, target interface{}, msg string, args ...interface{}) bool { + if h, ok := t.(tHelper); ok { + h.Helper() + } + return NotErrorAs(t, err, target, append([]interface{}{msg}, args...)...) +} + +// NotErrorIsf asserts that none of the errors in err's chain matches target. // This is a wrapper for errors.Is. func NotErrorIsf(t TestingT, err error, target error, msg string, args ...interface{}) bool { if h, ok := t.(tHelper); ok { diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_forward.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_forward.go index a84e09bd..21629087 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_forward.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_forward.go @@ -186,8 +186,8 @@ func (a *Assertions) EqualExportedValuesf(expected interface{}, actual interface return EqualExportedValuesf(a.t, expected, actual, msg, args...) } -// EqualValues asserts that two objects are equal or convertible to the same types -// and equal. +// EqualValues asserts that two objects are equal or convertible to the larger +// type and equal. // // a.EqualValues(uint32(123), int32(123)) func (a *Assertions) EqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool { @@ -197,8 +197,8 @@ func (a *Assertions) EqualValues(expected interface{}, actual interface{}, msgAn return EqualValues(a.t, expected, actual, msgAndArgs...) } -// EqualValuesf asserts that two objects are equal or convertible to the same types -// and equal. +// EqualValuesf asserts that two objects are equal or convertible to the larger +// type and equal. // // a.EqualValuesf(uint32(123), int32(123), "error message %s", "formatted") func (a *Assertions) EqualValuesf(expected interface{}, actual interface{}, msg string, args ...interface{}) bool { @@ -336,7 +336,7 @@ func (a *Assertions) Eventually(condition func() bool, waitFor time.Duration, ti // a.EventuallyWithT(func(c *assert.CollectT) { // // add assertions as needed; any assertion failure will fail the current tick // assert.True(c, externalValue, "expected 'externalValue' to be true") -// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false") +// }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false") func (a *Assertions) EventuallyWithT(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool { if h, ok := a.t.(tHelper); ok { h.Helper() @@ -361,7 +361,7 @@ func (a *Assertions) EventuallyWithT(condition func(collect *CollectT), waitFor // a.EventuallyWithTf(func(c *assert.CollectT, "error message %s", "formatted") { // // add assertions as needed; any assertion failure will fail the current tick // assert.True(c, externalValue, "expected 'externalValue' to be true") -// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false") +// }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false") func (a *Assertions) EventuallyWithTf(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool { if h, ok := a.t.(tHelper); ok { h.Helper() @@ -1128,6 +1128,40 @@ func (a *Assertions) NotContainsf(s interface{}, contains interface{}, msg strin return NotContainsf(a.t, s, contains, msg, args...) } +// NotElementsMatch asserts that the specified listA(array, slice...) is NOT equal to specified +// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, +// the number of appearances of each of them in both lists should not match. +// This is an inverse of ElementsMatch. +// +// a.NotElementsMatch([1, 1, 2, 3], [1, 1, 2, 3]) -> false +// +// a.NotElementsMatch([1, 1, 2, 3], [1, 2, 3]) -> true +// +// a.NotElementsMatch([1, 2, 3], [1, 2, 4]) -> true +func (a *Assertions) NotElementsMatch(listA interface{}, listB interface{}, msgAndArgs ...interface{}) bool { + if h, ok := a.t.(tHelper); ok { + h.Helper() + } + return NotElementsMatch(a.t, listA, listB, msgAndArgs...) +} + +// NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified +// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, +// the number of appearances of each of them in both lists should not match. +// This is an inverse of ElementsMatch. +// +// a.NotElementsMatchf([1, 1, 2, 3], [1, 1, 2, 3], "error message %s", "formatted") -> false +// +// a.NotElementsMatchf([1, 1, 2, 3], [1, 2, 3], "error message %s", "formatted") -> true +// +// a.NotElementsMatchf([1, 2, 3], [1, 2, 4], "error message %s", "formatted") -> true +func (a *Assertions) NotElementsMatchf(listA interface{}, listB interface{}, msg string, args ...interface{}) bool { + if h, ok := a.t.(tHelper); ok { + h.Helper() + } + return NotElementsMatchf(a.t, listA, listB, msg, args...) +} + // NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either // a slice or a channel with len == 0. // @@ -1200,7 +1234,25 @@ func (a *Assertions) NotEqualf(expected interface{}, actual interface{}, msg str return NotEqualf(a.t, expected, actual, msg, args...) } -// NotErrorIs asserts that at none of the errors in err's chain matches target. +// NotErrorAs asserts that none of the errors in err's chain matches target, +// but if so, sets target to that error value. +func (a *Assertions) NotErrorAs(err error, target interface{}, msgAndArgs ...interface{}) bool { + if h, ok := a.t.(tHelper); ok { + h.Helper() + } + return NotErrorAs(a.t, err, target, msgAndArgs...) +} + +// NotErrorAsf asserts that none of the errors in err's chain matches target, +// but if so, sets target to that error value. +func (a *Assertions) NotErrorAsf(err error, target interface{}, msg string, args ...interface{}) bool { + if h, ok := a.t.(tHelper); ok { + h.Helper() + } + return NotErrorAsf(a.t, err, target, msg, args...) +} + +// NotErrorIs asserts that none of the errors in err's chain matches target. // This is a wrapper for errors.Is. func (a *Assertions) NotErrorIs(err error, target error, msgAndArgs ...interface{}) bool { if h, ok := a.t.(tHelper); ok { @@ -1209,7 +1261,7 @@ func (a *Assertions) NotErrorIs(err error, target error, msgAndArgs ...interface return NotErrorIs(a.t, err, target, msgAndArgs...) } -// NotErrorIsf asserts that at none of the errors in err's chain matches target. +// NotErrorIsf asserts that none of the errors in err's chain matches target. // This is a wrapper for errors.Is. func (a *Assertions) NotErrorIsf(err error, target error, msg string, args ...interface{}) bool { if h, ok := a.t.(tHelper); ok { diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_order.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_order.go index 00df62a0..1d2f7182 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_order.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertion_order.go @@ -6,7 +6,7 @@ import ( ) // isOrdered checks that collection contains orderable elements. -func isOrdered(t TestingT, object interface{}, allowedComparesResults []CompareType, failMessage string, msgAndArgs ...interface{}) bool { +func isOrdered(t TestingT, object interface{}, allowedComparesResults []compareResult, failMessage string, msgAndArgs ...interface{}) bool { objKind := reflect.TypeOf(object).Kind() if objKind != reflect.Slice && objKind != reflect.Array { return false @@ -50,7 +50,7 @@ func isOrdered(t TestingT, object interface{}, allowedComparesResults []CompareT // assert.IsIncreasing(t, []float{1, 2}) // assert.IsIncreasing(t, []string{"a", "b"}) func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { - return isOrdered(t, object, []CompareType{compareLess}, "\"%v\" is not less than \"%v\"", msgAndArgs...) + return isOrdered(t, object, []compareResult{compareLess}, "\"%v\" is not less than \"%v\"", msgAndArgs...) } // IsNonIncreasing asserts that the collection is not increasing @@ -59,7 +59,7 @@ func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) boo // assert.IsNonIncreasing(t, []float{2, 1}) // assert.IsNonIncreasing(t, []string{"b", "a"}) func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { - return isOrdered(t, object, []CompareType{compareEqual, compareGreater}, "\"%v\" is not greater than or equal to \"%v\"", msgAndArgs...) + return isOrdered(t, object, []compareResult{compareEqual, compareGreater}, "\"%v\" is not greater than or equal to \"%v\"", msgAndArgs...) } // IsDecreasing asserts that the collection is decreasing @@ -68,7 +68,7 @@ func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) // assert.IsDecreasing(t, []float{2, 1}) // assert.IsDecreasing(t, []string{"b", "a"}) func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { - return isOrdered(t, object, []CompareType{compareGreater}, "\"%v\" is not greater than \"%v\"", msgAndArgs...) + return isOrdered(t, object, []compareResult{compareGreater}, "\"%v\" is not greater than \"%v\"", msgAndArgs...) } // IsNonDecreasing asserts that the collection is not decreasing @@ -77,5 +77,5 @@ func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) boo // assert.IsNonDecreasing(t, []float{1, 2}) // assert.IsNonDecreasing(t, []string{"a", "b"}) func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { - return isOrdered(t, object, []CompareType{compareLess, compareEqual}, "\"%v\" is not less than or equal to \"%v\"", msgAndArgs...) + return isOrdered(t, object, []compareResult{compareLess, compareEqual}, "\"%v\" is not less than or equal to \"%v\"", msgAndArgs...) } diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertions.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertions.go index 0b7570f2..4e91332b 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertions.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/assertions.go @@ -19,7 +19,9 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/pmezard/go-difflib/difflib" - "gopkg.in/yaml.v3" + + // Wrapper around gopkg.in/yaml.v3 + "github.com/stretchr/testify/assert/yaml" ) //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_format.go.tmpl" @@ -45,6 +47,10 @@ type BoolAssertionFunc func(TestingT, bool, ...interface{}) bool // for table driven tests. type ErrorAssertionFunc func(TestingT, error, ...interface{}) bool +// PanicAssertionFunc is a common function prototype when validating a panic value. Can be useful +// for table driven tests. +type PanicAssertionFunc = func(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool + // Comparison is a custom function that returns true on success and false on failure type Comparison func() (success bool) @@ -496,7 +502,13 @@ func Same(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) b h.Helper() } - if !samePointers(expected, actual) { + same, ok := samePointers(expected, actual) + if !ok { + return Fail(t, "Both arguments must be pointers", msgAndArgs...) + } + + if !same { + // both are pointers but not the same type & pointing to the same address return Fail(t, fmt.Sprintf("Not same: \n"+ "expected: %p %#v\n"+ "actual : %p %#v", expected, expected, actual, actual), msgAndArgs...) @@ -516,7 +528,13 @@ func NotSame(t TestingT, expected, actual interface{}, msgAndArgs ...interface{} h.Helper() } - if samePointers(expected, actual) { + same, ok := samePointers(expected, actual) + if !ok { + //fails when the arguments are not pointers + return !(Fail(t, "Both arguments must be pointers", msgAndArgs...)) + } + + if same { return Fail(t, fmt.Sprintf( "Expected and actual point to the same object: %p %#v", expected, expected), msgAndArgs...) @@ -524,21 +542,23 @@ func NotSame(t TestingT, expected, actual interface{}, msgAndArgs ...interface{} return true } -// samePointers compares two generic interface objects and returns whether -// they point to the same object -func samePointers(first, second interface{}) bool { +// samePointers checks if two generic interface objects are pointers of the same +// type pointing to the same object. It returns two values: same indicating if +// they are the same type and point to the same object, and ok indicating that +// both inputs are pointers. +func samePointers(first, second interface{}) (same bool, ok bool) { firstPtr, secondPtr := reflect.ValueOf(first), reflect.ValueOf(second) if firstPtr.Kind() != reflect.Ptr || secondPtr.Kind() != reflect.Ptr { - return false + return false, false //not both are pointers } firstType, secondType := reflect.TypeOf(first), reflect.TypeOf(second) if firstType != secondType { - return false + return false, true // both are pointers, but of different types } // compare pointer addresses - return first == second + return first == second, true } // formatUnequalValues takes two values of arbitrary types and returns string @@ -572,8 +592,8 @@ func truncatingFormat(data interface{}) string { return value } -// EqualValues asserts that two objects are equal or convertible to the same types -// and equal. +// EqualValues asserts that two objects are equal or convertible to the larger +// type and equal. // // assert.EqualValues(t, uint32(123), int32(123)) func EqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool { @@ -615,21 +635,6 @@ func EqualExportedValues(t TestingT, expected, actual interface{}, msgAndArgs .. return Fail(t, fmt.Sprintf("Types expected to match exactly\n\t%v != %v", aType, bType), msgAndArgs...) } - if aType.Kind() == reflect.Ptr { - aType = aType.Elem() - } - if bType.Kind() == reflect.Ptr { - bType = bType.Elem() - } - - if aType.Kind() != reflect.Struct { - return Fail(t, fmt.Sprintf("Types expected to both be struct or pointer to struct \n\t%v != %v", aType.Kind(), reflect.Struct), msgAndArgs...) - } - - if bType.Kind() != reflect.Struct { - return Fail(t, fmt.Sprintf("Types expected to both be struct or pointer to struct \n\t%v != %v", bType.Kind(), reflect.Struct), msgAndArgs...) - } - expected = copyExportedFields(expected) actual = copyExportedFields(actual) @@ -1170,6 +1175,39 @@ func formatListDiff(listA, listB interface{}, extraA, extraB []interface{}) stri return msg.String() } +// NotElementsMatch asserts that the specified listA(array, slice...) is NOT equal to specified +// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, +// the number of appearances of each of them in both lists should not match. +// This is an inverse of ElementsMatch. +// +// assert.NotElementsMatch(t, [1, 1, 2, 3], [1, 1, 2, 3]) -> false +// +// assert.NotElementsMatch(t, [1, 1, 2, 3], [1, 2, 3]) -> true +// +// assert.NotElementsMatch(t, [1, 2, 3], [1, 2, 4]) -> true +func NotElementsMatch(t TestingT, listA, listB interface{}, msgAndArgs ...interface{}) (ok bool) { + if h, ok := t.(tHelper); ok { + h.Helper() + } + if isEmpty(listA) && isEmpty(listB) { + return Fail(t, "listA and listB contain the same elements", msgAndArgs) + } + + if !isList(t, listA, msgAndArgs...) { + return Fail(t, "listA is not a list type", msgAndArgs...) + } + if !isList(t, listB, msgAndArgs...) { + return Fail(t, "listB is not a list type", msgAndArgs...) + } + + extraA, extraB := diffLists(listA, listB) + if len(extraA) == 0 && len(extraB) == 0 { + return Fail(t, "listA and listB contain the same elements", msgAndArgs) + } + + return true +} + // Condition uses a Comparison to assert a complex condition. func Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool { if h, ok := t.(tHelper); ok { @@ -1488,6 +1526,9 @@ func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAnd if err != nil { return Fail(t, err.Error(), msgAndArgs...) } + if math.IsNaN(actualEpsilon) { + return Fail(t, "relative error is NaN", msgAndArgs...) + } if actualEpsilon > epsilon { return Fail(t, fmt.Sprintf("Relative error is too high: %#v (expected)\n"+ " < %#v (actual)", epsilon, actualEpsilon), msgAndArgs...) @@ -1611,7 +1652,6 @@ func ErrorContains(t TestingT, theError error, contains string, msgAndArgs ...in // matchRegexp return true if a specified regexp matches a string. func matchRegexp(rx interface{}, str interface{}) bool { - var r *regexp.Regexp if rr, ok := rx.(*regexp.Regexp); ok { r = rr @@ -1619,7 +1659,14 @@ func matchRegexp(rx interface{}, str interface{}) bool { r = regexp.MustCompile(fmt.Sprint(rx)) } - return (r.FindStringIndex(fmt.Sprint(str)) != nil) + switch v := str.(type) { + case []byte: + return r.Match(v) + case string: + return r.MatchString(v) + default: + return r.MatchString(fmt.Sprint(v)) + } } @@ -1872,7 +1919,7 @@ var spewConfigStringerEnabled = spew.ConfigState{ MaxDepth: 10, } -type tHelper interface { +type tHelper = interface { Helper() } @@ -1911,6 +1958,9 @@ func Eventually(t TestingT, condition func() bool, waitFor time.Duration, tick t // CollectT implements the TestingT interface and collects all errors. type CollectT struct { + // A slice of errors. Non-nil slice denotes a failure. + // If it's non-nil but len(c.errors) == 0, this is also a failure + // obtained by direct c.FailNow() call. errors []error } @@ -1919,9 +1969,10 @@ func (c *CollectT) Errorf(format string, args ...interface{}) { c.errors = append(c.errors, fmt.Errorf(format, args...)) } -// FailNow panics. -func (*CollectT) FailNow() { - panic("Assertion failed") +// FailNow stops execution by calling runtime.Goexit. +func (c *CollectT) FailNow() { + c.fail() + runtime.Goexit() } // Deprecated: That was a method for internal usage that should not have been published. Now just panics. @@ -1934,6 +1985,16 @@ func (*CollectT) Copy(TestingT) { panic("Copy() is deprecated") } +func (c *CollectT) fail() { + if !c.failed() { + c.errors = []error{} // Make it non-nil to mark a failure. + } +} + +func (c *CollectT) failed() bool { + return c.errors != nil +} + // EventuallyWithT asserts that given condition will be met in waitFor time, // periodically checking target function each tick. In contrast to Eventually, // it supplies a CollectT to the condition function, so that the condition @@ -1951,14 +2012,14 @@ func (*CollectT) Copy(TestingT) { // assert.EventuallyWithT(t, func(c *assert.CollectT) { // // add assertions as needed; any assertion failure will fail the current tick // assert.True(c, externalValue, "expected 'externalValue' to be true") -// }, 1*time.Second, 10*time.Second, "external state has not changed to 'true'; still false") +// }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false") func EventuallyWithT(t TestingT, condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool { if h, ok := t.(tHelper); ok { h.Helper() } var lastFinishedTickErrs []error - ch := make(chan []error, 1) + ch := make(chan *CollectT, 1) timer := time.NewTimer(waitFor) defer timer.Stop() @@ -1978,16 +2039,16 @@ func EventuallyWithT(t TestingT, condition func(collect *CollectT), waitFor time go func() { collect := new(CollectT) defer func() { - ch <- collect.errors + ch <- collect }() condition(collect) }() - case errs := <-ch: - if len(errs) == 0 { + case collect := <-ch: + if !collect.failed() { return true } // Keep the errors from the last ended condition, so that they can be copied to t if timeout is reached. - lastFinishedTickErrs = errs + lastFinishedTickErrs = collect.errors tick = ticker.C } } @@ -2049,7 +2110,7 @@ func ErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool { ), msgAndArgs...) } -// NotErrorIs asserts that at none of the errors in err's chain matches target. +// NotErrorIs asserts that none of the errors in err's chain matches target. // This is a wrapper for errors.Is. func NotErrorIs(t TestingT, err, target error, msgAndArgs ...interface{}) bool { if h, ok := t.(tHelper); ok { @@ -2090,6 +2151,24 @@ func ErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{ ), msgAndArgs...) } +// NotErrorAs asserts that none of the errors in err's chain matches target, +// but if so, sets target to that error value. +func NotErrorAs(t TestingT, err error, target interface{}, msgAndArgs ...interface{}) bool { + if h, ok := t.(tHelper); ok { + h.Helper() + } + if !errors.As(err, target) { + return true + } + + chain := buildErrorChainString(err) + + return Fail(t, fmt.Sprintf("Target error should not be in err chain:\n"+ + "found: %q\n"+ + "in chain: %s", target, chain, + ), msgAndArgs...) +} + func buildErrorChainString(err error) string { if err == nil { return "" diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go new file mode 100644 index 00000000..baa0cc7d --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go @@ -0,0 +1,25 @@ +//go:build testify_yaml_custom && !testify_yaml_fail && !testify_yaml_default +// +build testify_yaml_custom,!testify_yaml_fail,!testify_yaml_default + +// Package yaml is an implementation of YAML functions that calls a pluggable implementation. +// +// This implementation is selected with the testify_yaml_custom build tag. +// +// go test -tags testify_yaml_custom +// +// This implementation can be used at build time to replace the default implementation +// to avoid linking with [gopkg.in/yaml.v3]. +// +// In your test package: +// +// import assertYaml "github.com/stretchr/testify/assert/yaml" +// +// func init() { +// assertYaml.Unmarshal = func (in []byte, out interface{}) error { +// // ... +// return nil +// } +// } +package yaml + +var Unmarshal func(in []byte, out interface{}) error diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go new file mode 100644 index 00000000..b83c6cf6 --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go @@ -0,0 +1,37 @@ +//go:build !testify_yaml_fail && !testify_yaml_custom +// +build !testify_yaml_fail,!testify_yaml_custom + +// Package yaml is just an indirection to handle YAML deserialization. +// +// This package is just an indirection that allows the builder to override the +// indirection with an alternative implementation of this package that uses +// another implementation of YAML deserialization. This allows to not either not +// use YAML deserialization at all, or to use another implementation than +// [gopkg.in/yaml.v3] (for example for license compatibility reasons, see [PR #1120]). +// +// Alternative implementations are selected using build tags: +// +// - testify_yaml_fail: [Unmarshal] always fails with an error +// - testify_yaml_custom: [Unmarshal] is a variable. Caller must initialize it +// before calling any of [github.com/stretchr/testify/assert.YAMLEq] or +// [github.com/stretchr/testify/assert.YAMLEqf]. +// +// Usage: +// +// go test -tags testify_yaml_fail +// +// You can check with "go list" which implementation is linked: +// +// go list -f '{{.Imports}}' github.com/stretchr/testify/assert/yaml +// go list -tags testify_yaml_fail -f '{{.Imports}}' github.com/stretchr/testify/assert/yaml +// go list -tags testify_yaml_custom -f '{{.Imports}}' github.com/stretchr/testify/assert/yaml +// +// [PR #1120]: https://github.com/stretchr/testify/pull/1120 +package yaml + +import goyaml "gopkg.in/yaml.v3" + +// Unmarshal is just a wrapper of [gopkg.in/yaml.v3.Unmarshal]. +func Unmarshal(in []byte, out interface{}) error { + return goyaml.Unmarshal(in, out) +} diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go new file mode 100644 index 00000000..e78f7dfe --- /dev/null +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go @@ -0,0 +1,18 @@ +//go:build testify_yaml_fail && !testify_yaml_custom && !testify_yaml_default +// +build testify_yaml_fail,!testify_yaml_custom,!testify_yaml_default + +// Package yaml is an implementation of YAML functions that always fail. +// +// This implementation can be used at build time to replace the default implementation +// to avoid linking with [gopkg.in/yaml.v3]: +// +// go test -tags testify_yaml_fail +package yaml + +import "errors" + +var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/stretchr/testify/assert/yaml)") + +func Unmarshal([]byte, interface{}) error { + return errNotImplemented +} diff --git a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/mock/mock.go b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/mock/mock.go index 213bde2e..eb5682df 100644 --- a/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/mock/mock.go +++ b/amazon-eks-ami/nodeadm/vendor/github.com/stretchr/testify/mock/mock.go @@ -80,12 +80,12 @@ type Call struct { requires []*Call } -func newCall(parent *Mock, methodName string, callerInfo []string, methodArguments ...interface{}) *Call { +func newCall(parent *Mock, methodName string, callerInfo []string, methodArguments Arguments, returnArguments Arguments) *Call { return &Call{ Parent: parent, Method: methodName, Arguments: methodArguments, - ReturnArguments: make([]interface{}, 0), + ReturnArguments: returnArguments, callerInfo: callerInfo, Repeatability: 0, WaitFor: nil, @@ -256,7 +256,7 @@ func (c *Call) Unset() *Call { // calls have been called as expected. The referenced calls may be from the // same mock instance and/or other mock instances. // -// Mock.On("Do").Return(nil).Notbefore( +// Mock.On("Do").Return(nil).NotBefore( // Mock.On("Init").Return(nil) // ) func (c *Call) NotBefore(calls ...*Call) *Call { @@ -273,6 +273,20 @@ func (c *Call) NotBefore(calls ...*Call) *Call { return c } +// InOrder defines the order in which the calls should be made +// +// For example: +// +// InOrder( +// Mock.On("init").Return(nil), +// Mock.On("Do").Return(nil), +// ) +func InOrder(calls ...*Call) { + for i := 1; i < len(calls); i++ { + calls[i].NotBefore(calls[i-1]) + } +} + // Mock is the workhorse used to track activity on another object. // For an example of its usage, refer to the "Example Usage" section at the top // of this document. @@ -351,7 +365,8 @@ func (m *Mock) On(methodName string, arguments ...interface{}) *Call { m.mutex.Lock() defer m.mutex.Unlock() - c := newCall(m, methodName, assert.CallerInfo(), arguments...) + + c := newCall(m, methodName, assert.CallerInfo(), arguments, make([]interface{}, 0)) m.ExpectedCalls = append(m.ExpectedCalls, c) return c } @@ -491,11 +506,12 @@ func (m *Mock) MethodCalled(methodName string, arguments ...interface{}) Argumen m.mutex.Unlock() if closestCall != nil { - m.fail("\n\nmock: Unexpected Method Call\n-----------------------------\n\n%s\n\nThe closest call I have is: \n\n%s\n\n%s\nDiff: %s", + m.fail("\n\nmock: Unexpected Method Call\n-----------------------------\n\n%s\n\nThe closest call I have is: \n\n%s\n\n%s\nDiff: %s\nat: %s\n", callString(methodName, arguments, true), callString(methodName, closestCall.Arguments, true), diffArguments(closestCall.Arguments, arguments), strings.TrimSpace(mismatch), + assert.CallerInfo(), ) } else { m.fail("\nassert: mock: I don't know what to return because the method call was unexpected.\n\tEither do Mock.On(\"%s\").Return(...) first, or remove the %s() call.\n\tThis method was unexpected:\n\t\t%s\n\tat: %s", methodName, methodName, callString(methodName, arguments, true), assert.CallerInfo()) @@ -529,7 +545,7 @@ func (m *Mock) MethodCalled(methodName string, arguments ...interface{}) Argumen call.totalCalls++ // add the call - m.Calls = append(m.Calls, *newCall(m, methodName, assert.CallerInfo(), arguments...)) + m.Calls = append(m.Calls, *newCall(m, methodName, assert.CallerInfo(), arguments, call.ReturnArguments)) m.mutex.Unlock() // block if specified @@ -764,9 +780,17 @@ const ( ) // AnythingOfTypeArgument contains the type of an argument -// for use when type checking. Used in Diff and Assert. +// for use when type checking. Used in [Arguments.Diff] and [Arguments.Assert]. // -// Deprecated: this is an implementation detail that must not be used. Use [AnythingOfType] instead. +// Deprecated: this is an implementation detail that must not be used. Use the [AnythingOfType] constructor instead, example: +// +// m.On("Do", mock.AnythingOfType("string")) +// +// All explicit type declarations can be replaced with interface{} as is expected by [Mock.On], example: +// +// func anyString interface{} { +// return mock.AnythingOfType("string") +// } type AnythingOfTypeArgument = anythingOfTypeArgument // anythingOfTypeArgument is a string that contains the type of an argument @@ -780,53 +804,54 @@ type anythingOfTypeArgument string // // For example: // -// Assert(t, AnythingOfType("string"), AnythingOfType("int")) +// args.Assert(t, AnythingOfType("string"), AnythingOfType("int")) func AnythingOfType(t string) AnythingOfTypeArgument { return anythingOfTypeArgument(t) } // IsTypeArgument is a struct that contains the type of an argument -// for use when type checking. This is an alternative to AnythingOfType. -// Used in Diff and Assert. +// for use when type checking. This is an alternative to [AnythingOfType]. +// Used in [Arguments.Diff] and [Arguments.Assert]. type IsTypeArgument struct { t reflect.Type } // IsType returns an IsTypeArgument object containing the type to check for. // You can provide a zero-value of the type to check. This is an -// alternative to AnythingOfType. Used in Diff and Assert. +// alternative to [AnythingOfType]. Used in [Arguments.Diff] and [Arguments.Assert]. // // For example: -// Assert(t, IsType(""), IsType(0)) +// +// args.Assert(t, IsType(""), IsType(0)) func IsType(t interface{}) *IsTypeArgument { return &IsTypeArgument{t: reflect.TypeOf(t)} } -// FunctionalOptionsArgument is a struct that contains the type and value of an functional option argument -// for use when type checking. +// FunctionalOptionsArgument contains a list of functional options arguments +// expected for use when matching a list of arguments. type FunctionalOptionsArgument struct { - value interface{} + values []interface{} } // String returns the string representation of FunctionalOptionsArgument func (f *FunctionalOptionsArgument) String() string { var name string - tValue := reflect.ValueOf(f.value) - if tValue.Len() > 0 { - name = "[]" + reflect.TypeOf(tValue.Index(0).Interface()).String() + if len(f.values) > 0 { + name = "[]" + reflect.TypeOf(f.values[0]).String() } - return strings.Replace(fmt.Sprintf("%#v", f.value), "[]interface {}", name, 1) + return strings.Replace(fmt.Sprintf("%#v", f.values), "[]interface {}", name, 1) } -// FunctionalOptions returns an FunctionalOptionsArgument object containing the functional option type -// and the values to check of +// FunctionalOptions returns an [FunctionalOptionsArgument] object containing +// the expected functional-options to check for. // // For example: -// Assert(t, FunctionalOptions("[]foo.FunctionalOption", foo.Opt1(), foo.Opt2())) -func FunctionalOptions(value ...interface{}) *FunctionalOptionsArgument { +// +// args.Assert(t, FunctionalOptions(foo.Opt1("strValue"), foo.Opt2(613))) +func FunctionalOptions(values ...interface{}) *FunctionalOptionsArgument { return &FunctionalOptionsArgument{ - value: value, + values: values, } } @@ -873,10 +898,11 @@ func (f argumentMatcher) String() string { // and false otherwise. // // Example: -// m.On("Do", MatchedBy(func(req *http.Request) bool { return req.Host == "example.com" })) // -// |fn|, must be a function accepting a single argument (of the expected type) -// which returns a bool. If |fn| doesn't match the required signature, +// m.On("Do", MatchedBy(func(req *http.Request) bool { return req.Host == "example.com" })) +// +// fn must be a function accepting a single argument (of the expected type) +// which returns a bool. If fn doesn't match the required signature, // MatchedBy() panics. func MatchedBy(fn interface{}) argumentMatcher { fnType := reflect.TypeOf(fn) @@ -979,20 +1005,17 @@ func (args Arguments) Diff(objects []interface{}) (string, int) { output = fmt.Sprintf("%s\t%d: FAIL: type %s != type %s - %s\n", output, i, expected.t.Name(), actualT.Name(), actualFmt) } case *FunctionalOptionsArgument: - t := expected.value - var name string - tValue := reflect.ValueOf(t) - if tValue.Len() > 0 { - name = "[]" + reflect.TypeOf(tValue.Index(0).Interface()).String() + if len(expected.values) > 0 { + name = "[]" + reflect.TypeOf(expected.values[0]).String() } - tName := reflect.TypeOf(t).Name() - if name != reflect.TypeOf(actual).String() && tValue.Len() != 0 { + const tName = "[]interface{}" + if name != reflect.TypeOf(actual).String() && len(expected.values) != 0 { differences++ output = fmt.Sprintf("%s\t%d: FAIL: type %s != type %s - %s\n", output, i, tName, reflect.TypeOf(actual).Name(), actualFmt) } else { - if ef, af := assertOpts(t, actual); ef == "" && af == "" { + if ef, af := assertOpts(expected.values, actual); ef == "" && af == "" { // match output = fmt.Sprintf("%s\t%d: PASS: %s == %s\n", output, i, tName, tName) } else { @@ -1092,7 +1115,7 @@ func (args Arguments) Error(index int) error { return nil } if s, ok = obj.(error); !ok { - panic(fmt.Sprintf("assert: arguments: Error(%d) failed because object wasn't correct type: %v", index, args.Get(index))) + panic(fmt.Sprintf("assert: arguments: Error(%d) failed because object wasn't correct type: %v", index, obj)) } return s } @@ -1181,32 +1204,38 @@ type tHelper interface { func assertOpts(expected, actual interface{}) (expectedFmt, actualFmt string) { expectedOpts := reflect.ValueOf(expected) actualOpts := reflect.ValueOf(actual) + + var expectedFuncs []*runtime.Func var expectedNames []string for i := 0; i < expectedOpts.Len(); i++ { - expectedNames = append(expectedNames, funcName(expectedOpts.Index(i).Interface())) + f := runtimeFunc(expectedOpts.Index(i).Interface()) + expectedFuncs = append(expectedFuncs, f) + expectedNames = append(expectedNames, funcName(f)) } + var actualFuncs []*runtime.Func var actualNames []string for i := 0; i < actualOpts.Len(); i++ { - actualNames = append(actualNames, funcName(actualOpts.Index(i).Interface())) + f := runtimeFunc(actualOpts.Index(i).Interface()) + actualFuncs = append(actualFuncs, f) + actualNames = append(actualNames, funcName(f)) } - if !assert.ObjectsAreEqual(expectedNames, actualNames) { + + if expectedOpts.Len() != actualOpts.Len() { expectedFmt = fmt.Sprintf("%v", expectedNames) actualFmt = fmt.Sprintf("%v", actualNames) return } for i := 0; i < expectedOpts.Len(); i++ { - expectedOpt := expectedOpts.Index(i).Interface() - actualOpt := actualOpts.Index(i).Interface() - - expectedFunc := expectedNames[i] - actualFunc := actualNames[i] - if expectedFunc != actualFunc { - expectedFmt = expectedFunc - actualFmt = actualFunc + if !isFuncSame(expectedFuncs[i], actualFuncs[i]) { + expectedFmt = expectedNames[i] + actualFmt = actualNames[i] return } + expectedOpt := expectedOpts.Index(i).Interface() + actualOpt := actualOpts.Index(i).Interface() + ot := reflect.TypeOf(expectedOpt) var expectedValues []reflect.Value var actualValues []reflect.Value @@ -1224,9 +1253,9 @@ func assertOpts(expected, actual interface{}) (expectedFmt, actualFmt string) { reflect.ValueOf(actualOpt).Call(actualValues) for i := 0; i < ot.NumIn(); i++ { - if !assert.ObjectsAreEqual(expectedValues[i].Interface(), actualValues[i].Interface()) { - expectedFmt = fmt.Sprintf("%s %+v", expectedNames[i], expectedValues[i].Interface()) - actualFmt = fmt.Sprintf("%s %+v", expectedNames[i], actualValues[i].Interface()) + if expectedArg, actualArg := expectedValues[i].Interface(), actualValues[i].Interface(); !assert.ObjectsAreEqual(expectedArg, actualArg) { + expectedFmt = fmt.Sprintf("%s(%T) -> %#v", expectedNames[i], expectedArg, expectedArg) + actualFmt = fmt.Sprintf("%s(%T) -> %#v", expectedNames[i], actualArg, actualArg) return } } @@ -1235,7 +1264,25 @@ func assertOpts(expected, actual interface{}) (expectedFmt, actualFmt string) { return "", "" } -func funcName(opt interface{}) string { - n := runtime.FuncForPC(reflect.ValueOf(opt).Pointer()).Name() - return strings.TrimSuffix(path.Base(n), path.Ext(n)) +func runtimeFunc(opt interface{}) *runtime.Func { + return runtime.FuncForPC(reflect.ValueOf(opt).Pointer()) +} + +func funcName(f *runtime.Func) string { + name := f.Name() + trimmed := strings.TrimSuffix(path.Base(name), path.Ext(name)) + splitted := strings.Split(trimmed, ".") + + if len(splitted) == 0 { + return trimmed + } + + return splitted[len(splitted)-1] +} + +func isFuncSame(f1, f2 *runtime.Func) bool { + f1File, f1Loc := f1.FileLine(f1.Entry()) + f2File, f2Loc := f2.FileLine(f2.Entry()) + + return f1File == f2File && f1Loc == f2Loc } diff --git a/amazon-eks-ami/nodeadm/vendor/modules.txt b/amazon-eks-ami/nodeadm/vendor/modules.txt index 1327e57d..10144cad 100644 --- a/amazon-eks-ami/nodeadm/vendor/modules.txt +++ b/amazon-eks-ami/nodeadm/vendor/modules.txt @@ -1,7 +1,7 @@ # dario.cat/mergo v1.0.1 ## explicit; go 1.13 dario.cat/mergo -# github.com/aws/aws-sdk-go-v2 v1.32.4 +# github.com/aws/aws-sdk-go-v2 v1.32.5 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/aws github.com/aws/aws-sdk-go-v2/aws/defaults @@ -28,10 +28,10 @@ github.com/aws/aws-sdk-go-v2/internal/shareddefaults github.com/aws/aws-sdk-go-v2/internal/strings github.com/aws/aws-sdk-go-v2/internal/sync/singleflight github.com/aws/aws-sdk-go-v2/internal/timeconv -# github.com/aws/aws-sdk-go-v2/config v1.28.4 +# github.com/aws/aws-sdk-go-v2/config v1.28.5 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/config -# github.com/aws/aws-sdk-go-v2/credentials v1.17.45 +# github.com/aws/aws-sdk-go-v2/credentials v1.17.46 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/credentials github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds @@ -40,41 +40,41 @@ github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/internal/client 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 v1.16.19 +# github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/feature/ec2/imds github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config -# github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.23 +# github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/internal/configsources -# github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.23 +# github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 # github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/internal/ini -# github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0 +# github.com/aws/aws-sdk-go-v2/service/ec2 v1.194.0 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/ec2 github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints github.com/aws/aws-sdk-go-v2/service/ec2/types -# github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 +# github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding -# github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.4 +# github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url -# github.com/aws/aws-sdk-go-v2/service/sso v1.24.5 +# github.com/aws/aws-sdk-go-v2/service/sso v1.24.6 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/sso github.com/aws/aws-sdk-go-v2/service/sso/internal/endpoints github.com/aws/aws-sdk-go-v2/service/sso/types -# github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.4 +# github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/ssooidc github.com/aws/aws-sdk-go-v2/service/ssooidc/internal/endpoints github.com/aws/aws-sdk-go-v2/service/ssooidc/types -# github.com/aws/aws-sdk-go-v2/service/sts v1.33.0 +# github.com/aws/aws-sdk-go-v2/service/sts v1.33.1 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/sts github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints @@ -198,9 +198,10 @@ github.com/spf13/pflag # github.com/stretchr/objx v0.5.2 ## explicit; go 1.20 github.com/stretchr/objx -# github.com/stretchr/testify v1.9.0 +# github.com/stretchr/testify v1.10.0 ## explicit; go 1.17 github.com/stretchr/testify/assert +github.com/stretchr/testify/assert/yaml github.com/stretchr/testify/mock # github.com/x448/float16 v0.8.4 ## explicit; go 1.11 @@ -279,10 +280,10 @@ gopkg.in/yaml.v2 # gopkg.in/yaml.v3 v3.0.1 ## explicit gopkg.in/yaml.v3 -# k8s.io/api v0.31.2 +# k8s.io/api v0.31.3 ## explicit; go 1.22.0 k8s.io/api/core/v1 -# k8s.io/apimachinery v0.31.2 +# k8s.io/apimachinery v0.31.3 ## explicit; go 1.22.0 k8s.io/apimachinery/pkg/api/resource k8s.io/apimachinery/pkg/apis/meta/v1 @@ -317,7 +318,7 @@ k8s.io/apimachinery/pkg/util/yaml k8s.io/apimachinery/pkg/version k8s.io/apimachinery/pkg/watch k8s.io/apimachinery/third_party/forked/golang/reflect -# k8s.io/component-base v0.31.2 +# k8s.io/component-base v0.31.3 ## explicit; go 1.22.0 k8s.io/component-base/cli/flag k8s.io/component-base/featuregate @@ -341,7 +342,7 @@ k8s.io/klog/v2/internal/severity k8s.io/klog/v2/internal/sloghandler k8s.io/klog/v2/internal/verbosity k8s.io/klog/v2/textlogger -# k8s.io/kubelet v0.31.2 +# k8s.io/kubelet v0.31.3 ## explicit; go 1.22.0 k8s.io/kubelet/config/v1beta1 # k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 @@ -350,7 +351,7 @@ k8s.io/utils/internal/third_party/forked/golang/net k8s.io/utils/net k8s.io/utils/ptr k8s.io/utils/strings/slices -# sigs.k8s.io/controller-runtime v0.19.1 +# sigs.k8s.io/controller-runtime v0.19.2 ## explicit; go 1.22.0 sigs.k8s.io/controller-runtime/pkg/scheme # sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd diff --git a/amazon-eks-ami/templates/al2023/provisioners/install-nvidia-driver.sh b/amazon-eks-ami/templates/al2023/provisioners/install-nvidia-driver.sh index 5e2be8fb..55a55521 100755 --- a/amazon-eks-ami/templates/al2023/provisioners/install-nvidia-driver.sh +++ b/amazon-eks-ami/templates/al2023/provisioners/install-nvidia-driver.sh @@ -136,9 +136,10 @@ sudo systemctl enable set-nvidia-clocks.service ################################################################################ sudo dnf -y install nvidia-fabric-manager -# NVIDIA Container toolkit needs to be locally installed for isolated partitions +# NVIDIA Container toolkit needs to be locally installed for isolated partitions, also install NVIDIA-Persistenced if is-isolated-partition; then install-nvidia-container-toolkit + sudo dnf -y install "nvidia-persistenced-${NVIDIA_DRIVER_MAJOR_VERSION}.*" else sudo dnf -y install nvidia-container-toolkit fi