From 25ddd9db312f97025256153db2ab7d71218ea986 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Oct 2025 09:59:19 +0000 Subject: [PATCH] Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.251.0 to 1.254.1 Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.251.0 to 1.254.1. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/changelog-template.json) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.251.0...service/ec2/v1.254.1) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2 dependency-version: 1.254.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 +- .../aws-sdk-go-v2/service/ec2/CHANGELOG.md | 26 ++ .../service/ec2/api_op_CopySnapshot.go | 21 +- .../service/ec2/api_op_CreateFpgaImage.go | 4 +- .../service/ec2/api_op_CreateVolume.go | 10 +- .../ec2/api_op_DescribeImageReferences.go | 2 +- .../service/ec2/api_op_DescribeInstances.go | 14 +- .../api_op_DisableImageBlockPublicAccess.go | 5 - .../service/ec2/api_op_ModifyVolume.go | 10 +- .../service/ec2/deserializers.go | 290 ++++++++++++++++++ .../aws-sdk-go-v2/service/ec2/endpoints.go | 2 + .../service/ec2/go_module_metadata.go | 2 +- .../aws-sdk-go-v2/service/ec2/serializers.go | 78 +++++ .../aws-sdk-go-v2/service/ec2/types/enums.go | 28 ++ .../aws-sdk-go-v2/service/ec2/types/types.go | 222 ++++++++++---- vendor/modules.txt | 2 +- 17 files changed, 629 insertions(+), 93 deletions(-) diff --git a/go.mod b/go.mod index 7a3e44650..e46cab393 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.24.1 require ( github.com/aws/aws-sdk-go-v2 v1.39.2 github.com/aws/aws-sdk-go-v2/config v1.31.12 - github.com/aws/aws-sdk-go-v2/service/ec2 v1.251.0 + github.com/aws/aws-sdk-go-v2/service/ec2 v1.254.1 github.com/aws/aws-sdk-go-v2/service/ssm v1.64.3 github.com/mattn/go-isatty v0.0.20 github.com/onsi/ginkgo/v2 v2.26.0 diff --git a/go.sum b/go.sum index 0f792345d..97b120ddb 100644 --- a/go.sum +++ b/go.sum @@ -14,8 +14,8 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.9 h1:6RBnKZLkJM4hQ+kN6E7 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.9/go.mod h1:V9rQKRmK7AWuEsOMnHzKj8WyrIir1yUJbZxDuZLFvXI= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 h1:bIqFDwgGXXN1Kpp99pDOdKMTTb5d2KyU5X/BZxjOkRo= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3/go.mod h1:H5O/EsxDWyU+LP/V8i5sm8cxoZgc2fdNR9bxlOFrQTo= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.251.0 h1:hGHSNZDTFnhLGUpRkQORM8uBY9R/FOkxCkuUUJBEOQ4= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.251.0/go.mod h1:SmMqzfS4HVsOD58lwLZ79oxF58f8zVe5YdK3o+/o1Ck= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.254.1 h1:7p9bJCZ/b3EJXXARW7JMEs2IhsnI4YFHpfXQfgMh0eg= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.254.1/go.mod h1:M8WWWIfXmxA4RgTXcI/5cSByxRqjgne32Sh0VIbrn0A= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.1 h1:oegbebPEMA/1Jny7kvwejowCaHz1FWZAQ94WXFNCyTM= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.1/go.mod h1:kemo5Myr9ac0U9JfSjMo9yHLtw+pECEHsFtJ9tqCEI8= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.9 h1:5r34CgVOD4WZudeEKZ9/iKpiT6cM1JyEROpXjOcdWv8= diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md index 4b0dd74d8..1685a11a1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md @@ -1,3 +1,29 @@ +# v1.254.1 (2025-09-26) + +* **Documentation**: This release includes documentation updates for Amazon EBS General Purpose SSD (gp3) volumes with larger size and higher IOPS and throughput. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.254.0 (2025-09-23) + +* **Feature**: Add Amazon EC2 R8gn instance types +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.253.0 (2025-09-18) + +* **Feature**: Allowed AMIs adds support for four new parameters - marketplaceProductCodes, deprecationTimeCondition, creationDateCondition and imageNames + +# v1.252.0 (2025-09-17) + +* **Feature**: Add mac-m4.metal and mac-m4pro.metal instance types. + +# v1.251.2 (2025-09-10) + +* No change notes available for this release. + +# v1.251.1 (2025-09-08) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.251.0 (2025-09-04) * **Feature**: Add m8i, m8i-flex and i8ge instance types. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go index 04748f31e..8fcec9ada 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go @@ -28,25 +28,22 @@ import ( // // - If the source snapshot is on an Outpost, you can't copy it. // -// When copying snapshots to a Region, copies of encrypted EBS snapshots remain -// encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable -// encryption for the snapshot copy operation. By default, encrypted snapshot -// copies use the default KMS key; however, you can specify a different KMS key. To -// copy an encrypted snapshot that has been shared from another account, you must -// have permissions for the KMS key used to encrypt the snapshot. +// When copying snapshots to a Region, the encryption outcome for the snapshot +// copy depends on the Amazon EBS encryption by default setting for the destination +// Region, the encryption status of the source snapshot, and the encryption +// parameters you specify in the request. For more information, see [Encryption and snapshot copying]. // -// Snapshots copied to an Outpost are encrypted by default using the default -// encryption key for the Region, or a different key that you specify in the -// request using KmsKeyId. Outposts do not support unencrypted snapshots. For more -// information, see [Amazon EBS local snapshots on Outposts]in the Amazon EBS User Guide. +// Snapshots copied to an Outpost must be encrypted. Unencrypted snapshots are not +// supported on Outposts. For more information, [Amazon EBS local snapshots on Outposts]. // // Snapshots copies have an arbitrary source volume ID. Do not use this volume ID // for any purpose. // // For more information, see [Copy an Amazon EBS snapshot] in the Amazon EBS User Guide. // +// [Encryption and snapshot copying]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copy-snapshot.html#creating-encrypted-snapshots // [Copy an Amazon EBS snapshot]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copy-snapshot.html -// [Amazon EBS local snapshots on Outposts]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami +// [Amazon EBS local snapshots on Outposts]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#considerations func (c *Client) CopySnapshot(ctx context.Context, params *CopySnapshotInput, optFns ...func(*Options)) (*CopySnapshotOutput, error) { if params == nil { params = &CopySnapshotInput{} @@ -111,7 +108,7 @@ type CopySnapshotInput struct { // To encrypt a copy of an unencrypted snapshot if encryption by default is not // enabled, enable encryption using this parameter. Otherwise, omit this parameter. - // Encrypted snapshots are encrypted, even if you omit this parameter and + // Copies of encrypted snapshots are encrypted, even if you omit this parameter and // encryption by default is not enabled. You cannot set this parameter to false. // For more information, see [Amazon EBS encryption]in the Amazon EBS User Guide. // diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go index d5a6a1625..567d831d1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go @@ -13,8 +13,8 @@ import ( // Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP). // -// The create operation is asynchronous. To verify that the AFI is ready for use, -// check the output logs. +// The create operation is asynchronous. To verify that the AFI was successfully +// created and is ready for use, check the output logs. // // An AFI contains the FPGA bitstream that is ready to download to an FPGA. You // can securely deploy an AFI on multiple FPGA-accelerated instances. For more diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go index 8414b7178..f241120a5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go @@ -92,7 +92,7 @@ type CreateVolumeInput struct { // // The following are the supported values for each volume type: // - // - gp3 : 3,000 - 16,000 IOPS + // - gp3 : 3,000 - 80,000 IOPS // // - io1 : 100 - 64,000 IOPS // @@ -155,7 +155,9 @@ type CreateVolumeInput struct { // // The following are the supported volumes sizes for each volume type: // - // - gp2 and gp3 : 1 - 16,384 GiB + // - gp2 : 1 - 16,384 GiB + // + // - gp3 : 1 - 65,536 GiB // // - io1 : 4 - 16,384 GiB // @@ -173,11 +175,11 @@ type CreateVolumeInput struct { // The tags to apply to the volume during creation. TagSpecifications []types.TagSpecification - // The throughput to provision for a volume, with a maximum of 1,000 MiB/s. + // The throughput to provision for a volume, with a maximum of 2,000 MiB/s. // // This parameter is valid only for gp3 volumes. // - // Valid Range: Minimum value of 125. Maximum value of 1000. + // Valid Range: Minimum value of 125. Maximum value of 2,000. Throughput *int32 // Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageReferences.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageReferences.go index 014f031c3..8faa0147e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageReferences.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageReferences.go @@ -56,7 +56,7 @@ type DescribeImageReferencesInput struct { // // Either IncludeAllResourceTypes or ResourceTypes must be specified. // - // [How AMI reference checks work]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-ami-references-works.html + // [How AMI reference checks work]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ami-references.html#how-ami-references-works IncludeAllResourceTypes *bool // The maximum number of items to return for this request. To get the next page diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go index 6a559b921..f63ee3bc7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go @@ -381,13 +381,13 @@ type DescribeInstancesInput struct { // // - platform-details - The platform ( Linux/UNIX | Red Hat BYOL Linux | Red Hat // Enterprise Linux | Red Hat Enterprise Linux with HA | Red Hat Enterprise - // Linux with SQL Server Standard and HA | Red Hat Enterprise Linux with SQL - // Server Enterprise and HA | Red Hat Enterprise Linux with SQL Server Standard | - // Red Hat Enterprise Linux with SQL Server Web | Red Hat Enterprise Linux with - // SQL Server Enterprise | SQL Server Enterprise | SQL Server Standard | SQL - // Server Web | SUSE Linux | Ubuntu Pro | Windows | Windows BYOL | Windows with - // SQL Server Enterprise | Windows with SQL Server Standard | Windows with SQL - // Server Web ). + // Linux with High Availability | Red Hat Enterprise Linux with SQL Server + // Standard and HA | Red Hat Enterprise Linux with SQL Server Enterprise and HA | + // Red Hat Enterprise Linux with SQL Server Standard | Red Hat Enterprise Linux + // with SQL Server Web | Red Hat Enterprise Linux with SQL Server Enterprise | + // SQL Server Enterprise | SQL Server Standard | SQL Server Web | SUSE Linux | + // Ubuntu Pro | Windows | Windows BYOL | Windows with SQL Server Enterprise | + // Windows with SQL Server Standard | Windows with SQL Server Web ). // // - private-dns-name - The private IPv4 DNS name of the instance. // diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageBlockPublicAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageBlockPublicAccess.go index ffc2e2903..fcc6f3544 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageBlockPublicAccess.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageBlockPublicAccess.go @@ -16,14 +16,9 @@ import ( // from your account. With the restriction removed, you can publicly share your // AMIs in the specified Amazon Web Services Region. // -// The API can take up to 10 minutes to configure this setting. During this time, -// if you run [GetImageBlockPublicAccessState], the response will be block-new-sharing . When the API has completed -// the configuration, the response will be unblocked . -// // For more information, see [Block public access to your AMIs] in the Amazon EC2 User Guide. // // [Block public access to your AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html -// [GetImageBlockPublicAccessState]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html func (c *Client) DisableImageBlockPublicAccess(ctx context.Context, params *DisableImageBlockPublicAccessInput, optFns ...func(*Options)) (*DisableImageBlockPublicAccessOutput, error) { if params == nil { params = &DisableImageBlockPublicAccessInput{} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go index 1ca6996a4..2fe6a39c1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go @@ -66,7 +66,7 @@ type ModifyVolumeInput struct { // // The following are the supported values for each volume type: // - // - gp3 : 3,000 - 16,000 IOPS + // - gp3 : 3,000 - 80,000 IOPS // // - io1 : 100 - 64,000 IOPS // @@ -95,7 +95,9 @@ type ModifyVolumeInput struct { // // The following are the supported volumes sizes for each volume type: // - // - gp2 and gp3 : 1 - 16,384 GiB + // - gp2 : 1 - 16,384 GiB + // + // - gp3 : 1 - 65,536 GiB // // - io1 : 4 - 16,384 GiB // @@ -109,12 +111,12 @@ type ModifyVolumeInput struct { Size *int32 // The target throughput of the volume, in MiB/s. This parameter is valid only for - // gp3 volumes. The maximum value is 1,000. + // gp3 volumes. The maximum value is 2,000. // // Default: The existing value is retained if the source and target volume type is // gp3 . Otherwise, the default value is 125. // - // Valid Range: Minimum value of 125. Maximum value of 1000. + // Valid Range: Minimum value of 125. Maximum value of 2,000. Throughput *int32 // The target EBS volume type of the volume. For more information, see [Amazon EBS volume types] in the diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go index 86dc92f42..efb93df8b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go @@ -79296,6 +79296,59 @@ func awsEc2query_deserializeDocumentCreateVolumePermissionListUnwrapped(v *[]typ *v = sv return nil } +func awsEc2query_deserializeDocumentCreationDateCondition(v **types.CreationDateCondition, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CreationDateCondition + if *v == nil { + sv = &types.CreationDateCondition{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("maximumDaysSinceCreated", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaximumDaysSinceCreated = 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_deserializeDocumentCreditSpecification(v **types.CreditSpecification, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -80856,6 +80909,59 @@ func awsEc2query_deserializeDocumentDeleteSnapshotReturnCode(v **types.DeleteSna return nil } +func awsEc2query_deserializeDocumentDeprecationTimeCondition(v **types.DeprecationTimeCondition, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.DeprecationTimeCondition + if *v == nil { + sv = &types.DeprecationTimeCondition{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("maximumDaysSinceDeprecated", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.MaximumDaysSinceDeprecated = 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_deserializeDocumentDeprovisionedAddressSet(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -93572,12 +93678,36 @@ func awsEc2query_deserializeDocumentImageCriterion(v **types.ImageCriterion, dec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("creationDateCondition", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCreationDateCondition(&sv.CreationDateCondition, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("deprecationTimeCondition", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDeprecationTimeCondition(&sv.DeprecationTimeCondition, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("imageNameSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentImageNameList(&sv.ImageNames, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("imageProviderSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentImageProviderList(&sv.ImageProviders, nodeDecoder); err != nil { return err } + case strings.EqualFold("marketplaceProductCodeSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentMarketplaceProductCodeList(&sv.MarketplaceProductCodes, nodeDecoder); err != nil { + return err + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -93887,6 +94017,86 @@ func awsEc2query_deserializeDocumentImageMetadata(v **types.ImageMetadata, decod return nil } +func awsEc2query_deserializeDocumentImageNameList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentImageNameListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentImageProviderList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -116426,6 +116636,86 @@ func awsEc2query_deserializeDocumentManagedPrefixListSetUnwrapped(v *[]types.Man *v = sv return nil } +func awsEc2query_deserializeDocumentMarketplaceProductCodeList(v *[]string, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + decoder = memberDecoder + switch { + case strings.EqualFold("item", t.Name.Local): + var col string + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + col = xtv + } + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentMarketplaceProductCodeListUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { + var sv []string + if *v == nil { + sv = make([]string, 0) + } else { + sv = *v + } + + switch { + default: + var mv string + t := decoder.StartEl + _ = t + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + mv = xtv + } + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentMediaAcceleratorInfo(v **types.MediaAcceleratorInfo, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go index 1743a98bc..6d8a49eb4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go @@ -328,7 +328,9 @@ func (r *resolver) ResolveEndpoint( return endpoint, fmt.Errorf("endpoint parameters are not valid, %w", err) } _UseDualStack := *params.UseDualStack + _ = _UseDualStack _UseFIPS := *params.UseFIPS + _ = _UseFIPS if exprVal := params.Endpoint; exprVal != nil { _Endpoint := *exprVal diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go index 67906b444..e10c35a4c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go +++ b/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.251.0" +const goModuleVersion = "1.254.1" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go index 116e11217..81aa10ebc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go @@ -50107,6 +50107,18 @@ func awsEc2query_serializeDocumentCreateVolumePermissionModifications(v *types.C return nil } +func awsEc2query_serializeDocumentCreationDateConditionRequest(v *types.CreationDateConditionRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.MaximumDaysSinceCreated != nil { + objectKey := object.Key("MaximumDaysSinceCreated") + objectKey.Integer(*v.MaximumDaysSinceCreated) + } + + return nil +} + func awsEc2query_serializeDocumentCreditSpecificationRequest(v *types.CreditSpecificationRequest, value query.Value) error { object := value.Object() _ = object @@ -50210,6 +50222,18 @@ func awsEc2query_serializeDocumentDeleteQueuedReservedInstancesIdList(v []string return nil } +func awsEc2query_serializeDocumentDeprecationTimeConditionRequest(v *types.DeprecationTimeConditionRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.MaximumDaysSinceDeprecated != nil { + objectKey := object.Key("MaximumDaysSinceDeprecated") + objectKey.Integer(*v.MaximumDaysSinceDeprecated) + } + + return nil +} + func awsEc2query_serializeDocumentDeregisterInstanceTagAttributeRequest(v *types.DeregisterInstanceTagAttributeRequest, value query.Value) error { object := value.Object() _ = object @@ -51411,6 +51435,27 @@ func awsEc2query_serializeDocumentImageCriterionRequest(v *types.ImageCriterionR object := value.Object() _ = object + if v.CreationDateCondition != nil { + objectKey := object.Key("CreationDateCondition") + if err := awsEc2query_serializeDocumentCreationDateConditionRequest(v.CreationDateCondition, objectKey); err != nil { + return err + } + } + + if v.DeprecationTimeCondition != nil { + objectKey := object.Key("DeprecationTimeCondition") + if err := awsEc2query_serializeDocumentDeprecationTimeConditionRequest(v.DeprecationTimeCondition, objectKey); err != nil { + return err + } + } + + if v.ImageNames != nil { + objectKey := object.FlatKey("ImageName") + if err := awsEc2query_serializeDocumentImageNameRequestList(v.ImageNames, objectKey); err != nil { + return err + } + } + if v.ImageProviders != nil { objectKey := object.FlatKey("ImageProvider") if err := awsEc2query_serializeDocumentImageProviderRequestList(v.ImageProviders, objectKey); err != nil { @@ -51418,6 +51463,13 @@ func awsEc2query_serializeDocumentImageCriterionRequest(v *types.ImageCriterionR } } + if v.MarketplaceProductCodes != nil { + objectKey := object.FlatKey("MarketplaceProductCode") + if err := awsEc2query_serializeDocumentMarketplaceProductCodeRequestList(v.MarketplaceProductCodes, objectKey); err != nil { + return err + } + } + return nil } @@ -51516,6 +51568,19 @@ func awsEc2query_serializeDocumentImageIdStringList(v []string, value query.Valu return nil } +func awsEc2query_serializeDocumentImageNameRequestList(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_serializeDocumentImageProviderRequestList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -54182,6 +54247,19 @@ func awsEc2query_serializeDocumentMacSystemIntegrityProtectionConfigurationReque return nil } +func awsEc2query_serializeDocumentMarketplaceProductCodeRequestList(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_serializeDocumentMemoryGiBPerVCpu(v *types.MemoryGiBPerVCpu, value query.Value) error { object := value.Object() _ = object diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go index 0bb8b668e..36fc6b0f0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go @@ -4564,6 +4564,20 @@ const ( InstanceTypeI8ge48xlarge InstanceType = "i8ge.48xlarge" InstanceTypeI8geMetal24xl InstanceType = "i8ge.metal-24xl" InstanceTypeI8geMetal48xl InstanceType = "i8ge.metal-48xl" + InstanceTypeMacM4Metal InstanceType = "mac-m4.metal" + InstanceTypeMacM4proMetal InstanceType = "mac-m4pro.metal" + InstanceTypeR8gnMedium InstanceType = "r8gn.medium" + InstanceTypeR8gnLarge InstanceType = "r8gn.large" + InstanceTypeR8gnXlarge InstanceType = "r8gn.xlarge" + InstanceTypeR8gn2xlarge InstanceType = "r8gn.2xlarge" + InstanceTypeR8gn4xlarge InstanceType = "r8gn.4xlarge" + InstanceTypeR8gn8xlarge InstanceType = "r8gn.8xlarge" + InstanceTypeR8gn12xlarge InstanceType = "r8gn.12xlarge" + InstanceTypeR8gn16xlarge InstanceType = "r8gn.16xlarge" + InstanceTypeR8gn24xlarge InstanceType = "r8gn.24xlarge" + InstanceTypeR8gn48xlarge InstanceType = "r8gn.48xlarge" + InstanceTypeR8gnMetal24xl InstanceType = "r8gn.metal-24xl" + InstanceTypeR8gnMetal48xl InstanceType = "r8gn.metal-48xl" ) // Values returns all known values for InstanceType. Note that this can be @@ -5588,6 +5602,20 @@ func (InstanceType) Values() []InstanceType { "i8ge.48xlarge", "i8ge.metal-24xl", "i8ge.metal-48xl", + "mac-m4.metal", + "mac-m4pro.metal", + "r8gn.medium", + "r8gn.large", + "r8gn.xlarge", + "r8gn.2xlarge", + "r8gn.4xlarge", + "r8gn.8xlarge", + "r8gn.12xlarge", + "r8gn.16xlarge", + "r8gn.24xlarge", + "r8gn.48xlarge", + "r8gn.metal-24xl", + "r8gn.metal-48xl", } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go index 4a12dac7b..2e96a6de7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go @@ -3323,6 +3323,28 @@ type CreateVolumePermissionModifications struct { noSmithyDocumentSerde } +// The maximum age for allowed images. +type CreationDateCondition struct { + + // The maximum number of days that have elapsed since the image was created. For + // example, a value of 300 allows images that were created within the last 300 + // days. + MaximumDaysSinceCreated *int32 + + noSmithyDocumentSerde +} + +// The maximum age for allowed images. +type CreationDateConditionRequest struct { + + // The maximum number of days that have elapsed since the image was created. For + // example, a value of 300 allows images that were created within the last 300 + // days. + MaximumDaysSinceCreated *int32 + + noSmithyDocumentSerde +} + // Describes the credit option for CPU usage of a T instance. type CreditSpecification struct { @@ -3606,6 +3628,26 @@ type DeleteSnapshotReturnCode struct { noSmithyDocumentSerde } +// The maximum period since deprecation for allowed images. +type DeprecationTimeCondition struct { + + // The maximum number of days that have elapsed since the image was deprecated. + // When set to 0 , no deprecated images are allowed. + MaximumDaysSinceDeprecated *int32 + + noSmithyDocumentSerde +} + +// The maximum period since deprecation for allowed images. +type DeprecationTimeConditionRequest struct { + + // The maximum number of days that have elapsed since the image was deprecated. + // Set to 0 to exclude all deprecated images. + MaximumDaysSinceDeprecated *int32 + + noSmithyDocumentSerde +} + // Information about the tag keys to deregister for the current Region. You can // either specify individual tag keys or deregister all tag keys in the current // Region. You must specify either IncludeAllTagsOfInstance or InstanceTagKeys in @@ -4182,7 +4224,7 @@ type EbsBlockDevice struct { // // The following are the supported values for each volume type: // - // - gp3 : 3,000 - 16,000 IOPS + // - gp3 : 3,000 - 80,000 IOPS // // - io1 : 100 - 64,000 IOPS // @@ -4222,7 +4264,7 @@ type EbsBlockDevice struct { // // This parameter is valid only for gp3 volumes. // - // Valid Range: Minimum value of 125. Maximum value of 1000. + // Valid Range: Minimum value of 125. Maximum value of 2,000. Throughput *int32 // Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume @@ -4260,7 +4302,9 @@ type EbsBlockDevice struct { // // The following are the supported sizes for each volume type: // - // - gp2 and gp3 : 1 - 16,384 GiB + // - gp2 : 1 - 16,384 GiB + // + // - gp3 : 1 - 65,536 GiB // // - io1 : 4 - 16,384 GiB // @@ -5723,7 +5767,7 @@ type FleetEbsBlockDeviceRequest struct { // // The following are the supported values for each volume type: // - // - gp3 : 3,000 - 16,000 IOPS + // - gp3 : 3,000 - 80,000 IOPS // // - io1 : 100 - 64,000 IOPS // @@ -5756,7 +5800,7 @@ type FleetEbsBlockDeviceRequest struct { // // This parameter is valid only for gp3 volumes. // - // Valid Range: Minimum value of 125. Maximum value of 1000. + // Valid Range: Minimum value of 125. Maximum value of 2,000. Throughput *int32 // The size of the volume, in GiBs. You must specify either a snapshot ID or a @@ -5765,7 +5809,9 @@ type FleetEbsBlockDeviceRequest struct { // // The following are the supported sizes for each volume type: // - // - gp2 and gp3 : 1 - 16,384 GiB + // - gp2 : 1 - 16,384 GiB + // + // - gp3 : 1 - 65,536 GiB // // - io1 : 4 - 16,384 GiB // @@ -6996,68 +7042,140 @@ type Image struct { noSmithyDocumentSerde } -// The list of criteria that are evaluated to determine whch AMIs are discoverable -// and usable in the account in the specified Amazon Web Services Region. -// Currently, the only criteria that can be specified are AMI providers. +// The criteria that are evaluated to determine which AMIs are discoverable and +// usable in your account for the specified Amazon Web Services Region. // -// Up to 10 imageCriteria objects can be specified, and up to a total of 200 -// values for all imageProviders . For more information, see [JSON configuration for the Allowed AMIs criteria] in the Amazon EC2 -// User Guide. +// For more information, see [How Allowed AMIs works] in the Amazon EC2 User Guide. // -// [JSON configuration for the Allowed AMIs criteria]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html#allowed-amis-json-configuration +// [How Allowed AMIs works]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html#how-allowed-amis-works type ImageCriterion struct { - // A list of AMI providers whose AMIs are discoverable and useable in the account. - // Up to a total of 200 values can be specified. + // The maximum age for allowed images. + CreationDateCondition *CreationDateCondition + + // The maximum period since deprecation for allowed images. + DeprecationTimeCondition *DeprecationTimeCondition + + // The names of allowed images. Names can include wildcards ( ? and * ). + // + // Length: 1–128 characters. With ? , the minimum is 3 characters. + // + // Valid characters: + // + // - Letters: A–Z, a–z + // + // - Numbers: 0–9 + // + // - Special characters: ( ) [ ] . / - ' @ _ * ? + // + // - Spaces + // + // Maximum: 50 values + ImageNames []string + + // The image providers whose images are allowed. // // Possible values: // - // amazon : Allow AMIs created by Amazon Web Services. + // - amazon : Allow AMIs created by Amazon or verified providers. + // + // - aws-marketplace : Allow AMIs created by verified providers in the Amazon Web + // Services Marketplace. // - // aws-marketplace : Allow AMIs created by verified providers in the Amazon Web - // Services Marketplace. + // - aws-backup-vault : Allow AMIs created by Amazon Web Services Backup. // - // aws-backup-vault : Allow AMIs created by Amazon Web Services Backup. + // - 12-digit account ID: Allow AMIs created by this account. One or more + // account IDs can be specified. // - // 12-digit account ID: Allow AMIs created by this account. One or more account - // IDs can be specified. + // - none : Allow AMIs created by your own account only. // - // none : Allow AMIs created by your own account only. + // Maximum: 200 values ImageProviders []string + // The Amazon Web Services Marketplace product codes for allowed images. + // + // Length: 1-25 characters + // + // Valid characters: Letters ( A–Z, a–z ) and numbers ( 0–9 ) + // + // Maximum: 50 values + MarketplaceProductCodes []string + noSmithyDocumentSerde } -// The list of criteria that are evaluated to determine whch AMIs are discoverable -// and usable in the account in the specified Amazon Web Services Region. -// Currently, the only criteria that can be specified are AMI providers. +// The criteria that are evaluated to determine which AMIs are discoverable and +// usable in your account for the specified Amazon Web Services Region. // -// Up to 10 imageCriteria objects can be specified, and up to a total of 200 -// values for all imageProviders . For more information, see [JSON configuration for the Allowed AMIs criteria] in the Amazon EC2 -// User Guide. +// The ImageCriteria can include up to: +// +// - 10 ImageCriterion +// +// Each ImageCriterion can include up to: +// +// - 200 values for ImageProviders +// +// - 50 values for ImageNames +// +// - 50 values for MarketplaceProductCodes +// +// For more information, see [How Allowed AMIs works] in the Amazon EC2 User Guide. // -// [JSON configuration for the Allowed AMIs criteria]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html#allowed-amis-json-configuration +// [How Allowed AMIs works]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html#how-allowed-amis-works type ImageCriterionRequest struct { - // A list of image providers whose AMIs are discoverable and useable in the - // account. Up to a total of 200 values can be specified. + // The maximum age for allowed images. + CreationDateCondition *CreationDateConditionRequest + + // The maximum period since deprecation for allowed images. + DeprecationTimeCondition *DeprecationTimeConditionRequest + + // The names of allowed images. Names can include wildcards ( ? and * ). + // + // Length: 1–128 characters. With ? , the minimum is 3 characters. + // + // Valid characters: + // + // - Letters: A–Z, a–z + // + // - Numbers: 0–9 + // + // - Special characters: ( ) [ ] . / - ' @ _ * ? + // + // - Spaces + // + // Maximum: 50 values + ImageNames []string + + // The image providers whose images are allowed. // // Possible values: // - // amazon : Allow AMIs created by Amazon Web Services. + // - amazon : Allow AMIs created by Amazon or verified providers. + // + // - aws-marketplace : Allow AMIs created by verified providers in the Amazon Web + // Services Marketplace. // - // aws-marketplace : Allow AMIs created by verified providers in the Amazon Web - // Services Marketplace. + // - aws-backup-vault : Allow AMIs created by Amazon Web Services Backup. // - // aws-backup-vault : Allow AMIs created by Amazon Web Services Backup. + // - 12-digit account ID: Allow AMIs created by the specified accounts. One or + // more account IDs can be specified. // - // 12-digit account ID: Allow AMIs created by this account. One or more account - // IDs can be specified. + // - none : Allow AMIs created by your own account only. When none is specified, + // no other values can be specified. // - // none : Allow AMIs created by your own account only. When none is specified, no - // other values can be specified. + // Maximum: 200 values ImageProviders []string + // The Amazon Web Services Marketplace product codes for allowed images. + // + // Length: 1-25 characters + // + // Valid characters: Letters ( A–Z, a–z ) and numbers ( 0–9 ) + // + // Maximum: 50 values + MarketplaceProductCodes []string + noSmithyDocumentSerde } @@ -11528,7 +11646,7 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // // The following are the supported values for each volume type: // - // - gp3 : 3,000 - 16,000 IOPS + // - gp3 : 3,000 - 80,000 IOPS // // - io1 : 100 - 64,000 IOPS // @@ -11549,9 +11667,9 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // The ID of the snapshot. SnapshotId *string - // The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s. + // The throughput to provision for a gp3 volume, with a maximum of 2,000 MiB/s. // - // Valid Range: Minimum value of 125. Maximum value of 1000. + // Valid Range: Minimum value of 125. Maximum value of 2,000. Throughput *int32 // Specifies the Amazon EBS Provisioned Rate for Volume Initialization (volume @@ -11583,7 +11701,9 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // The size of the volume, in GiBs. You must specify either a snapshot ID or a // volume size. The following are the supported volumes sizes for each volume type: // - // - gp2 and gp3 : 1 - 16,384 GiB + // - gp2 : 1 - 16,384 GiB + // + // - gp3 : 1 - 65,536 GiB // // - io1 : 4 - 16,384 GiB // @@ -11613,9 +11733,7 @@ type LaunchTemplateElasticInferenceAccelerator struct { // This member is required. Type *string - // The number of elastic inference accelerators to attach to the instance. - // - // Default: 1 + // The number of elastic inference accelerators to attach to the instance. Count *int32 noSmithyDocumentSerde @@ -11626,13 +11744,11 @@ type LaunchTemplateElasticInferenceAccelerator struct { // Describes an elastic inference accelerator. type LaunchTemplateElasticInferenceAcceleratorResponse struct { - // The number of elastic inference accelerators to attach to the instance. - // - // Default: 1 + // The number of elastic inference accelerators to attach to the instance. Count *int32 - // The type of elastic inference accelerator. The possible values are - // eia1.medium, eia1.large, and eia1.xlarge. + // The type of elastic inference accelerator. The possible values are eia1.medium, + // eia1.large, and eia1.xlarge. Type *string noSmithyDocumentSerde @@ -11816,8 +11932,6 @@ type LaunchTemplateInstanceMetadataOptions struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. // - // Default: 1 - // // Possible values: Integers from 1 to 64 HttpPutResponseHopLimit *int32 @@ -17060,6 +17174,8 @@ type Route struct { // - CreateRoute - The route was manually added to the route table. // // - EnableVgwRoutePropagation - The route was propagated by route propagation. + // + // - Advertisement - The route was created dynamically by Amazon VPC Route Server. Origin RouteOrigin // The state of the route. The blackhole state indicates that the route's target diff --git a/vendor/modules.txt b/vendor/modules.txt index a17c0b159..1857d9985 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -53,7 +53,7 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 # github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 ## explicit; go 1.22 github.com/aws/aws-sdk-go-v2/internal/ini -# github.com/aws/aws-sdk-go-v2/service/ec2 v1.251.0 +# github.com/aws/aws-sdk-go-v2/service/ec2 v1.254.1 ## explicit; go 1.22 github.com/aws/aws-sdk-go-v2/service/ec2 github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints