diff --git a/provider/cmd/pulumi-resource-aws/schema.json b/provider/cmd/pulumi-resource-aws/schema.json index ddef77f5619..f3ebe73887f 100644 --- a/provider/cmd/pulumi-resource-aws/schema.json +++ b/provider/cmd/pulumi-resource-aws/schema.json @@ -39645,7 +39645,7 @@ "value": "m5ad.large" }, { - "name": "M5as_XLarge", + "name": "M5ad_XLarge", "value": "m5ad.xlarge" }, { @@ -40687,6 +40687,11 @@ "name": "Hs1_8XLarge", "value": "hs1.8xlarge", "deprecationMessage": "This instancetype has been deprecated" + }, + { + "name": "M5as_XLarge", + "value": "m5ad.xlarge", + "deprecationMessage": "Has a typo, use M5ad_XLarge instead" } ] }, diff --git a/provider/enum_test.go b/provider/enum_test.go new file mode 100644 index 00000000000..b8c45b63438 --- /dev/null +++ b/provider/enum_test.go @@ -0,0 +1,46 @@ +// Copyright 2016-2024, Pulumi Corporation. + +package provider + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestInstanceTypeName(t *testing.T) { + type testCase struct { + Value string + Name string + } + + testCases := []testCase{ + {Name: "A1_2XLarge", Value: "a1.2xlarge"}, + {Name: "A1_Metal", Value: "a1.metal"}, + {Name: "C6a_Large", Value: "c6a.large"}, + {Name: "C7g_Medium", Value: "c7g.medium"}, + {Name: "M1_Small", Value: "m1.small"}, + {Name: "M7a_Metal", Value: "m7a.metal-48xl"}, + {Name: "T1_Micro", Value: "t1.micro"}, + {Name: "T2_Nano", Value: "t2.nano"}, + } + + for _, tc := range testCases { + actual, err := instanceTypeName(tc.Value) + assert.NoError(t, err) + assert.Equal(t, tc.Name, actual) + } +} + +func TestInstanceTypeNameErr(t *testing.T) { + testCases := []string{ + "a1.metal.pc", + "m7a.metal-96xl", + } + + for _, tc := range testCases { + actual, err := instanceTypeName(tc) + assert.Error(t, err) + assert.Equal(t, "", actual) + } +} diff --git a/provider/enums.go b/provider/enums.go new file mode 100644 index 00000000000..452981e599a --- /dev/null +++ b/provider/enums.go @@ -0,0 +1,549 @@ +// Copyright 2016-2024, Pulumi Corporation. + +package provider + +import ( + "fmt" + "strings" + + "github.com/pulumi/pulumi/pkg/v3/codegen/cgstrings" + "github.com/pulumi/pulumi/pkg/v3/codegen/schema" +) + +var replacer = strings.NewReplacer( + // It's a bit suspicious to drop this suffix but that's what we did manually. + // There is a panic below in case we find some other -xxx suffix. + "-48xl", "", + // Xlarge would be a wrong capitalization, and also we have 2xlarge etc. + // So we capitalize with a replacement. + "xlarge", "XLarge", +) + +func instanceTypeName(value string) (string, error) { + replaced := replacer.Replace(value) + if strings.Contains(replaced, "-") { + // Error on any dash except for the -48xl suffix + return "", fmt.Errorf("unexpected dash in %q", value) + } + + parts := strings.Split(replaced, ".") + if len(parts) != 2 { + // Error on 2+ underscores (like T4g_Nano_Odd) + return "", fmt.Errorf("too many dots in %q", value) + } + for i, part := range parts { + parts[i] = cgstrings.UppercaseFirst(part) + } + return strings.Join(parts, "_"), nil +} + +func instanceTypes() []schema.EnumValueSpec { + values := []string{ + "a1.2xlarge", + "a1.4xlarge", + "a1.large", + "a1.medium", + "a1.metal", + "a1.xlarge", + "c1.medium", + "c1.xlarge", + "c3.2xlarge", + "c3.4xlarge", + "c3.8xlarge", + "c3.large", + "c3.xlarge", + "c4.2xlarge", + "c4.4xlarge", + "c4.8xlarge", + "c4.large", + "c4.xlarge", + "c5.12xlarge", + "c5.18xlarge", + "c5.24xlarge", + "c5.2xlarge", + "c5.4xlarge", + "c5.9xlarge", + "c5.large", + "c5.metal", + "c5.xlarge", + "c5a.12xlarge", + "c5a.16xlarge", + "c5a.24xlarge", + "c5a.2xlarge", + "c5a.4xlarge", + "c5a.8xlarge", + "c5a.large", + "c5a.xlarge", + "c5ad.12xlarge", + "c5ad.16xlarge", + "c5ad.24xlarge", + "c5ad.2xlarge", + "c5ad.4xlarge", + "c5ad.8xlarge", + "c5ad.large", + "c5ad.xlarge", + "c5d.12xlarge", + "c5d.18xlarge", + "c5d.24xlarge", + "c5d.2xlarge", + "c5d.4xlarge", + "c5d.9xlarge", + "c5d.large", + "c5d.metal", + "c5d.xlarge", + "c5n.18xlarge", + "c5n.2xlarge", + "c5n.4xlarge", + "c5n.9xlarge", + "c5n.large", + "c5n.metal", + "c5n.xlarge", + "c6a.large", + "c6a.metal", + "c6a.xlarge", + "c6a.2xlarge", + "c6a.4xlarge", + "c6a.8xlarge", + "c6a.12xlarge", + "c6a.16xlarge", + "c6a.24xlarge", + "c6a.32xlarge", + "c6a.48xlarge", + "c6g.12xlarge", + "c6g.16xlarge", + "c6g.2xlarge", + "c6g.4xlarge", + "c6g.8xlarge", + "c6g.large", + "c6g.medium", + "c6g.metal", + "c6g.xlarge", + "c6gd.12xlarge", + "c6gd.16xlarge", + "c6gd.2xlarge", + "c6gd.4xlarge", + "c6gd.8xlarge", + "c6gd.large", + "c6gd.medium", + "c6gd.metal", + "c6gd.xlarge", + "c6i.large", + "c6i.xlarge", + "c6i.2xlarge", + "c6i.4xlarge", + "c6i.8xlarge", + "c6i.12xlarge", + "c6i.16xlarge", + "c6i.24xlarge", + "c6i.32xlarge", + "c6i.metal", + "c6id.large", + "c6id.xlarge", + "c6id.2xlarge", + "c6id.4xlarge", + "c6id.8xlarge", + "c6id.12xlarge", + "c6id.16xlarge", + "c6id.24xlarge", + "c6id.32xlarge", + "c6id.metal", + "c7a.medium", + "c7a.large", + "c7a.xlarge", + "c7a.2xlarge", + "c7a.4xlarge", + "c7a.8xlarge", + "c7a.12xlarge", + "c7a.16xlarge", + "c7a.24xlarge", + "c7a.32xlarge", + "c7a.48xlarge", + "c7a.metal-48xl", + "cc2.8xlarge", + "d2.2xlarge", + "d2.4xlarge", + "d2.8xlarge", + "d2.xlarge", + "d3.2xlarge", + "d3.4xlarge", + "d3.8xlarge", + "d3.xlarge", + "d3en.12xlarge", + "d3en.2xlarge", + "d3en.4xlarge", + "d3en.6xlarge", + "d3en.8xlarge", + "d3en.xlarge", + "f1.16xlarge", + "f1.2xlarge", + "f1.4xlarge", + "g2.2xlarge", + "g2.8xlarge", + "g3.16xlarge", + "g3.4xlarge", + "g3.8xlarge", + "g3s.xlarge", + "g4ad.16xlarge", + "g4ad.xlarge", + "g4ad.2xlarge", + "g4ad.4xlarge", + "g4ad.8xlarge", + "g4dn.12xlarge", + "g4dn.16xlarge", + "g4dn.2xlarge", + "g4dn.4xlarge", + "g4dn.8xlarge", + "g4dn.metal", + "g4dn.xlarge", + "g5.xlarge", + "g5.2xlarge", + "g5.4xlarge", + "g5.8xlarge", + "g5.12xlarge", + "g5.16xlarge", + "g5.24xlarge", + "g5.48xlarge", + "h1.16xlarge", + "h1.2xlarge", + "h1.4xlarge", + "h1.8xlarge", + "i2.2xlarge", + "i2.4xlarge", + "i2.8xlarge", + "i2.xlarge", + "i3.16xlarge", + "i3.2xlarge", + "i3.4xlarge", + "i3.8xlarge", + "i3.large", + "i3.xlarge", + "i3.metal", + "i3en.12xlarge", + "i3en.24xlarge", + "i3en.2xlarge", + "i3en.3xlarge", + "i3en.6xlarge", + "i3en.large", + "i3en.metal", + "i3en.xlarge", + "inf1.24xlarge", + "inf1.2xlarge", + "inf1.6xlarge", + "inf1.xlarge", + "m1.large", + "m1.medium", + "m1.small", + "m1.xlarge", + "m2.2xlarge", + "m2.4xlarge", + "m2.xlarge", + "m3.2xlarge", + "m3.large", + "m3.medium", + "m3.xlarge", + "m4.10xlarge", + "m4.16xlarge", + "m4.2xlarge", + "m4.4xlarge", + "m4.large", + "m4.xlarge", + "m5.12xlarge", + "m5.16xlarge", + "m5.24xlarge", + "m5.2xlarge", + "m5.4xlarge", + "m5.8xlarge", + "m5.large", + "m5.metal", + "m5.xlarge", + "m5a.12xlarge", + "m5a.16xlarge", + "m5a.24xlarge", + "m5a.2xlarge", + "m5a.4xlarge", + "m5a.8xlarge", + "m5a.large", + "m5a.xlarge", + "m5ad.12xlarge", + "m5ad.16xlarge", + "m5ad.24xlarge", + "m5ad.2xlarge", + "m5ad.4xlarge", + "m5ad.8xlarge", + "m5ad.large", + "m5ad.xlarge", + "m5d.12xlarge", + "m5d.16xlarge", + "m5d.24xlarge", + "m5d.2xlarge", + "m5d.4xlarge", + "m5d.8xlarge", + "m5d.large", + "m5d.metal", + "m5d.xlarge", + "m5dn.12xlarge", + "m5dn.16xlarge", + "m5dn.24xlarge", + "m5dn.2xlarge", + "m5dn.4xlarge", + "m5dn.8xlarge", + "m5dn.large", + "m5dn.xlarge", + "m5n.12xlarge", + "m5n.16xlarge", + "m5n.24xlarge", + "m5n.2xlarge", + "m5n.4xlarge", + "m5n.8xlarge", + "m5n.large", + "m5n.xlarge", + "m5zn.12xlarge", + "m5zn.2xlarge", + "m5zn.3xlarge", + "m5zn.6xlarge", + "m5zn.large", + "m5zn.metal", + "m5zn.xlarge", + "m6a.large", + "m6a.metal", + "m6a.xlarge", + "m6a.2xlarge", + "m6a.4xlarge", + "m6a.8xlarge", + "m6a.12xlarge", + "m6a.16xlarge", + "m6a.24xlarge", + "m6a.32xlarge", + "m6a.48xlarge", + "m6g.12xlarge", + "m6g.16xlarge", + "m6g.2xlarge", + "m6g.4xlarge", + "m6g.8xlarge", + "m6g.large", + "m6g.medium", + "m6g.metal", + "m6g.xlarge", + "m6gd.12xlarge", + "m6gd.16xlarge", + "m6gd.2xlarge", + "m6gd.4xlarge", + "m6gd.8xlarge", + "m6gd.large", + "m6gd.medium", + "m6gd.metal", + "m6gd.xlarge", + "m6i.large", + "m6i.xlarge", + "m6i.2xlarge", + "m6i.4xlarge", + "m6i.8xlarge", + "m6i.12xlarge", + "m6i.16xlarge", + "m6i.24xlarge", + "m6i.32xlarge", + "m6i.metal", + "m6id.large", + "m6id.xlarge", + "m6id.2xlarge", + "m6id.4xlarge", + "m6id.8xlarge", + "m6id.12xlarge", + "m6id.16xlarge", + "m6id.24xlarge", + "m6id.32xlarge", + "m6id.metal", + "m7a.medium", + "m7a.large", + "m7a.xlarge", + "m7a.2xlarge", + "m7a.4xlarge", + "m7a.8xlarge", + "m7a.12xlarge", + "m7a.16xlarge", + "m7a.24xlarge", + "m7a.32xlarge", + "m7a.48xlarge", + "m7a.metal-48xl", + "mac1.metal", + "p2.16xlarge", + "p2.8xlarge", + "p2.xlarge", + "p3.16xlarge", + "p3.2xlarge", + "p3.8xlarge", + "p3dn.24xlarge", + "p4d.24xlarge", + "r3.2xlarge", + "r3.4xlarge", + "r3.8xlarge", + "r3.large", + "r3.xlarge", + "r4.16xlarge", + "r4.2xlarge", + "r4.4xlarge", + "r4.8xlarge", + "r4.large", + "r4.xlarge", + "r5.12xlarge", + "r5.16xlarge", + "r5.24xlarge", + "r5.2xlarge", + "r5.4xlarge", + "r5.8xlarge", + "r5.large", + "r5.metal", + "r5.xlarge", + "r5a.12xlarge", + "r5a.16xlarge", + "r5a.24xlarge", + "r5a.2xlarge", + "r5a.4xlarge", + "r5a.8xlarge", + "r5a.large", + "r5a.xlarge", + "r5ad.12xlarge", + "r5ad.16xlarge", + "r5ad.24xlarge", + "r5ad.2xlarge", + "r5ad.4xlarge", + "r5ad.8xlarge", + "r5ad.large", + "r5ad.xlarge", + "r5b.12xlarge", + "r5b.16xlarge", + "r5b.24xlarge", + "r5b.2xlarge", + "r5b.4xlarge", + "r5b.8xlarge", + "r5b.large", + "r5b.metal", + "r5b.xlarge", + "r5d.12xlarge", + "r5d.16xlarge", + "r5d.24xlarge", + "r5d.2xlarge", + "r5d.4xlarge", + "r5d.8xlarge", + "r5d.large", + "r5d.metal", + "r5d.xlarge", + "r5dn.12xlarge", + "r5dn.16xlarge", + "r5dn.24xlarge", + "r5dn.2xlarge", + "r5dn.4xlarge", + "r5dn.8xlarge", + "r5dn.large", + "r5dn.xlarge", + "r5dn.metal", + "r5n.12xlarge", + "r5n.16xlarge", + "r5n.24xlarge", + "r5n.2xlarge", + "r5n.4xlarge", + "r5n.8xlarge", + "r5n.large", + "r5n.xlarge", + "r6g.12xlarge", + "r6g.16xlarge", + "r6g.2xlarge", + "r6g.4xlarge", + "r6g.8xlarge", + "r6g.large", + "r6g.medium", + "r6g.metal", + "r6g.xlarge", + "r6gd.12xlarge", + "r6gd.16xlarge", + "r6gd.2xlarge", + "r6gd.4xlarge", + "r6gd.8xlarge", + "r6gd.large", + "r6gd.medium", + "r6gd.metal", + "r6gd.xlarge", + "r6i.large", + "r6i.xlarge", + "r6i.2xlarge", + "r6i.4xlarge", + "r6i.8xlarge", + "r6i.12xlarge", + "r6i.16xlarge", + "r6i.24xlarge", + "r6i.32xlarge", + "r6i.metal", + "r6id.large", + "r6id.xlarge", + "r6id.2xlarge", + "r6id.4xlarge", + "r6id.8xlarge", + "r6id.12xlarge", + "r6id.16xlarge", + "r6id.24xlarge", + "r6id.32xlarge", + "r6id.metal", + "t1.micro", + "t2.2xlarge", + "t2.large", + "t2.medium", + "t2.micro", + "t2.nano", + "t2.small", + "t2.xlarge", + "t3.2xlarge", + "t3.large", + "t3.medium", + "t3.micro", + "t3.nano", + "t3.small", + "t3.xlarge", + "t3a.2xlarge", + "t3a.large", + "t3a.medium", + "t3a.micro", + "t3a.nano", + "t3a.small", + "t3a.xlarge", + "t4g.2xlarge", + "t4g.large", + "t4g.medium", + "t4g.micro", + "t4g.nano", + "t4g.small", + "t4g.xlarge", + "x1.16xlarge", + "x1.32xlarge", + "x1e.16xlarge", + "x1e.2xlarge", + "x1e.32xlarge", + "x1e.4xlarge", + "x1e.8xlarge", + "x1e.xlarge", + "z1d.12xlarge", + "z1d.2xlarge", + "z1d.3xlarge", + "z1d.6xlarge", + "z1d.large", + "z1d.metal", + "z1d.xlarge", + } + + results := []schema.EnumValueSpec{} + for _, v := range values { + name, err := instanceTypeName(v) + if err != nil { + panic(err) + } + results = append(results, schema.EnumValueSpec{Value: v, Name: name}) + } + + // Deprecated + results = append(results, schema.EnumValueSpec{Name: "U_12tb1Metal", Value: "u-12tb1.metal", DeprecationMessage: "This instancetype has been deprecated"}) + results = append(results, schema.EnumValueSpec{Name: "U_6tb1Metal", Value: "u-6tb1.metal", DeprecationMessage: "This instancetype has been deprecated"}) + results = append(results, schema.EnumValueSpec{Name: "U_9tb1Metal", Value: "u-9tb1.metal", DeprecationMessage: "This instancetype has been deprecated"}) + results = append(results, schema.EnumValueSpec{Name: "Hs1_8XLarge", Value: "hs1.8xlarge", DeprecationMessage: "This instancetype has been deprecated"}) + results = append(results, schema.EnumValueSpec{Name: "M5as_XLarge", Value: "m5ad.xlarge", DeprecationMessage: "Has a typo, use M5ad_XLarge instead"}) + + return results +} diff --git a/provider/resources.go b/provider/resources.go index 6a1a957f3bd..da509bbe061 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -4387,503 +4387,7 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo { ObjectTypeSpec: schema.ObjectTypeSpec{ Type: "string", }, - Enum: []schema.EnumValueSpec{ - {Name: "A1_2XLarge", Value: "a1.2xlarge"}, - {Name: "A1_4XLarge", Value: "a1.4xlarge"}, - {Name: "A1_Large", Value: "a1.large"}, - {Name: "A1_Medium", Value: "a1.medium"}, - {Name: "A1_Metal", Value: "a1.metal"}, - {Name: "A1_XLarge", Value: "a1.xlarge"}, - {Name: "C1_Medium", Value: "c1.medium"}, - {Name: "C1_XLarge", Value: "c1.xlarge"}, - {Name: "C3_2XLarge", Value: "c3.2xlarge"}, - {Name: "C3_4XLarge", Value: "c3.4xlarge"}, - {Name: "C3_8XLarge", Value: "c3.8xlarge"}, - {Name: "C3_Large", Value: "c3.large"}, - {Name: "C3_XLarge", Value: "c3.xlarge"}, - {Name: "C4_2XLarge", Value: "c4.2xlarge"}, - {Name: "C4_4XLarge", Value: "c4.4xlarge"}, - {Name: "C4_8XLarge", Value: "c4.8xlarge"}, - {Name: "C4_Large", Value: "c4.large"}, - {Name: "C4_XLarge", Value: "c4.xlarge"}, - {Name: "C5_12XLarge", Value: "c5.12xlarge"}, - {Name: "C5_18XLarge", Value: "c5.18xlarge"}, - {Name: "C5_24XLarge", Value: "c5.24xlarge"}, - {Name: "C5_2XLarge", Value: "c5.2xlarge"}, - {Name: "C5_4XLarge", Value: "c5.4xlarge"}, - {Name: "C5_9XLarge", Value: "c5.9xlarge"}, - {Name: "C5_Large", Value: "c5.large"}, - {Name: "C5_Metal", Value: "c5.metal"}, - {Name: "C5_XLarge", Value: "c5.xlarge"}, - {Name: "C5a_12XLarge", Value: "c5a.12xlarge"}, - {Name: "C5a_16XLarge", Value: "c5a.16xlarge"}, - {Name: "C5a_24XLarge", Value: "c5a.24xlarge"}, - {Name: "C5a_2XLarge", Value: "c5a.2xlarge"}, - {Name: "C5a_4XLarge", Value: "c5a.4xlarge"}, - {Name: "C5a_8XLarge", Value: "c5a.8xlarge"}, - {Name: "C5a_Large", Value: "c5a.large"}, - {Name: "C5a_XLarge", Value: "c5a.xlarge"}, - {Name: "C5ad_12XLarge", Value: "c5ad.12xlarge"}, - {Name: "C5ad_16XLarge", Value: "c5ad.16xlarge"}, - {Name: "C5ad_24XLarge", Value: "c5ad.24xlarge"}, - {Name: "C5ad_2XLarge", Value: "c5ad.2xlarge"}, - {Name: "C5ad_4XLarge", Value: "c5ad.4xlarge"}, - {Name: "C5ad_8XLarge", Value: "c5ad.8xlarge"}, - {Name: "C5ad_Large", Value: "c5ad.large"}, - {Name: "C5ad_XLarge", Value: "c5ad.xlarge"}, - {Name: "C5d_12XLarge", Value: "c5d.12xlarge"}, - {Name: "C5d_18XLarge", Value: "c5d.18xlarge"}, - {Name: "C5d_24XLarge", Value: "c5d.24xlarge"}, - {Name: "C5d_2XLarge", Value: "c5d.2xlarge"}, - {Name: "C5d_4XLarge", Value: "c5d.4xlarge"}, - {Name: "C5d_9XLarge", Value: "c5d.9xlarge"}, - {Name: "C5d_Large", Value: "c5d.large"}, - {Name: "C5d_Metal", Value: "c5d.metal"}, - {Name: "C5d_XLarge", Value: "c5d.xlarge"}, - {Name: "C5n_18XLarge", Value: "c5n.18xlarge"}, - {Name: "C5n_2XLarge", Value: "c5n.2xlarge"}, - {Name: "C5n_4XLarge", Value: "c5n.4xlarge"}, - {Name: "C5n_9XLarge", Value: "c5n.9xlarge"}, - {Name: "C5n_Large", Value: "c5n.large"}, - {Name: "C5n_Metal", Value: "c5n.metal"}, - {Name: "C5n_XLarge", Value: "c5n.xlarge"}, - {Name: "C6a_Large", Value: "c6a.large"}, - {Name: "C6a_Metal", Value: "c6a.metal"}, - {Name: "C6a_XLarge", Value: "c6a.xlarge"}, - {Name: "C6a_2XLarge", Value: "c6a.2xlarge"}, - {Name: "C6a_4XLarge", Value: "c6a.4xlarge"}, - {Name: "C6a_8XLarge", Value: "c6a.8xlarge"}, - {Name: "C6a_12XLarge", Value: "c6a.12xlarge"}, - {Name: "C6a_16XLarge", Value: "c6a.16xlarge"}, - {Name: "C6a_24XLarge", Value: "c6a.24xlarge"}, - {Name: "C6a_32XLarge", Value: "c6a.32xlarge"}, - {Name: "C6a_48XLarge", Value: "c6a.48xlarge"}, - {Name: "C6g_12XLarge", Value: "c6g.12xlarge"}, - {Name: "C6g_16XLarge", Value: "c6g.16xlarge"}, - {Name: "C6g_2XLarge", Value: "c6g.2xlarge"}, - {Name: "C6g_4XLarge", Value: "c6g.4xlarge"}, - {Name: "C6g_8XLarge", Value: "c6g.8xlarge"}, - {Name: "C6g_Large", Value: "c6g.large"}, - {Name: "C6g_Medium", Value: "c6g.medium"}, - {Name: "C6g_Metal", Value: "c6g.metal"}, - {Name: "C6g_XLarge", Value: "c6g.xlarge"}, - {Name: "C6gd_12XLarge", Value: "c6gd.12xlarge"}, - {Name: "C6gd_16XLarge", Value: "c6gd.16xlarge"}, - {Name: "C6gd_2XLarge", Value: "c6gd.2xlarge"}, - {Name: "C6gd_4XLarge", Value: "c6gd.4xlarge"}, - {Name: "C6gd_8XLarge", Value: "c6gd.8xlarge"}, - {Name: "C6gd_Large", Value: "c6gd.large"}, - {Name: "C6gd_Medium", Value: "c6gd.medium"}, - {Name: "C6gd_Metal", Value: "c6gd.metal"}, - {Name: "C6gd_XLarge", Value: "c6gd.xlarge"}, - {Name: "C6i_Large", Value: "c6i.large"}, - {Name: "C6i_XLarge", Value: "c6i.xlarge"}, - {Name: "C6i_2XLarge", Value: "c6i.2xlarge"}, - {Name: "C6i_4XLarge", Value: "c6i.4xlarge"}, - {Name: "C6i_8XLarge", Value: "c6i.8xlarge"}, - {Name: "C6i_12XLarge", Value: "c6i.12xlarge"}, - {Name: "C6i_16XLarge", Value: "c6i.16xlarge"}, - {Name: "C6i_24XLarge", Value: "c6i.24xlarge"}, - {Name: "C6i_32XLarge", Value: "c6i.32xlarge"}, - {Name: "C6i_Metal", Value: "c6i.metal"}, - {Name: "C6id_Large", Value: "c6id.large"}, - {Name: "C6id_XLarge", Value: "c6id.xlarge"}, - {Name: "C6id_2XLarge", Value: "c6id.2xlarge"}, - {Name: "C6id_4XLarge", Value: "c6id.4xlarge"}, - {Name: "C6id_8XLarge", Value: "c6id.8xlarge"}, - {Name: "C6id_12XLarge", Value: "c6id.12xlarge"}, - {Name: "C6id_16XLarge", Value: "c6id.16xlarge"}, - {Name: "C6id_24XLarge", Value: "c6id.24xlarge"}, - {Name: "C6id_32XLarge", Value: "c6id.32xlarge"}, - {Name: "C6id_Metal", Value: "c6id.metal"}, - {Name: "C7a_Medium", Value: "c7a.medium"}, - {Name: "C7a_Large", Value: "c7a.large"}, - {Name: "C7a_XLarge", Value: "c7a.xlarge"}, - {Name: "C7a_2XLarge", Value: "c7a.2xlarge"}, - {Name: "C7a_4XLarge", Value: "c7a.4xlarge"}, - {Name: "C7a_8XLarge", Value: "c7a.8xlarge"}, - {Name: "C7a_12XLarge", Value: "c7a.12xlarge"}, - {Name: "C7a_16XLarge", Value: "c7a.16xlarge"}, - {Name: "C7a_24XLarge", Value: "c7a.24xlarge"}, - {Name: "C7a_32XLarge", Value: "c7a.32xlarge"}, - {Name: "C7a_48XLarge", Value: "c7a.48xlarge"}, - {Name: "C7a_Metal", Value: "c7a.metal-48xl"}, - {Name: "Cc2_8XLarge", Value: "cc2.8xlarge"}, - {Name: "D2_2XLarge", Value: "d2.2xlarge"}, - {Name: "D2_4XLarge", Value: "d2.4xlarge"}, - {Name: "D2_8XLarge", Value: "d2.8xlarge"}, - {Name: "D2_XLarge", Value: "d2.xlarge"}, - {Name: "D3_2XLarge", Value: "d3.2xlarge"}, - {Name: "D3_4XLarge", Value: "d3.4xlarge"}, - {Name: "D3_8XLarge", Value: "d3.8xlarge"}, - {Name: "D3_XLarge", Value: "d3.xlarge"}, - {Name: "D3en_12XLarge", Value: "d3en.12xlarge"}, - {Name: "D3en_2XLarge", Value: "d3en.2xlarge"}, - {Name: "D3en_4XLarge", Value: "d3en.4xlarge"}, - {Name: "D3en_6XLarge", Value: "d3en.6xlarge"}, - {Name: "D3en_8XLarge", Value: "d3en.8xlarge"}, - {Name: "D3en_XLarge", Value: "d3en.xlarge"}, - {Name: "F1_16XLarge", Value: "f1.16xlarge"}, - {Name: "F1_2XLarge", Value: "f1.2xlarge"}, - {Name: "F1_4XLarge", Value: "f1.4xlarge"}, - {Name: "G2_2XLarge", Value: "g2.2xlarge"}, - {Name: "G2_8XLarge", Value: "g2.8xlarge"}, - {Name: "G3_16XLarge", Value: "g3.16xlarge"}, - {Name: "G3_4XLarge", Value: "g3.4xlarge"}, - {Name: "G3_8XLarge", Value: "g3.8xlarge"}, - {Name: "G3s_XLarge", Value: "g3s.xlarge"}, - {Name: "G4ad_16XLarge", Value: "g4ad.16xlarge"}, - {Name: "G4ad_XLarge", Value: "g4ad.xlarge"}, - {Name: "G4ad_2XLarge", Value: "g4ad.2xlarge"}, - {Name: "G4ad_4XLarge", Value: "g4ad.4xlarge"}, - {Name: "G4ad_8XLarge", Value: "g4ad.8xlarge"}, - {Name: "G4dn_12XLarge", Value: "g4dn.12xlarge"}, - {Name: "G4dn_16XLarge", Value: "g4dn.16xlarge"}, - {Name: "G4dn_2XLarge", Value: "g4dn.2xlarge"}, - {Name: "G4dn_4XLarge", Value: "g4dn.4xlarge"}, - {Name: "G4dn_8XLarge", Value: "g4dn.8xlarge"}, - {Name: "G4dn_Metal", Value: "g4dn.metal"}, - {Name: "G4dn_XLarge", Value: "g4dn.xlarge"}, - {Name: "G5_XLarge", Value: "g5.xlarge"}, - {Name: "G5_2XLarge", Value: "g5.2xlarge"}, - {Name: "G5_4XLarge", Value: "g5.4xlarge"}, - {Name: "G5_8XLarge", Value: "g5.8xlarge"}, - {Name: "G5_12XLarge", Value: "g5.12xlarge"}, - {Name: "G5_16XLarge", Value: "g5.16xlarge"}, - {Name: "G5_24XLarge", Value: "g5.24xlarge"}, - {Name: "G5_48XLarge", Value: "g5.48xlarge"}, - {Name: "H1_16XLarge", Value: "h1.16xlarge"}, - {Name: "H1_2XLarge", Value: "h1.2xlarge"}, - {Name: "H1_4XLarge", Value: "h1.4xlarge"}, - {Name: "H1_8XLarge", Value: "h1.8xlarge"}, - {Name: "I2_2XLarge", Value: "i2.2xlarge"}, - {Name: "I2_4XLarge", Value: "i2.4xlarge"}, - {Name: "I2_8XLarge", Value: "i2.8xlarge"}, - {Name: "I2_XLarge", Value: "i2.xlarge"}, - {Name: "I3_16XLarge", Value: "i3.16xlarge"}, - {Name: "I3_2XLarge", Value: "i3.2xlarge"}, - {Name: "I3_4XLarge", Value: "i3.4xlarge"}, - {Name: "I3_8XLarge", Value: "i3.8xlarge"}, - {Name: "I3_Large", Value: "i3.large"}, - {Name: "I3_XLarge", Value: "i3.xlarge"}, - {Name: "I3_Metal", Value: "i3.metal"}, - {Name: "I3en_12XLarge", Value: "i3en.12xlarge"}, - {Name: "I3en_24XLarge", Value: "i3en.24xlarge"}, - {Name: "I3en_2XLarge", Value: "i3en.2xlarge"}, - {Name: "I3en_3XLarge", Value: "i3en.3xlarge"}, - {Name: "I3en_6XLarge", Value: "i3en.6xlarge"}, - {Name: "I3en_Large", Value: "i3en.large"}, - {Name: "I3en_Metal", Value: "i3en.metal"}, - {Name: "I3en_XLarge", Value: "i3en.xlarge"}, - {Name: "Inf1_24XLarge", Value: "inf1.24xlarge"}, - {Name: "Inf1_2XLarge", Value: "inf1.2xlarge"}, - {Name: "Inf1_6XLarge", Value: "inf1.6xlarge"}, - {Name: "Inf1_XLarge", Value: "inf1.xlarge"}, - {Name: "M1_Large", Value: "m1.large"}, - {Name: "M1_Medium", Value: "m1.medium"}, - {Name: "M1_Small", Value: "m1.small"}, - {Name: "M1_XLarge", Value: "m1.xlarge"}, - {Name: "M2_2XLarge", Value: "m2.2xlarge"}, - {Name: "M2_4XLarge", Value: "m2.4xlarge"}, - {Name: "M2_XLarge", Value: "m2.xlarge"}, - {Name: "M3_2XLarge", Value: "m3.2xlarge"}, - {Name: "M3_Large", Value: "m3.large"}, - {Name: "M3_Medium", Value: "m3.medium"}, - {Name: "M3_XLarge", Value: "m3.xlarge"}, - {Name: "M4_10XLarge", Value: "m4.10xlarge"}, - {Name: "M4_16XLarge", Value: "m4.16xlarge"}, - {Name: "M4_2XLarge", Value: "m4.2xlarge"}, - {Name: "M4_4XLarge", Value: "m4.4xlarge"}, - {Name: "M4_Large", Value: "m4.large"}, - {Name: "M4_XLarge", Value: "m4.xlarge"}, - {Name: "M5_12XLarge", Value: "m5.12xlarge"}, - {Name: "M5_16XLarge", Value: "m5.16xlarge"}, - {Name: "M5_24XLarge", Value: "m5.24xlarge"}, - {Name: "M5_2XLarge", Value: "m5.2xlarge"}, - {Name: "M5_4XLarge", Value: "m5.4xlarge"}, - {Name: "M5_8XLarge", Value: "m5.8xlarge"}, - {Name: "M5_Large", Value: "m5.large"}, - {Name: "M5_Metal", Value: "m5.metal"}, - {Name: "M5_XLarge", Value: "m5.xlarge"}, - {Name: "M5a_12XLarge", Value: "m5a.12xlarge"}, - {Name: "M5a_16XLarge", Value: "m5a.16xlarge"}, - {Name: "M5a_24XLarge", Value: "m5a.24xlarge"}, - {Name: "M5a_2XLarge", Value: "m5a.2xlarge"}, - {Name: "M5a_4XLarge", Value: "m5a.4xlarge"}, - {Name: "M5a_8XLarge", Value: "m5a.8xlarge"}, - {Name: "M5a_Large", Value: "m5a.large"}, - {Name: "M5a_XLarge", Value: "m5a.xlarge"}, - {Name: "M5ad_12XLarge", Value: "m5ad.12xlarge"}, - {Name: "M5ad_16XLarge", Value: "m5ad.16xlarge"}, - {Name: "M5ad_24XLarge", Value: "m5ad.24xlarge"}, - {Name: "M5ad_2XLarge", Value: "m5ad.2xlarge"}, - {Name: "M5ad_4XLarge", Value: "m5ad.4xlarge"}, - {Name: "M5ad_8XLarge", Value: "m5ad.8xlarge"}, - {Name: "M5ad_Large", Value: "m5ad.large"}, - {Name: "M5as_XLarge", Value: "m5ad.xlarge"}, - {Name: "M5d_12XLarge", Value: "m5d.12xlarge"}, - {Name: "M5d_16XLarge", Value: "m5d.16xlarge"}, - {Name: "M5d_24XLarge", Value: "m5d.24xlarge"}, - {Name: "M5d_2XLarge", Value: "m5d.2xlarge"}, - {Name: "M5d_4XLarge", Value: "m5d.4xlarge"}, - {Name: "M5d_8XLarge", Value: "m5d.8xlarge"}, - {Name: "M5d_Large", Value: "m5d.large"}, - {Name: "M5d_Metal", Value: "m5d.metal"}, - {Name: "M5d_XLarge", Value: "m5d.xlarge"}, - {Name: "M5dn_12XLarge", Value: "m5dn.12xlarge"}, - {Name: "M5dn_16XLarge", Value: "m5dn.16xlarge"}, - {Name: "M5dn_24XLarge", Value: "m5dn.24xlarge"}, - {Name: "M5dn_2XLarge", Value: "m5dn.2xlarge"}, - {Name: "M5dn_4XLarge", Value: "m5dn.4xlarge"}, - {Name: "M5dn_8XLarge", Value: "m5dn.8xlarge"}, - {Name: "M5dn_Large", Value: "m5dn.large"}, - {Name: "M5dn_XLarge", Value: "m5dn.xlarge"}, - {Name: "M5n_12XLarge", Value: "m5n.12xlarge"}, - {Name: "M5n_16XLarge", Value: "m5n.16xlarge"}, - {Name: "M5n_24XLarge", Value: "m5n.24xlarge"}, - {Name: "M5n_2XLarge", Value: "m5n.2xlarge"}, - {Name: "M5n_4XLarge", Value: "m5n.4xlarge"}, - {Name: "M5n_8XLarge", Value: "m5n.8xlarge"}, - {Name: "M5n_Large", Value: "m5n.large"}, - {Name: "M5n_XLarge", Value: "m5n.xlarge"}, - {Name: "M5zn_12XLarge", Value: "m5zn.12xlarge"}, - {Name: "M5zn_2XLarge", Value: "m5zn.2xlarge"}, - {Name: "M5zn_3XLarge", Value: "m5zn.3xlarge"}, - {Name: "M5zn_6XLarge", Value: "m5zn.6xlarge"}, - {Name: "M5zn_Large", Value: "m5zn.large"}, - {Name: "M5zn_Metal", Value: "m5zn.metal"}, - {Name: "M5zn_XLarge", Value: "m5zn.xlarge"}, - - {Name: "M6a_Large", Value: "m6a.large"}, - {Name: "M6a_Metal", Value: "m6a.metal"}, - {Name: "M6a_XLarge", Value: "m6a.xlarge"}, - {Name: "M6a_2XLarge", Value: "m6a.2xlarge"}, - {Name: "M6a_4XLarge", Value: "m6a.4xlarge"}, - {Name: "M6a_8XLarge", Value: "m6a.8xlarge"}, - {Name: "M6a_12XLarge", Value: "m6a.12xlarge"}, - {Name: "M6a_16XLarge", Value: "m6a.16xlarge"}, - {Name: "M6a_24XLarge", Value: "m6a.24xlarge"}, - {Name: "M6a_32XLarge", Value: "m6a.32xlarge"}, - {Name: "M6a_48XLarge", Value: "m6a.48xlarge"}, - {Name: "M6g_12XLarge", Value: "m6g.12xlarge"}, - {Name: "M6g_16XLarge", Value: "m6g.16xlarge"}, - {Name: "M6g_2XLarge", Value: "m6g.2xlarge"}, - {Name: "M6g_4XLarge", Value: "m6g.4xlarge"}, - {Name: "M6g_8XLarge", Value: "m6g.8xlarge"}, - {Name: "M6g_Large", Value: "m6g.large"}, - {Name: "M6g_Medium", Value: "m6g.medium"}, - {Name: "M6g_Metal", Value: "m6g.metal"}, - {Name: "M6g_XLarge", Value: "m6g.xlarge"}, - {Name: "M6gd_12XLarge", Value: "m6gd.12xlarge"}, - {Name: "M6gd_16XLarge", Value: "m6gd.16xlarge"}, - {Name: "M6gd_2XLarge", Value: "m6gd.2xlarge"}, - {Name: "M6gd_4XLarge", Value: "m6gd.4xlarge"}, - {Name: "M6gd_8XLarge", Value: "m6gd.8xlarge"}, - {Name: "M6gd_Large", Value: "m6gd.large"}, - {Name: "M6gd_Medium", Value: "m6gd.medium"}, - {Name: "M6gd_Metal", Value: "m6gd.metal"}, - {Name: "M6gd_XLarge", Value: "m6gd.xlarge"}, - {Name: "M6i_Large", Value: "m6i.large"}, - {Name: "M6i_XLarge", Value: "m6i.xlarge"}, - {Name: "M6i_2XLarge", Value: "m6i.2xlarge"}, - {Name: "M6i_4XLarge", Value: "m6i.4xlarge"}, - {Name: "M6i_8XLarge", Value: "m6i.8xlarge"}, - {Name: "M6i_12XLarge", Value: "m6i.12xlarge"}, - {Name: "M6i_16XLarge", Value: "m6i.16xlarge"}, - {Name: "M6i_24XLarge", Value: "m6i.24xlarge"}, - {Name: "M6i_32XLarge", Value: "m6i.32xlarge"}, - {Name: "M6i_Metal", Value: "m6i.metal"}, - {Name: "M6id_Large", Value: "m6id.large"}, - {Name: "M6id_XLarge", Value: "m6id.xlarge"}, - {Name: "M6id_2XLarge", Value: "m6id.2xlarge"}, - {Name: "M6id_4XLarge", Value: "m6id.4xlarge"}, - {Name: "M6id_8XLarge", Value: "m6id.8xlarge"}, - {Name: "M6id_12XLarge", Value: "m6id.12xlarge"}, - {Name: "M6id_16XLarge", Value: "m6id.16xlarge"}, - {Name: "M6id_24XLarge", Value: "m6id.24xlarge"}, - {Name: "M6id_32XLarge", Value: "m6id.32xlarge"}, - {Name: "M6id_Metal", Value: "m6id.metal"}, - {Name: "M7a_Medium", Value: "m7a.medium"}, - {Name: "M7a_Large", Value: "m7a.large"}, - {Name: "M7a_XLarge", Value: "m7a.xlarge"}, - {Name: "M7a_2XLarge", Value: "m7a.2xlarge"}, - {Name: "M7a_4XLarge", Value: "m7a.4xlarge"}, - {Name: "M7a_8XLarge", Value: "m7a.8xlarge"}, - {Name: "M7a_12XLarge", Value: "m7a.12xlarge"}, - {Name: "M7a_16XLarge", Value: "m7a.16xlarge"}, - {Name: "M7a_24XLarge", Value: "m7a.24xlarge"}, - {Name: "M7a_32XLarge", Value: "m7a.32xlarge"}, - {Name: "M7a_48XLarge", Value: "m7a.48xlarge"}, - {Name: "M7a_Metal", Value: "m7a.metal-48xl"}, - {Name: "Mac1_Metal", Value: "mac1.metal"}, - {Name: "P2_16XLarge", Value: "p2.16xlarge"}, - {Name: "P2_8XLarge", Value: "p2.8xlarge"}, - {Name: "P2_XLarge", Value: "p2.xlarge"}, - {Name: "P3_16XLarge", Value: "p3.16xlarge"}, - {Name: "P3_2XLarge", Value: "p3.2xlarge"}, - {Name: "P3_8XLarge", Value: "p3.8xlarge"}, - {Name: "P3dn_24XLarge", Value: "p3dn.24xlarge"}, - {Name: "P4d_24XLarge", Value: "p4d.24xlarge"}, - {Name: "R3_2XLarge", Value: "r3.2xlarge"}, - {Name: "R3_4XLarge", Value: "r3.4xlarge"}, - {Name: "R3_8XLarge", Value: "r3.8xlarge"}, - {Name: "R3_Large", Value: "r3.large"}, - {Name: "R3_XLarge", Value: "r3.xlarge"}, - {Name: "R4_16XLarge", Value: "r4.16xlarge"}, - {Name: "R4_2XLarge", Value: "r4.2xlarge"}, - {Name: "R4_4XLarge", Value: "r4.4xlarge"}, - {Name: "R4_8XLarge", Value: "r4.8xlarge"}, - {Name: "R4_Large", Value: "r4.large"}, - {Name: "R4_XLarge", Value: "r4.xlarge"}, - {Name: "R5_12XLarge", Value: "r5.12xlarge"}, - {Name: "R5_16XLarge", Value: "r5.16xlarge"}, - {Name: "R5_24XLarge", Value: "r5.24xlarge"}, - {Name: "R5_2XLarge", Value: "r5.2xlarge"}, - {Name: "R5_4XLarge", Value: "r5.4xlarge"}, - {Name: "R5_8XLarge", Value: "r5.8xlarge"}, - {Name: "R5_Large", Value: "r5.large"}, - {Name: "R5_Metal", Value: "r5.metal"}, - {Name: "R5_XLarge", Value: "r5.xlarge"}, - {Name: "R5a_12XLarge", Value: "r5a.12xlarge"}, - {Name: "R5a_16XLarge", Value: "r5a.16xlarge"}, - {Name: "R5a_24XLarge", Value: "r5a.24xlarge"}, - {Name: "R5a_2XLarge", Value: "r5a.2xlarge"}, - {Name: "R5a_4XLarge", Value: "r5a.4xlarge"}, - {Name: "R5a_8XLarge", Value: "r5a.8xlarge"}, - {Name: "R5a_Large", Value: "r5a.large"}, - {Name: "R5a_XLarge", Value: "r5a.xlarge"}, - {Name: "R5ad_12XLarge", Value: "r5ad.12xlarge"}, - {Name: "R5ad_16XLarge", Value: "r5ad.16xlarge"}, - {Name: "R5ad_24XLarge", Value: "r5ad.24xlarge"}, - {Name: "R5ad_2XLarge", Value: "r5ad.2xlarge"}, - {Name: "R5ad_4XLarge", Value: "r5ad.4xlarge"}, - {Name: "R5ad_8XLarge", Value: "r5ad.8xlarge"}, - {Name: "R5ad_Large", Value: "r5ad.large"}, - {Name: "R5ad_XLarge", Value: "r5ad.xlarge"}, - {Name: "R5b_12XLarge", Value: "r5b.12xlarge"}, - {Name: "R5b_16XLarge", Value: "r5b.16xlarge"}, - {Name: "R5b_24XLarge", Value: "r5b.24xlarge"}, - {Name: "R5b_2XLarge", Value: "r5b.2xlarge"}, - {Name: "R5b_4XLarge", Value: "r5b.4xlarge"}, - {Name: "R5b_8XLarge", Value: "r5b.8xlarge"}, - {Name: "R5b_Large", Value: "r5b.large"}, - {Name: "R5b_Metal", Value: "r5b.metal"}, - {Name: "R5b_XLarge", Value: "r5b.xlarge"}, - {Name: "R5d_12XLarge", Value: "r5d.12xlarge"}, - {Name: "R5d_16XLarge", Value: "r5d.16xlarge"}, - {Name: "R5d_24XLarge", Value: "r5d.24xlarge"}, - {Name: "R5d_2XLarge", Value: "r5d.2xlarge"}, - {Name: "R5d_4XLarge", Value: "r5d.4xlarge"}, - {Name: "R5d_8XLarge", Value: "r5d.8xlarge"}, - {Name: "R5d_Large", Value: "r5d.large"}, - {Name: "R5d_Metal", Value: "r5d.metal"}, - {Name: "R5d_XLarge", Value: "r5d.xlarge"}, - {Name: "R5dn_12XLarge", Value: "r5dn.12xlarge"}, - {Name: "R5dn_16XLarge", Value: "r5dn.16xlarge"}, - {Name: "R5dn_24XLarge", Value: "r5dn.24xlarge"}, - {Name: "R5dn_2XLarge", Value: "r5dn.2xlarge"}, - {Name: "R5dn_4XLarge", Value: "r5dn.4xlarge"}, - {Name: "R5dn_8XLarge", Value: "r5dn.8xlarge"}, - {Name: "R5dn_Large", Value: "r5dn.large"}, - {Name: "R5dn_XLarge", Value: "r5dn.xlarge"}, - {Name: "R5dn_Metal", Value: "r5dn.metal"}, - {Name: "R5n_12XLarge", Value: "r5n.12xlarge"}, - {Name: "R5n_16XLarge", Value: "r5n.16xlarge"}, - {Name: "R5n_24XLarge", Value: "r5n.24xlarge"}, - {Name: "R5n_2XLarge", Value: "r5n.2xlarge"}, - {Name: "R5n_4XLarge", Value: "r5n.4xlarge"}, - {Name: "R5n_8XLarge", Value: "r5n.8xlarge"}, - {Name: "R5n_Large", Value: "r5n.large"}, - {Name: "R5n_XLarge", Value: "r5n.xlarge"}, - {Name: "R6g_12XLarge", Value: "r6g.12xlarge"}, - {Name: "R6g_16XLarge", Value: "r6g.16xlarge"}, - {Name: "R6g_2XLarge", Value: "r6g.2xlarge"}, - {Name: "R6g_4XLarge", Value: "r6g.4xlarge"}, - {Name: "R6g_8XLarge", Value: "r6g.8xlarge"}, - {Name: "R6g_Large", Value: "r6g.large"}, - {Name: "R6g_Medium", Value: "r6g.medium"}, - {Name: "R6g_Metal", Value: "r6g.metal"}, - {Name: "R6g_XLarge", Value: "r6g.xlarge"}, - {Name: "R6gd_12XLarge", Value: "r6gd.12xlarge"}, - {Name: "R6gd_16XLarge", Value: "r6gd.16xlarge"}, - {Name: "R6gd_2XLarge", Value: "r6gd.2xlarge"}, - {Name: "R6gd_4XLarge", Value: "r6gd.4xlarge"}, - {Name: "R6gd_8XLarge", Value: "r6gd.8xlarge"}, - {Name: "R6gd_Large", Value: "r6gd.large"}, - {Name: "R6gd_Medium", Value: "r6gd.medium"}, - {Name: "R6gd_Metal", Value: "r6gd.metal"}, - {Name: "R6gd_XLarge", Value: "r6gd.xlarge"}, - {Name: "R6i_Large", Value: "r6i.large"}, - {Name: "R6i_XLarge", Value: "r6i.xlarge"}, - {Name: "R6i_2XLarge", Value: "r6i.2xlarge"}, - {Name: "R6i_4XLarge", Value: "r6i.4xlarge"}, - {Name: "R6i_8XLarge", Value: "r6i.8xlarge"}, - {Name: "R6i_12XLarge", Value: "r6i.12xlarge"}, - {Name: "R6i_16XLarge", Value: "r6i.16xlarge"}, - {Name: "R6i_24XLarge", Value: "r6i.24xlarge"}, - {Name: "R6i_32XLarge", Value: "r6i.32xlarge"}, - {Name: "R6i_Metal", Value: "r6i.metal"}, - {Name: "R6id_Large", Value: "r6id.large"}, - {Name: "R6id_XLarge", Value: "r6id.xlarge"}, - {Name: "R6id_2XLarge", Value: "r6id.2xlarge"}, - {Name: "R6id_4XLarge", Value: "r6id.4xlarge"}, - {Name: "R6id_8XLarge", Value: "r6id.8xlarge"}, - {Name: "R6id_12XLarge", Value: "r6id.12xlarge"}, - {Name: "R6id_16XLarge", Value: "r6id.16xlarge"}, - {Name: "R6id_24XLarge", Value: "r6id.24xlarge"}, - {Name: "R6id_32XLarge", Value: "r6id.32xlarge"}, - {Name: "R6id_Metal", Value: "r6id.metal"}, - {Name: "T1_Micro", Value: "t1.micro"}, - {Name: "T2_2XLarge", Value: "t2.2xlarge"}, - {Name: "T2_Large", Value: "t2.large"}, - {Name: "T2_Medium", Value: "t2.medium"}, - {Name: "T2_Micro", Value: "t2.micro"}, - {Name: "T2_Nano", Value: "t2.nano"}, - {Name: "T2_Small", Value: "t2.small"}, - {Name: "T2_XLarge", Value: "t2.xlarge"}, - {Name: "T3_2XLarge", Value: "t3.2xlarge"}, - {Name: "T3_Large", Value: "t3.large"}, - {Name: "T3_Medium", Value: "t3.medium"}, - {Name: "T3_Micro", Value: "t3.micro"}, - {Name: "T3_Nano", Value: "t3.nano"}, - {Name: "T3_Small", Value: "t3.small"}, - {Name: "T3_XLarge", Value: "t3.xlarge"}, - {Name: "T3a_2XLarge", Value: "t3a.2xlarge"}, - {Name: "T3a_Large", Value: "t3a.large"}, - {Name: "T3a_Medium", Value: "t3a.medium"}, - {Name: "T3a_Micro", Value: "t3a.micro"}, - {Name: "T3a_Nano", Value: "t3a.nano"}, - {Name: "T3a_Small", Value: "t3a.small"}, - {Name: "T3a_XLarge", Value: "t3a.xlarge"}, - {Name: "T4g_2XLarge", Value: "t4g.2xlarge"}, - {Name: "T4g_Large", Value: "t4g.large"}, - {Name: "T4g_Medium", Value: "t4g.medium"}, - {Name: "T4g_Micro", Value: "t4g.micro"}, - {Name: "T4g_Nano", Value: "t4g.nano"}, - {Name: "T4g_Small", Value: "t4g.small"}, - {Name: "T4g_XLarge", Value: "t4g.xlarge"}, - {Name: "X1_16XLarge", Value: "x1.16xlarge"}, - {Name: "X1_32XLarge", Value: "x1.32xlarge"}, - {Name: "X1e_16XLarge", Value: "x1e.16xlarge"}, - {Name: "X1e_2XLarge", Value: "x1e.2xlarge"}, - {Name: "X1e_32XLarge", Value: "x1e.32xlarge"}, - {Name: "X1e_4XLarge", Value: "x1e.4xlarge"}, - {Name: "X1e_8XLarge", Value: "x1e.8xlarge"}, - {Name: "X1e_XLarge", Value: "x1e.xlarge"}, - {Name: "Z1d_12XLarge", Value: "z1d.12xlarge"}, - {Name: "Z1d_2XLarge", Value: "z1d.2xlarge"}, - {Name: "Z1d_3XLarge", Value: "z1d.3xlarge"}, - {Name: "Z1d_6XLarge", Value: "z1d.6xlarge"}, - {Name: "Z1d_Large", Value: "z1d.large"}, - {Name: "Z1d_Metal", Value: "z1d.metal"}, - {Name: "Z1d_XLarge", Value: "z1d.xlarge"}, - - // Deprecated - {Name: "U_12tb1Metal", Value: "u-12tb1.metal", DeprecationMessage: "This instancetype has been deprecated"}, - {Name: "U_6tb1Metal", Value: "u-6tb1.metal", DeprecationMessage: "This instancetype has been deprecated"}, - {Name: "U_9tb1Metal", Value: "u-9tb1.metal", DeprecationMessage: "This instancetype has been deprecated"}, - {Name: "Hs1_8XLarge", Value: "hs1.8xlarge", DeprecationMessage: "This instancetype has been deprecated"}, - }, + Enum: instanceTypes(), }, "aws:ec2/PlacementStrategy:PlacementStrategy": { ObjectTypeSpec: schema.ObjectTypeSpec{ diff --git a/sdk/dotnet/Ec2/Enums.cs b/sdk/dotnet/Ec2/Enums.cs index abfb6c431a2..3b7a5af2023 100644 --- a/sdk/dotnet/Ec2/Enums.cs +++ b/sdk/dotnet/Ec2/Enums.cs @@ -283,7 +283,7 @@ private InstanceType(string value) public static InstanceType M5ad_4XLarge { get; } = new InstanceType("m5ad.4xlarge"); public static InstanceType M5ad_8XLarge { get; } = new InstanceType("m5ad.8xlarge"); public static InstanceType M5ad_Large { get; } = new InstanceType("m5ad.large"); - public static InstanceType M5as_XLarge { get; } = new InstanceType("m5ad.xlarge"); + public static InstanceType M5ad_XLarge { get; } = new InstanceType("m5ad.xlarge"); public static InstanceType M5d_12XLarge { get; } = new InstanceType("m5d.12xlarge"); public static InstanceType M5d_16XLarge { get; } = new InstanceType("m5d.16xlarge"); public static InstanceType M5d_24XLarge { get; } = new InstanceType("m5d.24xlarge"); @@ -547,6 +547,8 @@ private InstanceType(string value) public static InstanceType U_9tb1Metal { get; } = new InstanceType("u-9tb1.metal"); [Obsolete(@"This instancetype has been deprecated")] public static InstanceType Hs1_8XLarge { get; } = new InstanceType("hs1.8xlarge"); + [Obsolete(@"Has a typo, use M5ad_XLarge instead")] + public static InstanceType M5as_XLarge { get; } = new InstanceType("m5ad.xlarge"); public static bool operator ==(InstanceType left, InstanceType right) => left.Equals(right); public static bool operator !=(InstanceType left, InstanceType right) => !left.Equals(right); diff --git a/sdk/go/aws/ec2/pulumiEnums.go b/sdk/go/aws/ec2/pulumiEnums.go index 663e9d850dd..533ac730812 100644 --- a/sdk/go/aws/ec2/pulumiEnums.go +++ b/sdk/go/aws/ec2/pulumiEnums.go @@ -422,7 +422,7 @@ const ( InstanceType_M5ad_4XLarge = InstanceType("m5ad.4xlarge") InstanceType_M5ad_8XLarge = InstanceType("m5ad.8xlarge") InstanceType_M5ad_Large = InstanceType("m5ad.large") - InstanceType_M5as_XLarge = InstanceType("m5ad.xlarge") + InstanceType_M5ad_XLarge = InstanceType("m5ad.xlarge") InstanceType_M5d_12XLarge = InstanceType("m5d.12xlarge") InstanceType_M5d_16XLarge = InstanceType("m5d.16xlarge") InstanceType_M5d_24XLarge = InstanceType("m5d.24xlarge") @@ -686,6 +686,8 @@ const ( InstanceType_U_9tb1Metal = InstanceType("u-9tb1.metal") // Deprecated: This instancetype has been deprecated InstanceType_Hs1_8XLarge = InstanceType("hs1.8xlarge") + // Deprecated: Has a typo, use M5ad_XLarge instead + InstanceType_M5as_XLarge = InstanceType("m5ad.xlarge") ) func (InstanceType) ElementType() reflect.Type { @@ -1042,7 +1044,7 @@ func (o InstanceTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) // InstanceType_M5ad_4XLarge // InstanceType_M5ad_8XLarge // InstanceType_M5ad_Large -// InstanceType_M5as_XLarge +// InstanceType_M5ad_XLarge // InstanceType_M5d_12XLarge // InstanceType_M5d_16XLarge // InstanceType_M5d_24XLarge diff --git a/sdk/java/src/main/java/com/pulumi/aws/ec2/enums/InstanceType.java b/sdk/java/src/main/java/com/pulumi/aws/ec2/enums/InstanceType.java index 97cbe753a96..cace4fa5a23 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/ec2/enums/InstanceType.java +++ b/sdk/java/src/main/java/com/pulumi/aws/ec2/enums/InstanceType.java @@ -242,7 +242,7 @@ public enum InstanceType { M5ad_4XLarge("m5ad.4xlarge"), M5ad_8XLarge("m5ad.8xlarge"), M5ad_Large("m5ad.large"), - M5as_XLarge("m5ad.xlarge"), + M5ad_XLarge("m5ad.xlarge"), M5d_12XLarge("m5d.12xlarge"), M5d_16XLarge("m5d.16xlarge"), M5d_24XLarge("m5d.24xlarge"), @@ -521,7 +521,13 @@ public enum InstanceType { * This instancetype has been deprecated */ @Deprecated /* This instancetype has been deprecated */ - Hs1_8XLarge("hs1.8xlarge"); + Hs1_8XLarge("hs1.8xlarge"), + /** + * @deprecated + * Has a typo, use M5ad_XLarge instead + */ + @Deprecated /* Has a typo, use M5ad_XLarge instead */ + M5as_XLarge("m5ad.xlarge"); private final String value; diff --git a/sdk/nodejs/types/enums/ec2/index.ts b/sdk/nodejs/types/enums/ec2/index.ts index f6f7cb8e59f..c74d4fec646 100644 --- a/sdk/nodejs/types/enums/ec2/index.ts +++ b/sdk/nodejs/types/enums/ec2/index.ts @@ -248,7 +248,7 @@ export const InstanceType = { M5ad_4XLarge: "m5ad.4xlarge", M5ad_8XLarge: "m5ad.8xlarge", M5ad_Large: "m5ad.large", - M5as_XLarge: "m5ad.xlarge", + M5ad_XLarge: "m5ad.xlarge", M5d_12XLarge: "m5d.12xlarge", M5d_16XLarge: "m5d.16xlarge", M5d_24XLarge: "m5d.24xlarge", @@ -520,6 +520,10 @@ export const InstanceType = { * @deprecated This instancetype has been deprecated */ Hs1_8XLarge: "hs1.8xlarge", + /** + * @deprecated Has a typo, use M5ad_XLarge instead + */ + M5as_XLarge: "m5ad.xlarge", } as const; export type InstanceType = (typeof InstanceType)[keyof typeof InstanceType]; diff --git a/sdk/python/pulumi_aws/ec2/_enums.py b/sdk/python/pulumi_aws/ec2/_enums.py index 53bafb853b8..b4a8d6c5206 100644 --- a/sdk/python/pulumi_aws/ec2/_enums.py +++ b/sdk/python/pulumi_aws/ec2/_enums.py @@ -257,7 +257,7 @@ class InstanceType(str, Enum): M5AD_4_X_LARGE = "m5ad.4xlarge" M5AD_8_X_LARGE = "m5ad.8xlarge" M5AD_LARGE = "m5ad.large" - M5AS_X_LARGE = "m5ad.xlarge" + M5AD_X_LARGE = "m5ad.xlarge" M5D_12_X_LARGE = "m5d.12xlarge" M5D_16_X_LARGE = "m5d.16xlarge" M5D_24_X_LARGE = "m5d.24xlarge" @@ -517,6 +517,7 @@ class InstanceType(str, Enum): U_6TB1_METAL = "u-6tb1.metal" U_9TB1_METAL = "u-9tb1.metal" HS1_8_X_LARGE = "hs1.8xlarge" + M5AS_X_LARGE = "m5ad.xlarge" class PlacementStrategy(str, Enum):