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>
impl<S: State> NetworkAclRuleArgsBuilder<S>
sourcepub fn build_struct(self) -> NetworkAclRuleArgswhere
S: IsComplete,
pub fn build_struct(self) -> NetworkAclRuleArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn cidr_block(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkAclRuleArgsBuilder<SetCidrBlock<S>>where
S::CidrBlock: IsUnset,
pub fn cidr_block(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkAclRuleArgsBuilder<SetCidrBlock<S>>where
S::CidrBlock: IsUnset,
sourcepub fn maybe_cidr_block(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkAclRuleArgsBuilder<SetCidrBlock<S>>where
S::CidrBlock: IsUnset,
pub fn maybe_cidr_block(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkAclRuleArgsBuilder<SetCidrBlock<S>>where
S::CidrBlock: IsUnset,
sourcepub fn egress(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkAclRuleArgsBuilder<SetEgress<S>>where
S::Egress: IsUnset,
pub fn egress(
self,
value: impl Into<Output<Option<bool>>>,
) -> NetworkAclRuleArgsBuilder<SetEgress<S>>where
S::Egress: IsUnset,
sourcepub fn maybe_egress(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkAclRuleArgsBuilder<SetEgress<S>>where
S::Egress: IsUnset,
pub fn maybe_egress(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> NetworkAclRuleArgsBuilder<SetEgress<S>>where
S::Egress: IsUnset,
sourcepub fn from_port(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkAclRuleArgsBuilder<SetFromPort<S>>where
S::FromPort: IsUnset,
pub fn from_port(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkAclRuleArgsBuilder<SetFromPort<S>>where
S::FromPort: IsUnset,
sourcepub fn maybe_from_port(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkAclRuleArgsBuilder<SetFromPort<S>>where
S::FromPort: IsUnset,
pub fn maybe_from_port(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkAclRuleArgsBuilder<SetFromPort<S>>where
S::FromPort: IsUnset,
sourcepub fn icmp_code(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkAclRuleArgsBuilder<SetIcmpCode<S>>where
S::IcmpCode: IsUnset,
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
orall
, thefrom_port
andto_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), theicmp_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
sourcepub fn maybe_icmp_code(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkAclRuleArgsBuilder<SetIcmpCode<S>>where
S::IcmpCode: IsUnset,
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
orall
, thefrom_port
andto_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), theicmp_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
sourcepub fn icmp_type(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkAclRuleArgsBuilder<SetIcmpType<S>>where
S::IcmpType: IsUnset,
pub fn icmp_type(
self,
value: impl Into<Output<Option<i32>>>,
) -> NetworkAclRuleArgsBuilder<SetIcmpType<S>>where
S::IcmpType: IsUnset,
sourcepub fn maybe_icmp_type(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkAclRuleArgsBuilder<SetIcmpType<S>>where
S::IcmpType: IsUnset,
pub fn maybe_icmp_type(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> NetworkAclRuleArgsBuilder<SetIcmpType<S>>where
S::IcmpType: IsUnset,
sourcepub fn ipv6_cidr_block(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkAclRuleArgsBuilder<SetIpv6CidrBlock<S>>where
S::Ipv6CidrBlock: IsUnset,
pub fn ipv6_cidr_block(
self,
value: impl Into<Output<Option<String>>>,
) -> NetworkAclRuleArgsBuilder<SetIpv6CidrBlock<S>>where
S::Ipv6CidrBlock: IsUnset,
sourcepub fn maybe_ipv6_cidr_block(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkAclRuleArgsBuilder<SetIpv6CidrBlock<S>>where
S::Ipv6CidrBlock: IsUnset,
pub fn maybe_ipv6_cidr_block(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> NetworkAclRuleArgsBuilder<SetIpv6CidrBlock<S>>where
S::Ipv6CidrBlock: IsUnset,
sourcepub fn network_acl_id(
self,
value: impl Into<Output<String>>,
) -> NetworkAclRuleArgsBuilder<SetNetworkAclId<S>>where
S::NetworkAclId: IsUnset,
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.
sourcepub fn protocol(
self,
value: impl Into<Output<String>>,
) -> NetworkAclRuleArgsBuilder<SetProtocol<S>>where
S::Protocol: IsUnset,
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.
sourcepub fn rule_action(
self,
value: impl Into<Output<String>>,
) -> NetworkAclRuleArgsBuilder<SetRuleAction<S>>where
S::RuleAction: IsUnset,
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
sourcepub fn rule_number(
self,
value: impl Into<Output<i32>>,
) -> NetworkAclRuleArgsBuilder<SetRuleNumber<S>>where
S::RuleNumber: IsUnset,
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.