Skip to content

Commit

Permalink
Additional comments for Terraform Plugin Framework-related code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jul 28, 2022
1 parent c8df06f commit 06c1276
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/provider/fwprovider/duration.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO: Move this to a shared 'types' package.
package fwprovider

import (
Expand Down
1 change: 1 addition & 0 deletions internal/provider/fwprovider/duration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO: Move this to a shared 'types' package.
package fwprovider_test

import (
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/fwprovider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (p *provider) GetDataSources(ctx context.Context) (map[string]tfsdk.DataSou
var diags diag.Diagnostics
dataSources := make(map[string]tfsdk.DataSourceType)

// TODO
// TODO: This should be done via service-level self-registration and initializatin in the primary provider.
t, err := meta.NewDataSourceARNType(ctx)

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ func New(_ context.Context) (*schema.Provider, error) {
"aws_location_route_calculator": location.DataSourceRouteCalculator(),
"aws_location_tracker": location.DataSourceTracker(),

// "aws_arn": meta.DataSourceARN(),
// "aws_arn": meta.DataSourceARN(), // Now implemented using Terraform Plugin Framework.
"aws_billing_service_account": meta.DataSourceBillingServiceAccount(),
"aws_default_tags": meta.DataSourceDefaultTags(),
"aws_ip_ranges": meta.DataSourceIPRanges(),
Expand Down
1 change: 1 addition & 0 deletions internal/service/meta/arn.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO: Move this to a shared 'types' package.
package meta

import (
Expand Down
1 change: 1 addition & 0 deletions internal/service/meta/arn_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO: Move this to a shared 'types' package.
package meta_test

import (
Expand Down

0 comments on commit 06c1276

Please sign in to comment.