OrganizationSecurityPolicyRuleState class
Input properties used for looking up and filtering OrganizationSecurityPolicyRule resources.
Constructors
-
OrganizationSecurityPolicyRuleState({Input<
String?> ? action, Input<String?> ? deletionPolicy, Input<String?> ? description, Input<String?> ? direction, Input<bool?> ? enableLogging, Input<OrganizationSecurityPolicyRuleHeaderAction?> ? headerAction, Input<OrganizationSecurityPolicyRuleMatch?> ? match, Input<String?> ? policyId, Input<OrganizationSecurityPolicyRulePreconfiguredWafConfig?> ? preconfiguredWafConfig, Input<bool?> ? preview, Input<int?> ? priority, Input<OrganizationSecurityPolicyRuleRedirectOptions?> ? redirectOptions, Input<List< ? targetResources, Input<String> ?>List< ? targetServiceAccounts})String> ?> -
Creates a new OrganizationSecurityPolicyRuleState.
actionThe Action to perform when the client connection triggers the rule. Valid actions are:deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.descriptionA description of the rule.direction(Optional, Beta)enableLogging(Optional, Beta)headerActionOptional, additional actions that are performed on headers.matchA match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.policyIdThe ID of the OrganizationSecurityPolicy this rule applies to.preconfiguredWafConfigPreconfigured WAF configuration to be applied for the rule.previewIf set to true, the specified action is not enforced.priorityAn integer indicating the priority of a rule in the list. The priority must be a valueredirectOptionsParameters defining the redirect action. Cannot be specified for any other actions.targetResources(Optional, Beta)targetServiceAccounts(Optional, Beta)const -
OrganizationSecurityPolicyRuleState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
action
→ Input<
String?> ? -
The Action to perform when the client connection triggers the rule. Valid actions are:
"allow": allow access to target.
"deny": deny access to target.
"gotoNext": forward the request to the next hierarchical policy for evaluation.
"redirect": redirect to a different target. Parameters for this action can be configured via redirectOptions. Only EXTERNAL_302 redirect type is supported for organization security policies.
final
-
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
description
→ Input<
String?> ? -
A description of the rule.
final
-
direction
→ Input<
String?> ? -
(Optional, Beta)
The direction in which this rule applies. If unspecified an INGRESS rule is created.
This field may only be specified when the versionedExpr is set to FIREWALL.
Possible values are:
INGRESS,EGRESS.final -
enableLogging
→ Input<
bool?> ? -
(Optional, Beta)
Denotes whether to enable logging for a particular rule.
If logging is enabled, logs will be exported to the
configured export destination in Stackdriver.
This field may only be specified when the versionedExpr is set to FIREWALL.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headerAction
→ Input<
OrganizationSecurityPolicyRuleHeaderAction?> ? -
Optional, additional actions that are performed on headers.
Structure is documented below.
final
-
match
→ Input<
OrganizationSecurityPolicyRuleMatch?> ? -
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
Structure is documented below.
final
-
policyId
→ Input<
String?> ? -
The ID of the OrganizationSecurityPolicy this rule applies to.
final
-
preconfiguredWafConfig
→ Input<
OrganizationSecurityPolicyRulePreconfiguredWafConfig?> ? -
Preconfigured WAF configuration to be applied for the rule.
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
Structure is documented below.
final
-
preview
→ Input<
bool?> ? -
If set to true, the specified action is not enforced.
final
-
priority
→ Input<
int?> ? -
An integer indicating the priority of a rule in the list. The priority must be a value
between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the
highest priority and 2147483647 is the lowest prority.
final
-
redirectOptions
→ Input<
OrganizationSecurityPolicyRuleRedirectOptions?> ? -
Parameters defining the redirect action. Cannot be specified for any other actions.
Note: For organization security policies, only EXTERNAL_302 redirect type is supported. GOOGLE_RECAPTCHA is not supported.
Structure is documented below.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
targetResources
→ Input<
List< ?String> ?> -
(Optional, Beta)
A list of network resource URLs to which this rule applies.
This field allows you to control which network's VMs get
this rule. If this field is left blank, all VMs
within the organization will receive the rule.
final
-
targetServiceAccounts
→ Input<
List< ?String> ?> -
(Optional, Beta)
A list of service accounts indicating the sets of
instances that are applied with this rule.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited