/
getStore.go
72 lines (67 loc) · 2.36 KB
/
getStore.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
62
63
64
65
66
67
68
69
70
71
72
// *** 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! ***
package datalake
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Use this data source to access information about an existing Data Lake Store.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datalake"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := datalake.LookupStore(ctx, &datalake.LookupStoreArgs{
// Name: "testdatalake",
// ResourceGroupName: "testdatalake",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("dataLakeStoreId", example.Id)
// return nil
// })
// }
// ```
func LookupStore(ctx *pulumi.Context, args *LookupStoreArgs, opts ...pulumi.InvokeOption) (*LookupStoreResult, error) {
var rv LookupStoreResult
err := ctx.Invoke("azure:datalake/getStore:getStore", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getStore.
type LookupStoreArgs struct {
// The name of the Data Lake Store.
Name string `pulumi:"name"`
// The Name of the Resource Group where the Data Lake Store exists.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// A collection of values returned by getStore.
type LookupStoreResult struct {
// the Encryption State of this Data Lake Store Account, such as `Enabled` or `Disabled`.
EncryptionState string `pulumi:"encryptionState"`
// the Encryption Type used for this Data Lake Store Account.
EncryptionType string `pulumi:"encryptionType"`
// are Azure Service IP's allowed through the firewall?
FirewallAllowAzureIps string `pulumi:"firewallAllowAzureIps"`
// the state of the firewall, such as `Enabled` or `Disabled`.
FirewallState string `pulumi:"firewallState"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Location string `pulumi:"location"`
Name string `pulumi:"name"`
ResourceGroupName string `pulumi:"resourceGroupName"`
// A mapping of tags to assign to the Data Lake Store.
Tags map[string]string `pulumi:"tags"`
// Current monthly commitment tier for the account.
Tier string `pulumi:"tier"`
}