// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package iot 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_iot_authorizer", authorizerDataSourceType) } // authorizerDataSourceType returns the Terraform awscc_iot_authorizer data source type. // This Terraform data source type corresponds to the CloudFormation AWS::IoT::Authorizer resource type. func authorizerDataSourceType(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, }, "authorizer_function_arn": { // Property: AuthorizerFunctionArn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "authorizer_name": { // Property: AuthorizerName // CloudFormation resource type schema: // { // "maxLength": 128, // "minLength": 1, // "pattern": "[\\w=,@-]+", // "type": "string" // } Type: types.StringType, Computed: true, }, "enable_caching_for_http": { // Property: EnableCachingForHttp // CloudFormation resource type schema: // { // "type": "boolean" // } Type: types.BoolType, Computed: true, }, "signing_disabled": { // Property: SigningDisabled // CloudFormation resource type schema: // { // "type": "boolean" // } Type: types.BoolType, Computed: true, }, "status": { // Property: Status // CloudFormation resource type schema: // { // "enum": [ // "ACTIVE", // "INACTIVE" // ], // "type": "string" // } Type: types.StringType, Computed: true, }, "tags": { // Property: Tags // CloudFormation resource type schema: // { // "items": { // "additionalProperties": false, // "properties": { // "Key": { // "type": "string" // }, // "Value": { // "type": "string" // } // }, // "required": [ // "Key", // "Value" // ], // "type": "object" // }, // "type": "array" // } 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, }, "token_key_name": { // Property: TokenKeyName // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "token_signing_public_keys": { // Property: TokenSigningPublicKeys // CloudFormation resource type schema: // { // "additionalProperties": false, // "patternProperties": { // "": { // "maxLength": 5120, // "type": "string" // } // }, // "type": "object" // } // Pattern: "" Type: types.MapType{ElemType: types.StringType}, 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::IoT::Authorizer", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::IoT::Authorizer").WithTerraformTypeName("awscc_iot_authorizer") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "arn": "Arn", "authorizer_function_arn": "AuthorizerFunctionArn", "authorizer_name": "AuthorizerName", "enable_caching_for_http": "EnableCachingForHttp", "key": "Key", "signing_disabled": "SigningDisabled", "status": "Status", "tags": "Tags", "token_key_name": "TokenKeyName", "token_signing_public_keys": "TokenSigningPublicKeys", "value": "Value", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }