pub struct FirewallPolicyRuleArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> FirewallPolicyRuleArgsBuilder<S>
impl<S: State> FirewallPolicyRuleArgsBuilder<S>
sourcepub fn build_struct(self) -> FirewallPolicyRuleArgswhere
S: IsComplete,
pub fn build_struct(self) -> FirewallPolicyRuleArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn action(
self,
value: impl Into<Output<String>>,
) -> FirewallPolicyRuleArgsBuilder<SetAction<S>>where
S::Action: IsUnset,
pub fn action(
self,
value: impl Into<Output<String>>,
) -> FirewallPolicyRuleArgsBuilder<SetAction<S>>where
S::Action: IsUnset,
Required.
The Action to perform when the client connection triggers the rule. Valid actions are “allow”, “deny”, “goto_next” and “apply_security_profile_group”.
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> FirewallPolicyRuleArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> FirewallPolicyRuleArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn direction(
self,
value: impl Into<Output<String>>,
) -> FirewallPolicyRuleArgsBuilder<SetDirection<S>>where
S::Direction: IsUnset,
pub fn direction(
self,
value: impl Into<Output<String>>,
) -> FirewallPolicyRuleArgsBuilder<SetDirection<S>>where
S::Direction: IsUnset,
Required.
The direction in which this rule applies.
Possible values are: INGRESS
, EGRESS
.
sourcepub fn disabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> FirewallPolicyRuleArgsBuilder<SetDisabled<S>>where
S::Disabled: IsUnset,
pub fn disabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> FirewallPolicyRuleArgsBuilder<SetDisabled<S>>where
S::Disabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn maybe_disabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetDisabled<S>>where
S::Disabled: IsUnset,
pub fn maybe_disabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetDisabled<S>>where
S::Disabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn enable_logging(
self,
value: impl Into<Output<Option<bool>>>,
) -> FirewallPolicyRuleArgsBuilder<SetEnableLogging<S>>where
S::EnableLogging: IsUnset,
pub fn enable_logging(
self,
value: impl Into<Output<Option<bool>>>,
) -> FirewallPolicyRuleArgsBuilder<SetEnableLogging<S>>where
S::EnableLogging: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn maybe_enable_logging(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetEnableLogging<S>>where
S::EnableLogging: IsUnset,
pub fn maybe_enable_logging(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetEnableLogging<S>>where
S::EnableLogging: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
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.
sourcepub fn firewall_policy(
self,
value: impl Into<Output<String>>,
) -> FirewallPolicyRuleArgsBuilder<SetFirewallPolicy<S>>where
S::FirewallPolicy: IsUnset,
pub fn firewall_policy(
self,
value: impl Into<Output<String>>,
) -> FirewallPolicyRuleArgsBuilder<SetFirewallPolicy<S>>where
S::FirewallPolicy: IsUnset,
Required.
The firewall policy of the resource.
sourcepub fn match_(
self,
value: impl Into<Output<FirewallPolicyRuleMatch>>,
) -> FirewallPolicyRuleArgsBuilder<SetMatch<S>>where
S::Match: IsUnset,
pub fn match_(
self,
value: impl Into<Output<FirewallPolicyRuleMatch>>,
) -> FirewallPolicyRuleArgsBuilder<SetMatch<S>>where
S::Match: IsUnset,
Required.
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding ‘action’ is enforced. Structure is documented below.
sourcepub fn priority(
self,
value: impl Into<Output<i32>>,
) -> FirewallPolicyRuleArgsBuilder<SetPriority<S>>where
S::Priority: IsUnset,
pub fn priority(
self,
value: impl Into<Output<i32>>,
) -> FirewallPolicyRuleArgsBuilder<SetPriority<S>>where
S::Priority: IsUnset,
Required.
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.
sourcepub fn security_profile_group(
self,
value: impl Into<Output<Option<String>>>,
) -> FirewallPolicyRuleArgsBuilder<SetSecurityProfileGroup<S>>where
S::SecurityProfileGroup: IsUnset,
pub fn security_profile_group(
self,
value: impl Into<Output<Option<String>>>,
) -> FirewallPolicyRuleArgsBuilder<SetSecurityProfileGroup<S>>where
S::SecurityProfileGroup: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
sourcepub fn maybe_security_profile_group(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetSecurityProfileGroup<S>>where
S::SecurityProfileGroup: IsUnset,
pub fn maybe_security_profile_group(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetSecurityProfileGroup<S>>where
S::SecurityProfileGroup: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
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.
sourcepub fn target_resources(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetTargetResources<S>>where
S::TargetResources: IsUnset,
pub fn target_resources(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetTargetResources<S>>where
S::TargetResources: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default()
.
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.
sourcepub fn maybe_target_resources(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetTargetResources<S>>where
S::TargetResources: IsUnset,
pub fn maybe_target_resources(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> FirewallPolicyRuleArgsBuilder<SetTargetResources<S>>where
S::TargetResources: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default()
.
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.