This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
getPolicyDefinition.go
46 lines (41 loc) · 1.84 KB
/
getPolicyDefinition.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
// *** 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 v20200901
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupPolicyDefinition(ctx *pulumi.Context, args *LookupPolicyDefinitionArgs, opts ...pulumi.InvokeOption) (*LookupPolicyDefinitionResult, error) {
var rv LookupPolicyDefinitionResult
err := ctx.Invoke("azure-nextgen:authorization/v20200901:getPolicyDefinition", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupPolicyDefinitionArgs struct {
// The name of the policy definition to get.
PolicyDefinitionName string `pulumi:"policyDefinitionName"`
}
// The policy definition.
type LookupPolicyDefinitionResult struct {
// The policy definition description.
Description *string `pulumi:"description"`
// The display name of the policy definition.
DisplayName *string `pulumi:"displayName"`
// The ID of the policy definition.
Id string `pulumi:"id"`
// The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.
Metadata interface{} `pulumi:"metadata"`
// The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.
Mode *string `pulumi:"mode"`
// The name of the policy definition.
Name string `pulumi:"name"`
// The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
Parameters map[string]ParameterDefinitionsValueResponse `pulumi:"parameters"`
// The policy rule.
PolicyRule interface{} `pulumi:"policyRule"`
// The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
PolicyType *string `pulumi:"policyType"`
// The type of the resource (Microsoft.Authorization/policyDefinitions).
Type string `pulumi:"type"`
}