// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package eks import ( "context" "github.com/hashicorp/terraform-plugin-framework/tfsdk" "github.com/hashicorp/terraform-plugin-framework/types" . "github.com/hashicorp/terraform-provider-awscc/internal/generic" "github.com/hashicorp/terraform-provider-awscc/internal/registry" ) func init() { registry.AddDataSourceTypeFactory("awscc_eks_fargate_profile", fargateProfileDataSourceType) } // fargateProfileDataSourceType returns the Terraform awscc_eks_fargate_profile data source type. // This Terraform data source type corresponds to the CloudFormation AWS::EKS::FargateProfile resource type. func fargateProfileDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "cluster_name": { // Property: ClusterName // CloudFormation resource type schema: // { // "description": "Name of the Cluster", // "minLength": 1, // "type": "string" // } Description: "Name of the Cluster", Type: types.StringType, Computed: true, }, "fargate_profile_name": { // Property: FargateProfileName // CloudFormation resource type schema: // { // "description": "Name of FargateProfile", // "minLength": 1, // "type": "string" // } Description: "Name of FargateProfile", Type: types.StringType, Computed: true, }, "pod_execution_role_arn": { // Property: PodExecutionRoleArn // CloudFormation resource type schema: // { // "description": "The IAM policy arn for pods", // "minLength": 1, // "type": "string" // } Description: "The IAM policy arn for pods", Type: types.StringType, Computed: true, }, "selectors": { // Property: Selectors // CloudFormation resource type schema: // { // "items": { // "additionalProperties": false, // "properties": { // "Labels": { // "items": { // "additionalProperties": false, // "description": "A key-value pair to associate with a pod.", // "properties": { // "Key": { // "description": "The key name of the label.", // "maxLength": 127, // "minLength": 1, // "type": "string" // }, // "Value": { // "description": "The value for the label. ", // "maxLength": 255, // "minLength": 1, // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "type": "array" // }, // "Namespace": { // "minLength": 1, // "type": "string" // } // }, // "required": [ // "Namespace" // ], // "type": "object" // }, // "minItems": 1, // "type": "array" // } Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "labels": { // Property: Labels Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Description: "The key name of the label.", Type: types.StringType, Computed: true, }, "value": { // Property: Value Description: "The value for the label. ", Type: types.StringType, Computed: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Computed: true, }, "namespace": { // Property: Namespace Type: types.StringType, Computed: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Computed: true, }, "subnets": { // Property: Subnets // CloudFormation resource type schema: // { // "items": { // "type": "string" // }, // "type": "array" // } Type: types.ListType{ElemType: types.StringType}, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "An array of key-value pairs to apply to this resource.", // "items": { // "additionalProperties": false, // "description": "A key-value pair to associate with a resource.", // "properties": { // "Key": { // "description": "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", // "maxLength": 127, // "minLength": 1, // "type": "string" // }, // "Value": { // "description": "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", // "maxLength": 255, // "minLength": 1, // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "type": "array", // "uniqueItems": true // } Description: "An array of key-value pairs to apply to this resource.", Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Description: "The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", Type: types.StringType, Computed: true, }, "value": { // Property: Value Description: "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ", Type: types.StringType, Computed: true, }, }, tfsdk.ListNestedAttributesOptions{}, ), Computed: true, }, } attributes["id"] = tfsdk.Attribute{ Description: "Uniquely identifies the resource.", Type: types.StringType, Required: true, } schema := tfsdk.Schema{ Description: "Data Source schema for AWS::EKS::FargateProfile", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::EKS::FargateProfile").WithTerraformTypeName("awscc_eks_fargate_profile") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "cluster_name": "ClusterName", "fargate_profile_name": "FargateProfileName", "key": "Key", "labels": "Labels", "namespace": "Namespace", "pod_execution_role_arn": "PodExecutionRoleArn", "selectors": "Selectors", "subnets": "Subnets", "tags": "Tags", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }