Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupPolicyAssignmentResult ¶
type LookupPolicyAssignmentResult struct { // This message will be part of response in case of policy violation. Description *string `pulumi:"description"` // The display name of the policy assignment. DisplayName *string `pulumi:"displayName"` // The name of the policy assignment. Name *string `pulumi:"name"` // Required if a parameter is used in policy rule. Parameters map[string]interface{} `pulumi:"parameters"` // The ID of the policy definition. PolicyDefinitionId *string `pulumi:"policyDefinitionId"` // The scope for the policy assignment. Scope *string `pulumi:"scope"` // The type of the policy assignment. Type *string `pulumi:"type"` }
The policy assignment.
func LookupPolicyAssignment ¶
func LookupPolicyAssignment(ctx *pulumi.Context, args *LookupPolicyAssignmentArgs, opts ...pulumi.InvokeOption) (*LookupPolicyAssignmentResult, error)
type LookupPolicyDefinitionArgs ¶
type LookupPolicyDefinitionArgs struct { // The name of the policy definition to get. PolicyDefinitionName string `pulumi:"policyDefinitionName"` }
type LookupPolicyDefinitionResult ¶
type LookupPolicyDefinitionResult struct { // The policy definition description. Description *string `pulumi:"description"` // The display name of the policy definition. DisplayName *string `pulumi:"displayName"` // The policy definition metadata. Metadata map[string]interface{} `pulumi:"metadata"` // The policy definition mode. Possible values are NotSpecified, Indexed, and All. Mode *string `pulumi:"mode"` // The name of the policy definition. Name string `pulumi:"name"` // Required if a parameter is used in policy rule. Parameters map[string]interface{} `pulumi:"parameters"` // The policy rule. PolicyRule map[string]interface{} `pulumi:"policyRule"` // The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. PolicyType *string `pulumi:"policyType"` }
The policy definition.
func LookupPolicyDefinition ¶
func LookupPolicyDefinition(ctx *pulumi.Context, args *LookupPolicyDefinitionArgs, opts ...pulumi.InvokeOption) (*LookupPolicyDefinitionResult, error)
type PolicyAssignment ¶
type PolicyAssignment struct { pulumi.CustomResourceState // This message will be part of response in case of policy violation. Description pulumi.StringPtrOutput `pulumi:"description"` // The display name of the policy assignment. DisplayName pulumi.StringPtrOutput `pulumi:"displayName"` // The name of the policy assignment. Name pulumi.StringPtrOutput `pulumi:"name"` // Required if a parameter is used in policy rule. Parameters pulumi.MapOutput `pulumi:"parameters"` // The ID of the policy definition. PolicyDefinitionId pulumi.StringPtrOutput `pulumi:"policyDefinitionId"` // The scope for the policy assignment. Scope pulumi.StringPtrOutput `pulumi:"scope"` // The type of the policy assignment. Type pulumi.StringPtrOutput `pulumi:"type"` }
The policy assignment.
func GetPolicyAssignment ¶
func GetPolicyAssignment(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PolicyAssignmentState, opts ...pulumi.ResourceOption) (*PolicyAssignment, error)
GetPolicyAssignment gets an existing PolicyAssignment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPolicyAssignment ¶
func NewPolicyAssignment(ctx *pulumi.Context, name string, args *PolicyAssignmentArgs, opts ...pulumi.ResourceOption) (*PolicyAssignment, error)
NewPolicyAssignment registers a new resource with the given unique name, arguments, and options.
type PolicyAssignmentArgs ¶
type PolicyAssignmentArgs struct { // This message will be part of response in case of policy violation. Description pulumi.StringPtrInput // The display name of the policy assignment. DisplayName pulumi.StringPtrInput // The name of the policy assignment. Name pulumi.StringPtrInput // Required if a parameter is used in policy rule. Parameters pulumi.MapInput // The name of the policy assignment. PolicyAssignmentName pulumi.StringInput // The ID of the policy definition. PolicyDefinitionId pulumi.StringPtrInput // The scope for the policy assignment. Scope pulumi.StringInput // The type of the policy assignment. Type pulumi.StringPtrInput }
The set of arguments for constructing a PolicyAssignment resource.
func (PolicyAssignmentArgs) ElementType ¶
func (PolicyAssignmentArgs) ElementType() reflect.Type
type PolicyAssignmentState ¶
type PolicyAssignmentState struct { // This message will be part of response in case of policy violation. Description pulumi.StringPtrInput // The display name of the policy assignment. DisplayName pulumi.StringPtrInput // The name of the policy assignment. Name pulumi.StringPtrInput // Required if a parameter is used in policy rule. Parameters pulumi.MapInput // The ID of the policy definition. PolicyDefinitionId pulumi.StringPtrInput // The scope for the policy assignment. Scope pulumi.StringPtrInput // The type of the policy assignment. Type pulumi.StringPtrInput }
func (PolicyAssignmentState) ElementType ¶
func (PolicyAssignmentState) ElementType() reflect.Type
type PolicyDefinition ¶
type PolicyDefinition struct { pulumi.CustomResourceState // The policy definition description. Description pulumi.StringPtrOutput `pulumi:"description"` // The display name of the policy definition. DisplayName pulumi.StringPtrOutput `pulumi:"displayName"` // The policy definition metadata. Metadata pulumi.MapOutput `pulumi:"metadata"` // The policy definition mode. Possible values are NotSpecified, Indexed, and All. Mode pulumi.StringPtrOutput `pulumi:"mode"` // The name of the policy definition. Name pulumi.StringOutput `pulumi:"name"` // Required if a parameter is used in policy rule. Parameters pulumi.MapOutput `pulumi:"parameters"` // The policy rule. PolicyRule pulumi.MapOutput `pulumi:"policyRule"` // The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. PolicyType pulumi.StringPtrOutput `pulumi:"policyType"` }
The policy definition.
func GetPolicyDefinition ¶
func GetPolicyDefinition(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PolicyDefinitionState, opts ...pulumi.ResourceOption) (*PolicyDefinition, error)
GetPolicyDefinition gets an existing PolicyDefinition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPolicyDefinition ¶
func NewPolicyDefinition(ctx *pulumi.Context, name string, args *PolicyDefinitionArgs, opts ...pulumi.ResourceOption) (*PolicyDefinition, error)
NewPolicyDefinition registers a new resource with the given unique name, arguments, and options.
type PolicyDefinitionArgs ¶
type PolicyDefinitionArgs struct { // The policy definition description. Description pulumi.StringPtrInput // The display name of the policy definition. DisplayName pulumi.StringPtrInput // The policy definition metadata. Metadata pulumi.MapInput // The policy definition mode. Possible values are NotSpecified, Indexed, and All. Mode pulumi.StringPtrInput // Required if a parameter is used in policy rule. Parameters pulumi.MapInput // The name of the policy definition to create. PolicyDefinitionName pulumi.StringInput // The policy rule. PolicyRule pulumi.MapInput // The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. PolicyType pulumi.StringPtrInput }
The set of arguments for constructing a PolicyDefinition resource.
func (PolicyDefinitionArgs) ElementType ¶
func (PolicyDefinitionArgs) ElementType() reflect.Type
type PolicyDefinitionState ¶
type PolicyDefinitionState struct { // The policy definition description. Description pulumi.StringPtrInput // The display name of the policy definition. DisplayName pulumi.StringPtrInput // The policy definition metadata. Metadata pulumi.MapInput // The policy definition mode. Possible values are NotSpecified, Indexed, and All. Mode pulumi.StringPtrInput // The name of the policy definition. Name pulumi.StringPtrInput // Required if a parameter is used in policy rule. Parameters pulumi.MapInput // The policy rule. PolicyRule pulumi.MapInput // The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. PolicyType pulumi.StringPtrInput }
func (PolicyDefinitionState) ElementType ¶
func (PolicyDefinitionState) ElementType() reflect.Type