This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getNamespaceAuthorizationRule.go
60 lines (55 loc) · 2.13 KB
/
getNamespaceAuthorizationRule.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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20170401
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupNamespaceAuthorizationRule(ctx *pulumi.Context, args *LookupNamespaceAuthorizationRuleArgs, opts ...pulumi.InvokeOption) (*LookupNamespaceAuthorizationRuleResult, error) {
var rv LookupNamespaceAuthorizationRuleResult
err := ctx.Invoke("azure-nextgen:notificationhubs/v20170401:getNamespaceAuthorizationRule", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupNamespaceAuthorizationRuleArgs struct {
// Authorization rule name.
AuthorizationRuleName string `pulumi:"authorizationRuleName"`
// The namespace name
NamespaceName string `pulumi:"namespaceName"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Description of a Namespace AuthorizationRules.
type LookupNamespaceAuthorizationRuleResult struct {
// A string that describes the claim type
ClaimType string `pulumi:"claimType"`
// A string that describes the claim value
ClaimValue string `pulumi:"claimValue"`
// The created time for this rule
CreatedTime string `pulumi:"createdTime"`
// Resource Id
Id string `pulumi:"id"`
// A string that describes the authorization rule.
KeyName string `pulumi:"keyName"`
// Resource location
Location *string `pulumi:"location"`
// The last modified time for this rule
ModifiedTime string `pulumi:"modifiedTime"`
// Resource name
Name string `pulumi:"name"`
// A base64-encoded 256-bit primary key for signing and validating the SAS token.
PrimaryKey string `pulumi:"primaryKey"`
// The revision number for the rule
Revision int `pulumi:"revision"`
// The rights associated with the rule.
Rights []string `pulumi:"rights"`
// A base64-encoded 256-bit primary key for signing and validating the SAS token.
SecondaryKey string `pulumi:"secondaryKey"`
// The sku of the created namespace
Sku *SkuResponse `pulumi:"sku"`
// Resource tags
Tags map[string]string `pulumi:"tags"`
// Resource type
Type string `pulumi:"type"`
}