pulumi_wasm_providers_gcp_mini::compute::firewall_policy_rule

Struct FirewallPolicyRuleArgs

source
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

source

pub fn builder() -> FirewallPolicyRuleArgsBuilder

Create an instance of FirewallPolicyRuleArgs using the builder syntax

Trait Implementations§

source§

impl Clone for FirewallPolicyRuleArgs

source§

fn clone(&self) -> FirewallPolicyRuleArgs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.