Skip to content

Commit

Permalink
chore: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonaj committed Aug 6, 2024
1 parent 0ed07ba commit 0c555ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions internal/service/rds/cluster_parameter_group_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/hashicorp/terraform-provider-aws/names"
)

// @FrameworkDataSource(name=Cluster Parameter Group)
func newDataSourceClusterParameterGroup(_ context.Context) (datasource.DataSourceWithConfigure, error) {
return &dataSourceClusterParameterGroup{}, nil
// @FrameworkDataSource("aws_rds_cluster_parameter_group",name=Cluster Parameter Group)
func newClusterParameterGroupDataSource(_ context.Context) (datasource.DataSourceWithConfigure, error) {
return &clusterParameterGroupDataSource{}, nil
}

const (
Expand All @@ -26,15 +26,15 @@ const (
dbClusterParameterGroupPrefix = "DBClusterParameterGroup"
)

type dataSourceClusterParameterGroup struct {
type clusterParameterGroupDataSource struct {
framework.DataSourceWithConfigure
}

func (d *dataSourceClusterParameterGroup) Metadata(_ context.Context, _ datasource.MetadataRequest, response *datasource.MetadataResponse) {
func (d *clusterParameterGroupDataSource) Metadata(_ context.Context, _ datasource.MetadataRequest, response *datasource.MetadataResponse) {
response.TypeName = "aws_rds_cluster_parameter_group"
}

func (d *dataSourceClusterParameterGroup) Schema(_ context.Context, _ datasource.SchemaRequest, response *datasource.SchemaResponse) {
func (d *clusterParameterGroupDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, response *datasource.SchemaResponse) {
response.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
names.AttrARN: framework.ARNAttributeComputedOnly(),
Expand All @@ -51,7 +51,7 @@ func (d *dataSourceClusterParameterGroup) Schema(_ context.Context, _ datasource
}
}

func (d *dataSourceClusterParameterGroup) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse) {
func (d *clusterParameterGroupDataSource) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse) {
conn := d.Meta().RDSClient(ctx)
var data dataSourceClusterParameterGroupData

Expand Down
2 changes: 1 addition & 1 deletion internal/service/rds/service_package_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c555ca

Please sign in to comment.