pulumi_wasm_providers_aws_mini::ec2::network_acl_rule

Struct NetworkAclRuleArgs

source
pub struct NetworkAclRuleArgs {
    pub cidr_block: Output<Option<String>>,
    pub egress: Output<Option<bool>>,
    pub from_port: Output<Option<i32>>,
    pub icmp_code: Output<Option<i32>>,
    pub icmp_type: Output<Option<i32>>,
    pub ipv6_cidr_block: Output<Option<String>>,
    pub network_acl_id: Output<String>,
    pub protocol: Output<String>,
    pub rule_action: Output<String>,
    pub rule_number: Output<i32>,
    pub to_port: Output<Option<i32>>,
}

Fields§

§cidr_block: Output<Option<String>>

The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24 ).

§egress: Output<Option<bool>>

Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet). Default false.

§from_port: Output<Option<i32>>

The from port to match.

§icmp_code: Output<Option<i32>>

ICMP protocol: The ICMP code. Required if specifying ICMP for the protocolE.g., -1

NOTE: If the value of protocol is -1 or all, the from_port and to_port values will be ignored and the rule will apply to all ports.

NOTE: If the value of icmp_type is -1 (which results in a wildcard ICMP type), the icmp_code must also be set to -1 (wildcard ICMP code).

Note: For more information on ICMP types and codes, see here: https://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

§icmp_type: Output<Option<i32>>

ICMP protocol: The ICMP type. Required if specifying ICMP for the protocolE.g., -1

§ipv6_cidr_block: Output<Option<String>>

The IPv6 CIDR block to allow or deny.

§network_acl_id: Output<String>

The ID of the network ACL.

§protocol: Output<String>

The protocol. A value of -1 means all protocols.

§rule_action: Output<String>

Indicates whether to allow or deny the traffic that matches the rule. Accepted values: allow | deny

§rule_number: Output<i32>

The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.

§to_port: Output<Option<i32>>

The to port to match.

Implementations§

source§

impl NetworkAclRuleArgs

source

pub fn builder() -> NetworkAclRuleArgsBuilder

Create an instance of NetworkAclRuleArgs using the builder syntax

Trait Implementations§

source§

impl Clone for NetworkAclRuleArgs

source§

fn clone(&self) -> NetworkAclRuleArgs

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.