generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 40
/
azure_key_vault_data_source.go
61 lines (56 loc) · 1.79 KB
/
azure_key_vault_data_source.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package connector
import (
"github.com/harness/terraform-provider-harness/helpers"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
func DataSourceConnectorAzureKeyVault() *schema.Resource {
resource := &schema.Resource{
Description: "Data source for looking up an Azure key vault connector.",
ReadContext: resourceConnectorAzureKeyVaultRead,
Schema: map[string]*schema.Schema{
"client_id": {
Description: "Application ID of the Azure App.",
Type: schema.TypeString,
Computed: true,
},
"secret_key": {
Description: "The Harness text secret with the Azure authentication key as its value.",
Type: schema.TypeString,
Computed: true,
},
"tenant_id": {
Description: "The Azure Active Directory (AAD) directory ID where you created your application.",
Type: schema.TypeString,
Computed: true,
},
"vault_name": {
Description: "Name of the vault.",
Type: schema.TypeString,
Computed: true,
},
"subscription": {
Description: "Azure subscription ID.",
Type: schema.TypeString,
Computed: true,
},
"is_default": {
Description: "Specifies whether or not is the default value.",
Type: schema.TypeBool,
Computed: true,
},
"azure_environment_type": {
Description: "Azure environment type. Possible values: AZURE or AZURE_US_GOVERNMENT. Default value: AZURE",
Type: schema.TypeString,
Computed: true,
},
"delegate_selectors": {
Description: "Connect using only the delegates which have these tags.",
Type: schema.TypeSet,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
},
}
helpers.SetMultiLevelDatasourceSchemaIdentifierRequired(resource.Schema)
return resource
}