|
| 1 | +package tfsdk |
| 2 | + |
| 3 | +// ValidateDataSourceConfigRequest represents a request to validate the |
| 4 | +// configuration of a data source. An instance of this request struct is |
| 5 | +// supplied as an argument to the DataSource ValidateConfig receiver method |
| 6 | +// or automatically passed through to each ConfigValidator. |
| 7 | +type ValidateDataSourceConfigRequest struct { |
| 8 | + // Config is the configuration the user supplied for the data source. |
| 9 | + // |
| 10 | + // This configuration may contain unknown values if a user uses |
| 11 | + // interpolation or other functionality that would prevent Terraform |
| 12 | + // from knowing the value at request time. |
| 13 | + Config Config |
| 14 | + |
| 15 | + // TypeName is the data source type name. |
| 16 | + TypeName string |
| 17 | +} |
| 18 | + |
| 19 | +// ValidateProviderConfigRequest represents a request to validate the |
| 20 | +// configuration of a provider. An instance of this request struct is |
| 21 | +// supplied as an argument to the Provider ValidateConfig receiver method |
| 22 | +// or automatically passed through to each ConfigValidator. |
| 23 | +type ValidateProviderConfigRequest struct { |
| 24 | + // Config is the configuration the user supplied for the provider. |
| 25 | + // |
| 26 | + // This configuration may contain unknown values if a user uses |
| 27 | + // interpolation or other functionality that would prevent Terraform |
| 28 | + // from knowing the value at request time. |
| 29 | + Config Config |
| 30 | +} |
| 31 | + |
| 32 | +// ValidateResourceConfigRequest represents a request to validate the |
| 33 | +// configuration of a resource. An instance of this request struct is |
| 34 | +// supplied as an argument to the Resource ValidateConfig receiver method |
| 35 | +// or automatically passed through to each ConfigValidator. |
| 36 | +type ValidateResourceConfigRequest struct { |
| 37 | + // Config is the configuration the user supplied for the resource. |
| 38 | + // |
| 39 | + // This configuration may contain unknown values if a user uses |
| 40 | + // interpolation or other functionality that would prevent Terraform |
| 41 | + // from knowing the value at request time. |
| 42 | + Config Config |
| 43 | + |
| 44 | + // TypeName is the resource type name. |
| 45 | + TypeName string |
| 46 | +} |
0 commit comments