Class SecurityPolicyRule
Inheritance
System.Object
SecurityPolicyRule
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute.Outputs
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class SecurityPolicyRule
Fields
View SourceAction
Action to take when match matches the request. Valid values:
- "allow" : allow access to target
- "deny(status)" : deny access to target, returns the HTTP response code specified (valid values are 403, 404 and 502)
Declaration
public readonly string Action
Field Value
| Type | Description |
|---|---|
| System.String |
Description
An optional description of this rule. Max size is 64.
Declaration
public readonly string Description
Field Value
| Type | Description |
|---|---|
| System.String |
Match
A match condition that incoming traffic is evaluated against.
If it evaluates to true, the corresponding action is enforced. Structure is documented below.
Declaration
public readonly SecurityPolicyRuleMatch Match
Field Value
| Type | Description |
|---|---|
| SecurityPolicyRuleMatch |
Preview
When set to true, the action specified above is not enforced.
Stackdriver logs for requests that trigger a preview action are annotated as such.
Declaration
public readonly bool? Preview
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Priority
An unique positive integer indicating the priority of evaluation for a rule. Rules are evaluated from highest priority (lowest numerically) to lowest priority (highest numerically) in order.
Declaration
public readonly int Priority
Field Value
| Type | Description |
|---|---|
| System.Int32 |