Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema: remove Computed from data source attributes #41

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions internal/provider/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ type TfSplitPoliciesDataSource struct {

// TfSplitPoliciesDataSourceModel describes the data source data model.
type TfSplitPoliciesDataSourceModel struct {
ID types.String `tfsdk:"id"`
MaximumChunkSize types.Int64 `tfsdk:"maximum_chunk_size"`
Hash types.String `tfsdk:"hash"`
Policies []types.String `tfsdk:"policies"`
Expand All @@ -51,16 +50,11 @@ func (*TfSplitPoliciesDataSource) Schema(
resp.Schema = schema.Schema{
MarkdownDescription: "Splitting multiple JSON AWS policies into chunks of a given maximum size",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
},
"hash": schema.StringAttribute{
MarkdownDescription: "The hash of all the inputs, usefull for update triggering",
Computed: true,
},
"chunks": schema.MapAttribute{
ElementType: chunksType,
Computed: true,
},
"policies": schema.ListAttribute{
ElementType: types.StringType,
Expand Down Expand Up @@ -143,7 +137,6 @@ func (*TfSplitPoliciesDataSource) Read(
}

data.Chunks = mv
data.ID = types.StringValue("some-id")

resp.Diagnostics.Append(resp.State.Set(ctx, &data)...)
}
Loading