// Code generated by generators/resource/main.go; DO NOT EDIT. package apigateway 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_apigateway_account", accountResourceType) } // accountResourceType returns the Terraform awscc_apigateway_account resource type. // This Terraform resource type corresponds to the CloudFormation AWS::ApiGateway::Account resource type. func accountResourceType(ctx context.Context) (tfsdk.ResourceType, error) { attributes := map[string]tfsdk.Attribute{ "cloudwatch_role_arn": { // Property: CloudWatchRoleArn // CloudFormation resource type schema: // { // "description": "The Amazon Resource Name (ARN) of an IAM role that has write access to CloudWatch Logs in your account.", // "type": "string" // } Description: "The Amazon Resource Name (ARN) of an IAM role that has write access to CloudWatch Logs in your account.", Type: types.StringType, Optional: true, }, "id": { // Property: Id // CloudFormation resource type schema: // { // "description": "Primary identifier which is manually generated.", // "type": "string" // } Description: "Primary identifier which is manually generated.", Type: types.StringType, Computed: true, PlanModifiers: []tfsdk.AttributePlanModifier{ tfsdk.UseStateForUnknown(), }, }, } schema := tfsdk.Schema{ Description: "Resource Type definition for AWS::ApiGateway::Account", Version: 1, Attributes: attributes, } var opts ResourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::ApiGateway::Account").WithTerraformTypeName("awscc_apigateway_account") opts = opts.WithTerraformSchema(schema) opts = opts.WithSyntheticIDAttribute(false) opts = opts.WithAttributeNameMap(map[string]string{ "cloudwatch_role_arn": "CloudWatchRoleArn", "id": "Id", }) opts = opts.WithCreateTimeoutInMinutes(0).WithDeleteTimeoutInMinutes(0) opts = opts.WithUpdateTimeoutInMinutes(0) resourceType, err := NewResourceType(ctx, opts...) if err != nil { return nil, err } return resourceType, nil }