pulumi_wasm_providers_gcp_mini::compute::firewall_policy_rule

Struct FirewallPolicyRuleArgsBuilder

source
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>

source

pub fn build_struct(self) -> FirewallPolicyRuleArgs
where S: IsComplete,

Finish building and return the requested object

source

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”.

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> FirewallPolicyRuleArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

An optional description for this resource.

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FirewallPolicyRuleArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

An optional description for this resource.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn firewall_policy( self, value: impl Into<Output<String>>, ) -> FirewallPolicyRuleArgsBuilder<SetFirewallPolicy<S>>
where S::FirewallPolicy: IsUnset,

Required.

The firewall policy of the resource.

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn target_service_accounts( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> FirewallPolicyRuleArgsBuilder<SetTargetServiceAccounts<S>>
where S::TargetServiceAccounts: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of service accounts indicating the sets of instances that are applied with this rule.

source

pub fn maybe_target_service_accounts( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> FirewallPolicyRuleArgsBuilder<SetTargetServiceAccounts<S>>
where S::TargetServiceAccounts: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

A list of service accounts indicating the sets of instances that are applied with this rule.

source

pub fn tls_inspect( self, value: impl Into<Output<Option<bool>>>, ) -> FirewallPolicyRuleArgsBuilder<SetTlsInspect<S>>
where S::TlsInspect: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn maybe_tls_inspect( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> FirewallPolicyRuleArgsBuilder<SetTlsInspect<S>>
where S::TlsInspect: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.