/
getKey.go
51 lines (46 loc) · 1.88 KB
/
getKey.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
// nolint: lll
package keyvault
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// Use this data source to access information about an existing Key Vault Key.
//
// > This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/d/key_vault_key.html.markdown.
func LookupKey(ctx *pulumi.Context, args *LookupKeyArgs, opts ...pulumi.InvokeOption) (*LookupKeyResult, error) {
var rv LookupKeyResult
err := ctx.Invoke("azure:keyvault/getKey:getKey", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getKey.
type LookupKeyArgs struct {
// Specifies the ID of the Key Vault instance where the Secret resides, available on the `keyvault.KeyVault` Data Source / Resource.
KeyVaultId string `pulumi:"keyVaultId"`
// Specifies the name of the Key Vault Key.
Name string `pulumi:"name"`
}
// A collection of values returned by getKey.
type LookupKeyResult struct {
// The RSA public exponent of this Key Vault Key.
E string `pulumi:"e"`
// id is the provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// A list of JSON web key operations assigned to this Key Vault Key
KeyOpts []string `pulumi:"keyOpts"`
// Specifies the Size of this Key Vault Key.
KeySize int `pulumi:"keySize"`
// Specifies the Key Type of this Key Vault Key
KeyType string `pulumi:"keyType"`
KeyVaultId string `pulumi:"keyVaultId"`
// The RSA modulus of this Key Vault Key.
N string `pulumi:"n"`
Name string `pulumi:"name"`
// A mapping of tags assigned to this Key Vault Key.
Tags map[string]string `pulumi:"tags"`
// The current version of the Key Vault Key.
Version string `pulumi:"version"`
}