diff --git a/awsasset.go b/awsasset.go index 752ee92a8..910596b49 100644 --- a/awsasset.go +++ b/awsasset.go @@ -19,8 +19,26 @@ const ( // AWSAssetKindInstance represents the value Instance. AWSAssetKindInstance AWSAssetKindValue = "Instance" + // AWSAssetKindInternetGateway represents the value InternetGateway. + AWSAssetKindInternetGateway AWSAssetKindValue = "InternetGateway" + + // AWSAssetKindNetworkACL represents the value NetworkACL. + AWSAssetKindNetworkACL AWSAssetKindValue = "NetworkACL" + + // AWSAssetKindNetworkInterface represents the value NetworkInterface. + AWSAssetKindNetworkInterface AWSAssetKindValue = "NetworkInterface" + // AWSAssetKindPending represents the value Pending. AWSAssetKindPending AWSAssetKindValue = "Pending" + + // AWSAssetKindSecurityGroup represents the value SecurityGroup. + AWSAssetKindSecurityGroup AWSAssetKindValue = "SecurityGroup" + + // AWSAssetKindSubnet represents the value Subnet. + AWSAssetKindSubnet AWSAssetKindValue = "Subnet" + + // AWSAssetKindVPC represents the value VPC. + AWSAssetKindVPC AWSAssetKindValue = "VPC" ) // AWSAssetServiceValue represents the possible values for attribute "service". @@ -547,7 +565,7 @@ func (o *AWSAsset) Validate() error { requiredErrors = requiredErrors.Append(err) } - if err := elemental.ValidateStringInList("kind", string(o.Kind), []string{"Pending", "Instance"}, false); err != nil { + if err := elemental.ValidateStringInList("kind", string(o.Kind), []string{"Pending", "Instance", "NetworkInterface", "VPC", "Subnet", "NetworkACL", "InternetGateway", "SecurityGroup"}, false); err != nil { errors = errors.Append(err) } @@ -710,7 +728,7 @@ a resource's Subnet or VPC ID.`, Type: "list", }, "Kind": { - AllowedChoices: []string{"Pending", "Instance"}, + AllowedChoices: []string{"Pending", "Instance", "NetworkInterface", "VPC", "Subnet", "NetworkACL", "InternetGateway", "SecurityGroup"}, BSONFieldName: "kind", ConvertedName: "Kind", DefaultValue: AWSAssetKindPending, @@ -943,7 +961,7 @@ a resource's Subnet or VPC ID.`, Type: "list", }, "kind": { - AllowedChoices: []string{"Pending", "Instance"}, + AllowedChoices: []string{"Pending", "Instance", "NetworkInterface", "VPC", "Subnet", "NetworkACL", "InternetGateway", "SecurityGroup"}, BSONFieldName: "kind", ConvertedName: "Kind", DefaultValue: AWSAssetKindPending, diff --git a/awsresource.go b/awsresource.go index ee12ea0f0..b97bf7d23 100644 --- a/awsresource.go +++ b/awsresource.go @@ -19,8 +19,26 @@ const ( // AWSResourceKindInstance represents the value Instance. AWSResourceKindInstance AWSResourceKindValue = "Instance" + // AWSResourceKindInternetGateway represents the value InternetGateway. + AWSResourceKindInternetGateway AWSResourceKindValue = "InternetGateway" + + // AWSResourceKindNetworkACL represents the value NetworkACL. + AWSResourceKindNetworkACL AWSResourceKindValue = "NetworkACL" + + // AWSResourceKindNetworkInterface represents the value NetworkInterface. + AWSResourceKindNetworkInterface AWSResourceKindValue = "NetworkInterface" + // AWSResourceKindPending represents the value Pending. AWSResourceKindPending AWSResourceKindValue = "Pending" + + // AWSResourceKindSecurityGroup represents the value SecurityGroup. + AWSResourceKindSecurityGroup AWSResourceKindValue = "SecurityGroup" + + // AWSResourceKindSubnet represents the value Subnet. + AWSResourceKindSubnet AWSResourceKindValue = "Subnet" + + // AWSResourceKindVPC represents the value VPC. + AWSResourceKindVPC AWSResourceKindValue = "VPC" ) // AWSResourceServiceValue represents the possible values for attribute "service". @@ -547,7 +565,7 @@ func (o *AWSResource) Validate() error { requiredErrors = requiredErrors.Append(err) } - if err := elemental.ValidateStringInList("kind", string(o.Kind), []string{"Pending", "Instance"}, false); err != nil { + if err := elemental.ValidateStringInList("kind", string(o.Kind), []string{"Pending", "Instance", "NetworkInterface", "VPC", "Subnet", "NetworkACL", "InternetGateway", "SecurityGroup"}, false); err != nil { errors = errors.Append(err) } @@ -710,7 +728,7 @@ a resource's Subnet or VPC ID.`, Type: "list", }, "Kind": { - AllowedChoices: []string{"Pending", "Instance"}, + AllowedChoices: []string{"Pending", "Instance", "NetworkInterface", "VPC", "Subnet", "NetworkACL", "InternetGateway", "SecurityGroup"}, BSONFieldName: "kind", ConvertedName: "Kind", DefaultValue: AWSResourceKindPending, @@ -943,7 +961,7 @@ a resource's Subnet or VPC ID.`, Type: "list", }, "kind": { - AllowedChoices: []string{"Pending", "Instance"}, + AllowedChoices: []string{"Pending", "Instance", "NetworkInterface", "VPC", "Subnet", "NetworkACL", "InternetGateway", "SecurityGroup"}, BSONFieldName: "kind", ConvertedName: "Kind", DefaultValue: AWSResourceKindPending, diff --git a/doc/documentation.md b/doc/documentation.md index ed6fcb938..fa1208915 100644 --- a/doc/documentation.md +++ b/doc/documentation.md @@ -9829,7 +9829,7 @@ a resource's Subnet or VPC ID. ##### `kind` -Type: `enum(Pending | Instance)` +Type: `enum(Pending | Instance | NetworkInterface | VPC | Subnet | NetworkACL | InternetGateway | SecurityGroup)` The specific kind of the resource. diff --git a/openapi3_autogen/awsasset.json b/openapi3_autogen/awsasset.json index 1af1a3773..ca85fedf5 100644 --- a/openapi3_autogen/awsasset.json +++ b/openapi3_autogen/awsasset.json @@ -41,7 +41,13 @@ "description": "The specific kind of the resource.", "enum": [ "Pending", - "Instance" + "Instance", + "NetworkInterface", + "VPC", + "Subnet", + "NetworkACL", + "InternetGateway", + "SecurityGroup" ], "example": "Instance" },