// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package lookoutequipment 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_lookoutequipment_inference_scheduler", inferenceSchedulerDataSourceType) } // inferenceSchedulerDataSourceType returns the Terraform awscc_lookoutequipment_inference_scheduler data source type. // This Terraform data source type corresponds to the CloudFormation AWS::LookoutEquipment::InferenceScheduler resource type. func inferenceSchedulerDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "data_delay_offset_in_minutes": { // Property: DataDelayOffsetInMinutes // CloudFormation resource type schema: // { // "description": "A period of time (in minutes) by which inference on the data is delayed after the data starts.", // "maximum": 60, // "minimum": 0, // "type": "integer" // } Description: "A period of time (in minutes) by which inference on the data is delayed after the data starts.", Type: types.Int64Type, Computed: true, }, "data_input_configuration": { // Property: DataInputConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.", // "properties": { // "InferenceInputNameConfiguration": { // "additionalProperties": false, // "description": "Specifies configuration information for the input data for the inference, including timestamp format and delimiter.", // "properties": { // "ComponentTimestampDelimiter": { // "description": "Indicates the delimiter character used between items in the data.", // "maxLength": 1, // "minLength": 0, // "pattern": "^(\\-|\\_|\\s)?$", // "type": "string" // }, // "TimestampFormat": { // "description": "The format of the timestamp, whether Epoch time, or standard, with or without hyphens (-).", // "pattern": "^EPOCH|yyyy-MM-dd-HH-mm-ss|yyyyMMddHHmmss$", // "type": "string" // } // }, // "type": "object" // }, // "InputTimeZoneOffset": { // "description": "Indicates the difference between your time zone and Greenwich Mean Time (GMT).", // "pattern": "^(\\+|\\-)[0-9]{2}\\:[0-9]{2}$", // "type": "string" // }, // "S3InputConfiguration": { // "additionalProperties": false, // "description": "Specifies configuration information for the input data for the inference, including input data S3 location.", // "properties": { // "Bucket": { // "maxLength": 63, // "minLength": 3, // "pattern": "^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$", // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // } // }, // "required": [ // "Bucket" // ], // "type": "object" // } // }, // "required": [ // "S3InputConfiguration" // ], // "type": "object" // } Description: "Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "inference_input_name_configuration": { // Property: InferenceInputNameConfiguration Description: "Specifies configuration information for the input data for the inference, including timestamp format and delimiter.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "component_timestamp_delimiter": { // Property: ComponentTimestampDelimiter Description: "Indicates the delimiter character used between items in the data.", Type: types.StringType, Computed: true, }, "timestamp_format": { // Property: TimestampFormat Description: "The format of the timestamp, whether Epoch time, or standard, with or without hyphens (-).", Type: types.StringType, Computed: true, }, }, ), Computed: true, }, "input_time_zone_offset": { // Property: InputTimeZoneOffset Description: "Indicates the difference between your time zone and Greenwich Mean Time (GMT).", Type: types.StringType, Computed: true, }, "s3_input_configuration": { // Property: S3InputConfiguration Description: "Specifies configuration information for the input data for the inference, including input data S3 location.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket": { // Property: Bucket Type: types.StringType, Computed: true, }, "prefix": { // Property: Prefix Type: types.StringType, Computed: true, }, }, ), Computed: true, }, }, ), Computed: true, }, "data_output_configuration": { // Property: DataOutputConfiguration // CloudFormation resource type schema: // { // "additionalProperties": false, // "description": "Specifies configuration information for the output results for the inference scheduler, including the S3 location for the output.", // "properties": { // "KmsKeyId": { // "description": "The ID number for the AWS KMS key used to encrypt the inference output.", // "maxLength": 2048, // "minLength": 1, // "pattern": "", // "type": "string" // }, // "S3OutputConfiguration": { // "additionalProperties": false, // "description": "Specifies configuration information for the output results from the inference, including output S3 location.", // "properties": { // "Bucket": { // "maxLength": 63, // "minLength": 3, // "pattern": "^[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]$", // "type": "string" // }, // "Prefix": { // "maxLength": 1024, // "minLength": 0, // "type": "string" // } // }, // "required": [ // "Bucket" // ], // "type": "object" // } // }, // "required": [ // "S3OutputConfiguration" // ], // "type": "object" // } Description: "Specifies configuration information for the output results for the inference scheduler, including the S3 location for the output.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "kms_key_id": { // Property: KmsKeyId Description: "The ID number for the AWS KMS key used to encrypt the inference output.", Type: types.StringType, Computed: true, }, "s3_output_configuration": { // Property: S3OutputConfiguration Description: "Specifies configuration information for the output results from the inference, including output S3 location.", Attributes: tfsdk.SingleNestedAttributes( map[string]tfsdk.Attribute{ "bucket": { // Property: Bucket Type: types.StringType, Computed: true, }, "prefix": { // Property: Prefix Type: types.StringType, Computed: true, }, }, ), Computed: true, }, }, ), Computed: true, }, "data_upload_frequency": { // Property: DataUploadFrequency // CloudFormation resource type schema: // { // "description": "How often data is uploaded to the source S3 bucket for the input data.", // "enum": [ // "PT5M", // "PT10M", // "PT15M", // "PT30M", // "PT1H" // ], // "type": "string" // } Description: "How often data is uploaded to the source S3 bucket for the input data.", Type: types.StringType, Computed: true, }, "inference_scheduler_arn": { // Property: InferenceSchedulerArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) of the inference scheduler being created.", // "maxLength": 200, // "minLength": 1, // "pattern": "arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9\\-]*:[0-9]{12}:inference-scheduler\\/.+", // "type": "string" // } Description: "The Amazon Resource Name (ARN) of the inference scheduler being created.", Type: types.StringType, Computed: true, }, "inference_scheduler_name": { // Property: InferenceSchedulerName // CloudFormation resource type schema: // { // "description": "The name of the inference scheduler being created.", // "maxLength": 200, // "minLength": 1, // "pattern": "^[0-9a-zA-Z_-]{1,200}$", // "type": "string" // } Description: "The name of the inference scheduler being created.", Type: types.StringType, Computed: true, }, "model_name": { // Property: ModelName // CloudFormation resource type schema: // { // "description": "The name of the previously trained ML model being used to create the inference scheduler.", // "maxLength": 200, // "minLength": 1, // "pattern": "^[0-9a-zA-Z_-]{1,200}$", // "type": "string" // } Description: "The name of the previously trained ML model being used to create the inference scheduler.", Type: types.StringType, Computed: true, }, "role_arn": { // Property: RoleArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.", // "maxLength": 2048, // "minLength": 20, // "pattern": "arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+", // "type": "string" // } Description: "The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.", Type: types.StringType, Computed: true, }, "server_side_kms_key_id": { // Property: ServerSideKmsKeyId // CloudFormation resource type schema: // { // "description": "Provides the identifier of the AWS KMS customer master key (CMK) used to encrypt inference scheduler data by Amazon Lookout for Equipment.", // "maxLength": 2048, // "minLength": 1, // "pattern": "", // "type": "string" // } Description: "Provides the identifier of the AWS KMS customer master key (CMK) used to encrypt inference scheduler data by Amazon Lookout for Equipment.", Type: types.StringType, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "description": "Any tags associated with the inference scheduler.", // "insertionOrder": false, // "items": { // "additionalProperties": false, // "description": "A tag is a key-value pair that can be added to a resource as metadata.", // "properties": { // "Key": { // "description": "The key for the specified tag.", // "maxLength": 128, // "minLength": 1, // "pattern": "", // "type": "string" // }, // "Value": { // "description": "The value for the specified tag.", // "maxLength": 256, // "minLength": 0, // "pattern": "[\\s\\w+-=\\.:/@]*", // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "maxItems": 200, // "type": "array", // "uniqueItems": true // } Description: "Any tags associated with the inference scheduler.", Attributes: tfsdk.SetNestedAttributes( map[string]tfsdk.Attribute{ "key": { // Property: Key Description: "The key for the specified tag.", Type: types.StringType, Computed: true, }, "value": { // Property: Value Description: "The value for the specified tag.", Type: types.StringType, Computed: true, }, }, tfsdk.SetNestedAttributesOptions{}, ), 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::LookoutEquipment::InferenceScheduler", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::LookoutEquipment::InferenceScheduler").WithTerraformTypeName("awscc_lookoutequipment_inference_scheduler") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "bucket": "Bucket", "component_timestamp_delimiter": "ComponentTimestampDelimiter", "data_delay_offset_in_minutes": "DataDelayOffsetInMinutes", "data_input_configuration": "DataInputConfiguration", "data_output_configuration": "DataOutputConfiguration", "data_upload_frequency": "DataUploadFrequency", "inference_input_name_configuration": "InferenceInputNameConfiguration", "inference_scheduler_arn": "InferenceSchedulerArn", "inference_scheduler_name": "InferenceSchedulerName", "input_time_zone_offset": "InputTimeZoneOffset", "key": "Key", "kms_key_id": "KmsKeyId", "model_name": "ModelName", "prefix": "Prefix", "role_arn": "RoleArn", "s3_input_configuration": "S3InputConfiguration", "s3_output_configuration": "S3OutputConfiguration", "server_side_kms_key_id": "ServerSideKmsKeyId", "tags": "Tags", "timestamp_format": "TimestampFormat", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }