pub struct FirewallPolicyRuleArgs {
pub action: Output<String>,
pub description: Output<Option<String>>,
pub direction: Output<String>,
pub disabled: Output<Option<bool>>,
pub enable_logging: Output<Option<bool>>,
pub firewall_policy: Output<String>,
pub match_: Output<FirewallPolicyRuleMatch>,
pub priority: Output<i32>,
pub security_profile_group: Output<Option<String>>,
pub target_resources: Output<Option<Vec<String>>>,
pub target_service_accounts: Output<Option<Vec<String>>>,
pub tls_inspect: Output<Option<bool>>,
}
Fields§
§action: Output<String>
The Action to perform when the client connection triggers the rule. Valid actions are “allow”, “deny”, “goto_next” and “apply_security_profile_group”.
description: Output<Option<String>>
An optional description for this resource.
direction: Output<String>
The direction in which this rule applies.
Possible values are: INGRESS
, EGRESS
.
disabled: Output<Option<bool>>
Denotes whether the firewall policy rule is disabled. When set to true, the firewall policy rule is not enforced and traffic behaves as if it did not exist. If this is unspecified, the firewall policy rule will be enabled.
enable_logging: Output<Option<bool>>
Denotes whether to enable logging for a particular rule. If logging is enabled, logs will be exported to the configured export destination in Stackdriver. Logs may be exported to BigQuery or Pub/Sub. Note: you cannot enable logging on “goto_next” rules.
firewall_policy: Output<String>
The firewall policy of the resource.
match_: Output<FirewallPolicyRuleMatch>
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding ‘action’ is enforced. Structure is documented below.
priority: Output<i32>
An integer indicating the priority of a rule in the list. The priority must be a positive 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.
security_profile_group: Output<Option<String>>
A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action = ‘apply_security_profile_group’ and cannot be specified for other actions.
target_resources: Output<Option<Vec<String>>>
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.
target_service_accounts: Output<Option<Vec<String>>>
A list of service accounts indicating the sets of instances that are applied with this rule.
tls_inspect: Output<Option<bool>>
Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = ‘apply_security_profile_group’ and cannot be set for other actions.
Implementations§
source§impl FirewallPolicyRuleArgs
impl FirewallPolicyRuleArgs
sourcepub fn builder() -> FirewallPolicyRuleArgsBuilder
pub fn builder() -> FirewallPolicyRuleArgsBuilder
Create an instance of FirewallPolicyRuleArgs
using the builder syntax
Trait Implementations§
source§impl Clone for FirewallPolicyRuleArgs
impl Clone for FirewallPolicyRuleArgs
source§fn clone(&self) -> FirewallPolicyRuleArgs
fn clone(&self) -> FirewallPolicyRuleArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for FirewallPolicyRuleArgs
impl RefUnwindSafe for FirewallPolicyRuleArgs
impl Send for FirewallPolicyRuleArgs
impl Sync for FirewallPolicyRuleArgs
impl Unpin for FirewallPolicyRuleArgs
impl UnwindSafe for FirewallPolicyRuleArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)