Fix data source references (#61)
Co-authored-by: Henrique Santos <henrique.santos@freiheit.com>
This commit is contained in:
parent
49ec81ae25
commit
175ce93f85
21 changed files with 69 additions and 69 deletions
|
|
@ -30,12 +30,12 @@ type instanceDataSource struct {
|
|||
client *opensearch.APIClient
|
||||
}
|
||||
|
||||
// Metadata returns the resource type name.
|
||||
// Metadata returns the data source type name.
|
||||
func (r *instanceDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
|
||||
resp.TypeName = req.ProviderTypeName + "_opensearch_instance"
|
||||
}
|
||||
|
||||
// Configure adds the provider configured client to the resource.
|
||||
// Configure adds the provider configured client to the data source.
|
||||
func (r *instanceDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) {
|
||||
// Prevent panic if the provider has not been configured.
|
||||
if req.ProviderData == nil {
|
||||
|
|
@ -71,11 +71,11 @@ func (r *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
tflog.Info(ctx, "OpenSearch instance client configured")
|
||||
}
|
||||
|
||||
// Schema defines the schema for the resource.
|
||||
// Schema defines the schema for the data source.
|
||||
func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "OpenSearch instance data source schema.",
|
||||
"id": "Terraform's internal resource identifier. It is structured as \"`project_id`,`instance_id`\".",
|
||||
"id": "Terraform's internal data source. identifier. It is structured as \"`project_id`,`instance_id`\".",
|
||||
"instance_id": "ID of the OpenSearch instance.",
|
||||
"project_id": "STACKIT Project ID to which the instance is associated.",
|
||||
"name": "Instance name.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue