From f868a76c0c1861ac1088072b8c139047e4d4f2fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 11 Aug 2024 00:39:58 +0000 Subject: [PATCH] Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.173.0 to 1.174.0 Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.173.0 to 1.174.0. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.173.0...service/ec2/v1.174.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2 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 | 4 + .../service/ec2/api_op_CreateIpam.go | 4 + .../service/ec2/api_op_ModifyIpam.go | 4 + .../ec2/api_op_ProvisionPublicIpv4PoolCidr.go | 2 +- .../service/ec2/deserializers.go | 81 +++++++++++++++++++ .../service/ec2/go_module_metadata.go | 2 +- .../aws-sdk-go-v2/service/ec2/serializers.go | 10 +++ .../aws-sdk-go-v2/service/ec2/types/enums.go | 61 ++++++++++++++ .../aws-sdk-go-v2/service/ec2/types/types.go | 29 +++++++ vendor/modules.txt | 2 +- 12 files changed, 199 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 2e049757..10d76bef 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go v1.55.5 github.com/aws/aws-sdk-go-v2 v1.30.3 github.com/aws/aws-sdk-go-v2/config v1.27.27 - github.com/aws/aws-sdk-go-v2/service/ec2 v1.173.0 + github.com/aws/aws-sdk-go-v2/service/ec2 v1.174.0 github.com/aws/aws-sdk-go-v2/service/route53 v1.42.3 github.com/aws/aws-sdk-go-v2/service/ssm v1.52.3 github.com/mattn/go-isatty v0.0.20 diff --git a/go.sum b/go.sum index 9f154d6a..008e09e4 100644 --- a/go.sum +++ b/go.sum @@ -47,8 +47,8 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 h1:C6WHdGnTDIYETAm5iE github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15/go.mod h1:ZQLZqhcu+JhSrA9/NXRm8SkDvsycE+JkV3WGY41e+IM= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.173.0 h1:ta62lid9JkIpKZtZZXSj6rP2AqY5x1qYGq53ffxqD9Q= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.173.0/go.mod h1:o6QDjdVKpP5EF0dp/VlvqckzuSDATr1rLdHt3A5m0YY= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.174.0 h1:xY25etxTt0mYfWVWv8DjIUcJQyX2cwBeInpIvg6Sbsw= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.174.0/go.mod h1:o6QDjdVKpP5EF0dp/VlvqckzuSDATr1rLdHt3A5m0YY= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 h1:dT3MqvGhSoaIhRseqw2I0yH81l7wiR2vjs57O51EAm8= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3/go.mod h1:GlAeCkHwugxdHaueRr4nhPuY+WW+gR8UjlcqzPr1SPI= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 h1:HGErhhrxZlQ044RiM+WdoZxp0p+EGM62y3L6pwA4olE= 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 ed27abc7..c941ac52 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,7 @@ +# v1.174.0 (2024-08-08) + +* **Feature**: Launch of private IPv6 addressing for VPCs and Subnets. VPC IPAM supports the planning and monitoring of private IPv6 usage. + # v1.173.0 (2024-07-25) * **Feature**: EC2 Fleet now supports using custom identifiers to reference Amazon Machine Images (AMI) in launch requests that are configured to choose from a diversified list of instance types. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go index 3afba1fd..9a258ce4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go @@ -51,6 +51,10 @@ type CreateIpamInput struct { // UnauthorizedOperation . DryRun *bool + // Enable this option to use your own GUA ranges as private IPv6 addresses. This + // option is disabled by default. + EnablePrivateGua *bool + // The operating Regions for the IPAM. Operating Regions are Amazon Web Services // Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only // discovers and monitors resources in the Amazon Web Services Regions you select diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go index e1fea7fc..d1d18f5f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go @@ -54,6 +54,10 @@ type ModifyIpamInput struct { // UnauthorizedOperation . DryRun *bool + // Enable this option to use your own GUA ranges as private IPv6 addresses. This + // option is disabled by default. + EnablePrivateGua *bool + // The operating Regions to remove. RemoveOperatingRegions []types.RemoveIpamOperatingRegion diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go index a100021f..ccc34646 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionPublicIpv4PoolCidr.go @@ -39,7 +39,7 @@ type ProvisionPublicIpv4PoolCidrInput struct { IpamPoolId *string // The netmask length of the CIDR you would like to allocate to the public IPv4 - // pool. + // pool. The least specific netmask length you can define is 24. // // This member is required. NetmaskLength *int32 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 10ad23f2..3e37dd73 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 @@ -89080,6 +89080,22 @@ func awsEc2query_deserializeDocumentIpam(v **types.Ipam, decoder smithyxml.NodeD sv.Description = ptr.String(xtv) } + case strings.EqualFold("enablePrivateGua", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.EnablePrivateGua = ptr.Bool(xtv) + } + case strings.EqualFold("ipamArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -90071,6 +90087,19 @@ func awsEc2query_deserializeDocumentIpamDiscoveredResourceCidr(v **types.IpamDis sv.IpamResourceDiscoveryId = ptr.String(xtv) } + case strings.EqualFold("ipSource", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.IpSource = types.IpamResourceCidrIpSource(xtv) + } + case strings.EqualFold("ipUsage", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -123490,6 +123519,32 @@ func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(v **types.Sub sv.AssociationId = ptr.String(xtv) } + case strings.EqualFold("ipSource", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.IpSource = types.IpSource(xtv) + } + + case strings.EqualFold("ipv6AddressAttribute", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv6AddressAttribute = types.Ipv6AddressAttribute(xtv) + } + case strings.EqualFold("ipv6CidrBlock", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -139000,6 +139055,32 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(v **types.VpcIpv sv.AssociationId = ptr.String(xtv) } + case strings.EqualFold("ipSource", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.IpSource = types.IpSource(xtv) + } + + case strings.EqualFold("ipv6AddressAttribute", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Ipv6AddressAttribute = types.Ipv6AddressAttribute(xtv) + } + case strings.EqualFold("ipv6CidrBlock", t.Name.Local): val, err := decoder.Value() if err != nil { 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 a0f5f320..ba1efdd5 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.173.0" +const goModuleVersion = "1.174.0" 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 da44893b..e221492c 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 @@ -52511,6 +52511,11 @@ func awsEc2query_serializeOpDocumentCreateIpamInput(v *CreateIpamInput, value qu objectKey.Boolean(*v.DryRun) } + if v.EnablePrivateGua != nil { + objectKey := object.Key("EnablePrivateGua") + objectKey.Boolean(*v.EnablePrivateGua) + } + if v.OperatingRegions != nil { objectKey := object.FlatKey("OperatingRegion") if err := awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v.OperatingRegions, objectKey); err != nil { @@ -65958,6 +65963,11 @@ func awsEc2query_serializeOpDocumentModifyIpamInput(v *ModifyIpamInput, value qu objectKey.Boolean(*v.DryRun) } + if v.EnablePrivateGua != nil { + objectKey := object.Key("EnablePrivateGua") + objectKey.Boolean(*v.EnablePrivateGua) + } + if v.IpamId != nil { objectKey := object.Key("IpamId") objectKey.String(*v.IpamId) 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 1033ea33..105d2539 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 @@ -5298,6 +5298,27 @@ func (IpamPublicAddressType) Values() []IpamPublicAddressType { } } +type IpamResourceCidrIpSource string + +// Enum values for IpamResourceCidrIpSource +const ( + IpamResourceCidrIpSourceAmazon IpamResourceCidrIpSource = "amazon" + IpamResourceCidrIpSourceByoip IpamResourceCidrIpSource = "byoip" + IpamResourceCidrIpSourceNone IpamResourceCidrIpSource = "none" +) + +// Values returns all known values for IpamResourceCidrIpSource. 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 (IpamResourceCidrIpSource) Values() []IpamResourceCidrIpSource { + return []IpamResourceCidrIpSource{ + "amazon", + "byoip", + "none", + } +} + type IpamResourceDiscoveryAssociationState string // Enum values for IpamResourceDiscoveryAssociationState @@ -5514,6 +5535,46 @@ func (IpamTier) Values() []IpamTier { } } +type IpSource string + +// Enum values for IpSource +const ( + IpSourceAmazon IpSource = "amazon" + IpSourceByoip IpSource = "byoip" + IpSourceNone IpSource = "none" +) + +// Values returns all known values for IpSource. 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 (IpSource) Values() []IpSource { + return []IpSource{ + "amazon", + "byoip", + "none", + } +} + +type Ipv6AddressAttribute string + +// Enum values for Ipv6AddressAttribute +const ( + Ipv6AddressAttributePublic Ipv6AddressAttribute = "public" + Ipv6AddressAttributePrivate Ipv6AddressAttribute = "private" +) + +// Values returns all known values for Ipv6AddressAttribute. 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 (Ipv6AddressAttribute) Values() []Ipv6AddressAttribute { + return []Ipv6AddressAttribute{ + "public", + "private", + } +} + type Ipv6SupportValue string // Enum values for Ipv6SupportValue 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 82862107..00da3b0c 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 @@ -8290,6 +8290,10 @@ type Ipam struct { // The description for the IPAM. Description *string + // Enable this option to use your own GUA ranges as private IPv6 addresses. This + // option is disabled by default. + EnablePrivateGua *bool + // The Amazon Resource Name (ARN) of the IPAM. IpamArn *string @@ -8521,6 +8525,11 @@ type IpamDiscoveredResourceCidr struct { // The Availability Zone ID. AvailabilityZoneId *string + // The source that allocated the IP address space. byoip or amazon indicates + // public IP address space allocated by Amazon or space that you have allocated + // with Bring your own IP (BYOIP). none indicates private space. + IpSource IpamResourceCidrIpSource + // The percentage of IP address space in use. To convert the decimal to a // percentage, multiply the decimal by 100. Note the following: // @@ -17071,6 +17080,16 @@ type SubnetIpv6CidrBlockAssociation struct { // The ID of the association. AssociationId *string + // The source that allocated the IP address space. byoip or amazon indicates + // public IP address space allocated by Amazon or space that you have allocated + // with Bring your own IP (BYOIP). none indicates private space. + IpSource IpSource + + // Public IPv6 addresses are those advertised on the internet from Amazon Web + // Services. Private IP addresses are not and cannot be advertised on the internet + // from Amazon Web Services. + Ipv6AddressAttribute Ipv6AddressAttribute + // The IPv6 CIDR block. Ipv6CidrBlock *string @@ -19790,6 +19809,16 @@ type VpcIpv6CidrBlockAssociation struct { // The association ID for the IPv6 CIDR block. AssociationId *string + // The source that allocated the IP address space. byoip or amazon indicates + // public IP address space allocated by Amazon or space that you have allocated + // with Bring your own IP (BYOIP). none indicates private space. + IpSource IpSource + + // Public IPv6 addresses are those advertised on the internet from Amazon Web + // Services. Private IP addresses are not and cannot be advertised on the internet + // from Amazon Web Services. + Ipv6AddressAttribute Ipv6AddressAttribute + // The IPv6 CIDR block. Ipv6CidrBlock *string diff --git a/vendor/modules.txt b/vendor/modules.txt index 494bf227..bd94e6a8 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -97,7 +97,7 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 # github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 ## explicit; go 1.20 github.com/aws/aws-sdk-go-v2/internal/ini -# github.com/aws/aws-sdk-go-v2/service/ec2 v1.173.0 +# github.com/aws/aws-sdk-go-v2/service/ec2 v1.174.0 ## explicit; go 1.20 github.com/aws/aws-sdk-go-v2/service/ec2 github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints