pulumi_wasm_providers_aws_mini::ec2::network_acl_rule

Struct NetworkAclRuleArgsBuilder

source
pub struct NetworkAclRuleArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> NetworkAclRuleArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn cidr_block( self, value: impl Into<Output<Option<String>>>, ) -> NetworkAclRuleArgsBuilder<SetCidrBlock<S>>
where S::CidrBlock: IsUnset,

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

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

source

pub fn maybe_cidr_block( self, value: Option<impl Into<Output<Option<String>>>>, ) -> NetworkAclRuleArgsBuilder<SetCidrBlock<S>>
where S::CidrBlock: IsUnset,

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

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

source

pub fn egress( self, value: impl Into<Output<Option<bool>>>, ) -> NetworkAclRuleArgsBuilder<SetEgress<S>>
where S::Egress: IsUnset,

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

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

source

pub fn maybe_egress( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> NetworkAclRuleArgsBuilder<SetEgress<S>>
where S::Egress: IsUnset,

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

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

source

pub fn from_port( self, value: impl Into<Output<Option<i32>>>, ) -> NetworkAclRuleArgsBuilder<SetFromPort<S>>
where S::FromPort: IsUnset,

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

The from port to match.

source

pub fn maybe_from_port( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> NetworkAclRuleArgsBuilder<SetFromPort<S>>
where S::FromPort: IsUnset,

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

The from port to match.

source

pub fn icmp_code( self, value: impl Into<Output<Option<i32>>>, ) -> NetworkAclRuleArgsBuilder<SetIcmpCode<S>>
where S::IcmpCode: IsUnset,

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

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

source

pub fn maybe_icmp_code( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> NetworkAclRuleArgsBuilder<SetIcmpCode<S>>
where S::IcmpCode: IsUnset,

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

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

source

pub fn icmp_type( self, value: impl Into<Output<Option<i32>>>, ) -> NetworkAclRuleArgsBuilder<SetIcmpType<S>>
where S::IcmpType: IsUnset,

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

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

source

pub fn maybe_icmp_type( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> NetworkAclRuleArgsBuilder<SetIcmpType<S>>
where S::IcmpType: IsUnset,

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

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

source

pub fn ipv6_cidr_block( self, value: impl Into<Output<Option<String>>>, ) -> NetworkAclRuleArgsBuilder<SetIpv6CidrBlock<S>>
where S::Ipv6CidrBlock: IsUnset,

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

The IPv6 CIDR block to allow or deny.

source

pub fn maybe_ipv6_cidr_block( self, value: Option<impl Into<Output<Option<String>>>>, ) -> NetworkAclRuleArgsBuilder<SetIpv6CidrBlock<S>>
where S::Ipv6CidrBlock: IsUnset,

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

The IPv6 CIDR block to allow or deny.

source

pub fn network_acl_id( self, value: impl Into<Output<String>>, ) -> NetworkAclRuleArgsBuilder<SetNetworkAclId<S>>
where S::NetworkAclId: IsUnset,

Required.

The ID of the network ACL.

source

pub fn protocol( self, value: impl Into<Output<String>>, ) -> NetworkAclRuleArgsBuilder<SetProtocol<S>>
where S::Protocol: IsUnset,

Required.

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

source

pub fn rule_action( self, value: impl Into<Output<String>>, ) -> NetworkAclRuleArgsBuilder<SetRuleAction<S>>
where S::RuleAction: IsUnset,

Required.

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

source

pub fn rule_number( self, value: impl Into<Output<i32>>, ) -> NetworkAclRuleArgsBuilder<SetRuleNumber<S>>
where S::RuleNumber: IsUnset,

Required.

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

source

pub fn to_port( self, value: impl Into<Output<Option<i32>>>, ) -> NetworkAclRuleArgsBuilder<SetToPort<S>>
where S::ToPort: IsUnset,

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

The to port to match.

source

pub fn maybe_to_port( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> NetworkAclRuleArgsBuilder<SetToPort<S>>
where S::ToPort: IsUnset,

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

The to port to match.

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.