// Code generated by generators/resource/main.go; DO NOT EDIT. package eventschemas 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.AddResourceTypeFactory("awscc_eventschemas_registry_policy", registryPolicyResourceType) } // registryPolicyResourceType returns the Terraform awscc_eventschemas_registry_policy resource type. // This Terraform resource type corresponds to the CloudFormation AWS::EventSchemas::RegistryPolicy resource type. func registryPolicyResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "id": { // Property: Id // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, "policy": { // Property: Policy // CloudFormation resource type schema: // { // "type": "object" // } Type: types.MapType{ElemType: types.StringType}, Required: true, }, "registry_name": { // Property: RegistryName // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Required: true, }, "revision_id": { // Property: RevisionId // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Optional: true, }, } schema := tfsdk.Schema{ Description: "Resource Type definition for AWS::EventSchemas::RegistryPolicy", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::EventSchemas::RegistryPolicy").WithTerraformTypeName("awscc_eventschemas_registry_policy") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(false) opts = opts.WithAttributeNameMap(map[string]string{ "id": "Id", "policy": "Policy", "registry_name": "RegistryName", "revision_id": "RevisionId", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) opts = opts.WithUpdateTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }