// Code generated by generators/singular-data-source/main.go; DO NOT EDIT. package lightsail 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_lightsail_static_ip", staticIpDataSourceType) } // staticIpDataSourceType returns the Terraform awscc_lightsail_static_ip data source type. // This Terraform data source type corresponds to the CloudFormation AWS::Lightsail::StaticIp resource type. func staticIpDataSourceType(ctx context.Context) (tfsdk.DataSourceType, error) { attributes := map[string]tfsdk.Attribute{ "attached_to": { // Property: AttachedTo // CloudFormation resource type schema: // { // "description": "The instance where the static IP is attached.", // "type": "string" // } Description: "The instance where the static IP is attached.", Type: types.StringType, Computed: true, }, "ip_address": { // Property: IpAddress // CloudFormation resource type schema: // { // "description": "The static IP address.", // "type": "string" // } Description: "The static IP address.", Type: types.StringType, Computed: true, }, "is_attached": { // Property: IsAttached // CloudFormation resource type schema: // { // "description": "A Boolean value indicating whether the static IP is attached.", // "type": "boolean" // } Description: "A Boolean value indicating whether the static IP is attached.", Type: types.BoolType, Computed: true, }, "static_ip_arn": { // Property: StaticIpArn // CloudFormation resource type schema: // { // "type": "string" // } Type: types.StringType, Computed: true, }, "static_ip_name": { // Property: StaticIpName // CloudFormation resource type schema: // { // "description": "The name of the static IP address.", // "type": "string" // } Description: "The name of the static IP address.", Type: 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::Lightsail::StaticIp", Version: 1, Attributes: attributes, } var opts DataSourceTypeOptions opts = opts.WithCloudFormationTypeName("AWS::Lightsail::StaticIp").WithTerraformTypeName("awscc_lightsail_static_ip") opts = opts.WithTerraformSchema(schema) opts = opts.WithAttributeNameMap(map[string]string{ "attached_to": "AttachedTo", "ip_address": "IpAddress", "is_attached": "IsAttached", "static_ip_arn": "StaticIpArn", "static_ip_name": "StaticIpName", }) singularDataSourceType, err := NewSingularDataSourceType(ctx, opts...) if err != nil { return nil, err } return singularDataSourceType, nil }