Class AssignmentArgs
Inherited Members
Namespace: Pulumi.Azure.Policy
Assembly: Pulumi.Azure.dll
Syntax
public sealed class AssignmentArgs : ResourceArgs
Constructors
View SourceAssignmentArgs()
Declaration
public AssignmentArgs()
Properties
View SourceDescription
A description to use for this Policy Assignment. Changing this forces a new resource to be created.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DisplayName
A friendly display name to use for this Policy Assignment. Changing this forces a new resource to be created.
Declaration
public Input<string> DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Identity
An identity block.
Declaration
public Input<AssignmentIdentityArgs> Identity { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<AssignmentIdentityArgs> |
Location
The Azure location where this policy assignment should exist. This is required when an Identity is assigned. Changing this forces a new resource to be created.
Declaration
public Input<string> Location { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
The name of the Policy Assignment. Changing this forces a new resource to be created.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NotScopes
A list of the Policy Assignment's excluded scopes. The list must contain Resource IDs (such as Subscriptions e.g. /subscriptions/00000000-0000-0000-000000000000 or Resource Groups e.g./subscriptions/00000000-0000-0000-000000000000/resourceGroups/myResourceGroup).
Declaration
public InputList<string> NotScopes { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Parameters
Parameters for the policy definition. This field is a JSON object that maps to the Parameters field from the Policy Definition. Changing this forces a new resource to be created.
Declaration
public Input<string> Parameters { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
PolicyDefinitionId
The ID of the Policy Definition to be applied at the specified Scope.
Declaration
public Input<string> PolicyDefinitionId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Scope
The Scope at which the Policy Assignment should be applied, which must be a Resource ID (such as Subscription e.g. /subscriptions/00000000-0000-0000-000000000000 or a Resource Group e.g./subscriptions/00000000-0000-0000-000000000000/resourceGroups/myResourceGroup). Changing this forces a new resource to be created.
Declaration
public Input<string> Scope { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |