// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package frauddetector 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_frauddetector_outcome", outcomeDataSourceType) } // outcomeDataSourceType returns the Terraform awscc_frauddetector_outcome data source type. // This Terraform data source type corresponds to the CloudFormation AWS::FraudDetector::Outcome resource type. func outcomeDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "arn": { // Property: Arn // CloudFormation resource type schema: // { // "description": "The outcome ARN.", // "type": "string" // } Description: "The outcome ARN.", Type: types.StringType, Computed: true, }, "created_time": { // Property: CreatedTime // CloudFormation resource type schema: // { // "description": "The timestamp when the outcome was created.", // "type": "string" // } Description: "The timestamp when the outcome was created.", Type: types.StringType, Computed: true, }, "description": { // Property: Description // CloudFormation resource type schema: // { // "description": "The outcome description.", // "maxLength": 128, // "minLength": 1, // "type": "string" // } Description: "The outcome description.", Type: types.StringType, Computed: true, }, "last_updated_time": { // Property: LastUpdatedTime // CloudFormation resource type schema: // { // "description": "The timestamp when the outcome was last updated.", // "type": "string" // } Description: "The timestamp when the outcome was last updated.", Type: types.StringType, Computed: true, }, "name": { // Property: Name // CloudFormation resource type schema: // { // "description": "The name of the outcome.", // "maxLength": 64, // "minLength": 1, // "pattern": "^[0-9a-z_-]+$", // "type": "string" // } Description: "The name of the outcome.", Type: types.StringType, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "Tags associated with this outcome.", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "properties": { // "Key": { // "maxLength": 128, // "minLength": 1, // "type": "string" // }, // "Value": { // "maxLength": 256, // "minLength": 0, // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "maxItems": 200, // "type": "array", // "uniqueItems": false // } Description: "Tags associated with this outcome.", Attributes: tfsdk.ListNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Type: types.StringType, Computed: true, }, "value": { // Property: Value 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::FraudDetector::Outcome", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::FraudDetector::Outcome").WithTerraformTypeName("awscc_frauddetector_outcome") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "created_time": "CreatedTime", "description": "Description", "key": "Key", "last_updated_time": "LastUpdatedTime", "name": "Name", "tags": "Tags", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }