pub struct SecurityGroupRuleArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> SecurityGroupRuleArgsBuilder<S>
impl<S: State> SecurityGroupRuleArgsBuilder<S>
sourcepub fn build_struct(self) -> SecurityGroupRuleArgswhere
S: IsComplete,
pub fn build_struct(self) -> SecurityGroupRuleArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn cidr_blocks(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetCidrBlocks<S>>where
S::CidrBlocks: IsUnset,
pub fn cidr_blocks(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetCidrBlocks<S>>where
S::CidrBlocks: IsUnset,
sourcepub fn maybe_cidr_blocks(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> SecurityGroupRuleArgsBuilder<SetCidrBlocks<S>>where
S::CidrBlocks: IsUnset,
pub fn maybe_cidr_blocks(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> SecurityGroupRuleArgsBuilder<SetCidrBlocks<S>>where
S::CidrBlocks: IsUnset,
sourcepub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> SecurityGroupRuleArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<Output<Option<String>>>,
) -> SecurityGroupRuleArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetDescription<S>>where
S::Description: IsUnset,
sourcepub fn from_port(
self,
value: impl Into<Output<i32>>,
) -> SecurityGroupRuleArgsBuilder<SetFromPort<S>>where
S::FromPort: IsUnset,
pub fn from_port(
self,
value: impl Into<Output<i32>>,
) -> SecurityGroupRuleArgsBuilder<SetFromPort<S>>where
S::FromPort: IsUnset,
Required.
Start port (or ICMP type number if protocol is “icmp” or “icmpv6”).
sourcepub fn ipv6_cidr_blocks(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetIpv6CidrBlocks<S>>where
S::Ipv6CidrBlocks: IsUnset,
pub fn ipv6_cidr_blocks(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetIpv6CidrBlocks<S>>where
S::Ipv6CidrBlocks: IsUnset,
sourcepub fn maybe_ipv6_cidr_blocks(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> SecurityGroupRuleArgsBuilder<SetIpv6CidrBlocks<S>>where
S::Ipv6CidrBlocks: IsUnset,
pub fn maybe_ipv6_cidr_blocks(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> SecurityGroupRuleArgsBuilder<SetIpv6CidrBlocks<S>>where
S::Ipv6CidrBlocks: IsUnset,
sourcepub fn prefix_list_ids(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetPrefixListIds<S>>where
S::PrefixListIds: IsUnset,
pub fn prefix_list_ids(
self,
value: impl Into<Output<Option<Vec<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetPrefixListIds<S>>where
S::PrefixListIds: IsUnset,
sourcepub fn maybe_prefix_list_ids(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> SecurityGroupRuleArgsBuilder<SetPrefixListIds<S>>where
S::PrefixListIds: IsUnset,
pub fn maybe_prefix_list_ids(
self,
value: Option<impl Into<Output<Option<Vec<String>>>>>,
) -> SecurityGroupRuleArgsBuilder<SetPrefixListIds<S>>where
S::PrefixListIds: IsUnset,
sourcepub fn protocol(
self,
value: impl Into<Output<String>>,
) -> SecurityGroupRuleArgsBuilder<SetProtocol<S>>where
S::Protocol: IsUnset,
pub fn protocol(
self,
value: impl Into<Output<String>>,
) -> SecurityGroupRuleArgsBuilder<SetProtocol<S>>where
S::Protocol: IsUnset,
Required.
Protocol. If not icmp, icmpv6, tcp, udp, or all use the protocol number
sourcepub fn security_group_id(
self,
value: impl Into<Output<String>>,
) -> SecurityGroupRuleArgsBuilder<SetSecurityGroupId<S>>where
S::SecurityGroupId: IsUnset,
pub fn security_group_id(
self,
value: impl Into<Output<String>>,
) -> SecurityGroupRuleArgsBuilder<SetSecurityGroupId<S>>where
S::SecurityGroupId: IsUnset,
Required.
Security group to apply this rule to.
sourcepub fn self_(
self,
value: impl Into<Output<Option<bool>>>,
) -> SecurityGroupRuleArgsBuilder<SetSelf_<S>>where
S::Self_: IsUnset,
pub fn self_(
self,
value: impl Into<Output<Option<bool>>>,
) -> SecurityGroupRuleArgsBuilder<SetSelf_<S>>where
S::Self_: IsUnset,
sourcepub fn maybe_self_(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SecurityGroupRuleArgsBuilder<SetSelf_<S>>where
S::Self_: IsUnset,
pub fn maybe_self_(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> SecurityGroupRuleArgsBuilder<SetSelf_<S>>where
S::Self_: IsUnset,
sourcepub fn source_security_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> SecurityGroupRuleArgsBuilder<SetSourceSecurityGroupId<S>>where
S::SourceSecurityGroupId: IsUnset,
pub fn source_security_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> SecurityGroupRuleArgsBuilder<SetSourceSecurityGroupId<S>>where
S::SourceSecurityGroupId: IsUnset,
sourcepub fn maybe_source_security_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetSourceSecurityGroupId<S>>where
S::SourceSecurityGroupId: IsUnset,
pub fn maybe_source_security_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> SecurityGroupRuleArgsBuilder<SetSourceSecurityGroupId<S>>where
S::SourceSecurityGroupId: IsUnset,
sourcepub fn to_port(
self,
value: impl Into<Output<i32>>,
) -> SecurityGroupRuleArgsBuilder<SetToPort<S>>where
S::ToPort: IsUnset,
pub fn to_port(
self,
value: impl Into<Output<i32>>,
) -> SecurityGroupRuleArgsBuilder<SetToPort<S>>where
S::ToPort: IsUnset,
Required.
End port (or ICMP code if protocol is “icmp”).
sourcepub fn type_(
self,
value: impl Into<Output<String>>,
) -> SecurityGroupRuleArgsBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn type_(
self,
value: impl Into<Output<String>>,
) -> SecurityGroupRuleArgsBuilder<SetType<S>>where
S::Type: IsUnset,
Required.
Type of rule being created. Valid options are ingress
(inbound)
or egress
(outbound).
The following arguments are optional:
Note Although
cidr_blocks
,ipv6_cidr_blocks
,prefix_list_ids
, andsource_security_group_id
are all marked as optional, you must provide one of them in order to configure the source of the traffic.
Auto Trait Implementations§
impl<S> Freeze for SecurityGroupRuleArgsBuilder<S>
impl<S> RefUnwindSafe for SecurityGroupRuleArgsBuilder<S>
impl<S> Send for SecurityGroupRuleArgsBuilder<S>
impl<S> Sync for SecurityGroupRuleArgsBuilder<S>
impl<S> Unpin for SecurityGroupRuleArgsBuilder<S>
impl<S> UnwindSafe for SecurityGroupRuleArgsBuilder<S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more