in internal/provider/provider.go [58:80]
func (p *ModuleTelemetryProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) {
resp.Schema = schema.Schema{
Attributes: map[string]schema.Attribute{
"endpoint": schema.StringAttribute{
MarkdownDescription: "Telemetry endpoint to send data to.",
Optional: true,
},
"enabled": schema.BoolAttribute{
MarkdownDescription: "Sending telemetry or not, set this argument to `false` would turn telemetry off. Defaults to `true`.",
Optional: true,
},
"module_source_regex": schema.ListAttribute{
ElementType: types.StringType,
Optional: true,
MarkdownDescription: "List of regex as allow list for module source. Only module source that match one of the regex will be collected.",
Validators: []validator.List{
listvalidators.SizeAtLeast(1),
listvalidators.ValueStringsAre(&MustBeValidRegex{}),
},
},
},
}
}