generated from hashicorp/terraform-provider-scaffolding
/
flow_vpc_interface_plural_data_source_gen.go
54 lines (42 loc) · 1.67 KB
/
flow_vpc_interface_plural_data_source_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by generators/plural-data-source/main.go; DO NOT EDIT.
package mediaconnect
import (
"context"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"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.AddDataSourceFactory("awscc_mediaconnect_flow_vpc_interfaces", flowVpcInterfacesDataSource)
}
// flowVpcInterfacesDataSource returns the Terraform awscc_mediaconnect_flow_vpc_interfaces data source.
// This Terraform data source corresponds to the CloudFormation AWS::MediaConnect::FlowVpcInterface resource.
func flowVpcInterfacesDataSource(ctx context.Context) (datasource.DataSource, error) {
attributes := map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Uniquely identifies the data source.",
Computed: true,
},
"ids": schema.SetAttribute{
Description: "Set of Resource Identifiers.",
ElementType: types.StringType,
Computed: true,
},
}
schema := schema.Schema{
Description: "Plural Data Source schema for AWS::MediaConnect::FlowVpcInterface",
Attributes: attributes,
}
var opts generic.DataSourceOptions
opts = opts.WithCloudFormationTypeName("AWS::MediaConnect::FlowVpcInterface").WithTerraformTypeName("awscc_mediaconnect_flow_vpc_interfaces")
opts = opts.WithTerraformSchema(schema)
v, err := generic.NewPluralDataSource(ctx, opts...)
if err != nil {
return nil, err
}
return v, nil
}