Skip to content

Commit

Permalink
coh/preferences: Use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Sep 12, 2024
1 parent 96fcade commit 394270a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/costoptimizationhub/preferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r *resourcePreferences) Metadata(_ context.Context, req resource.MetadataR
func (r *resourcePreferences) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"id": framework.IDAttribute(),
names.AttrID: framework.IDAttribute(),
"member_account_discount_visibility": schema.StringAttribute{
Optional: true,
Computed: true,
Expand Down Expand Up @@ -237,7 +237,7 @@ func findPreferences(ctx context.Context, conn *costoptimizationhub.Client) (*co
}

func (r *resourcePreferences) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) {
resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp)
resource.ImportStatePassthroughID(ctx, path.Root(names.AttrID), req, resp)
}

type resourcePreferencesData struct {
Expand Down

0 comments on commit 394270a

Please sign in to comment.