pub struct SecurityGroupRuleArgs {
pub cidr_blocks: Output<Option<Vec<String>>>,
pub description: Output<Option<String>>,
pub from_port: Output<i32>,
pub ipv6_cidr_blocks: Output<Option<Vec<String>>>,
pub prefix_list_ids: Output<Option<Vec<String>>>,
pub protocol: Output<String>,
pub security_group_id: Output<String>,
pub self_: Output<Option<bool>>,
pub source_security_group_id: Output<Option<String>>,
pub to_port: Output<i32>,
pub type_: Output<String>,
}
Fields§
§cidr_blocks: Output<Option<Vec<String>>>
List of CIDR blocks. Cannot be specified with source_security_group_id
or self
.
description: Output<Option<String>>
Description of the rule.
from_port: Output<i32>
Start port (or ICMP type number if protocol is “icmp” or “icmpv6”).
ipv6_cidr_blocks: Output<Option<Vec<String>>>
List of IPv6 CIDR blocks. Cannot be specified with source_security_group_id
or self
.
prefix_list_ids: Output<Option<Vec<String>>>
List of Prefix List IDs.
protocol: Output<String>
Protocol. If not icmp, icmpv6, tcp, udp, or all use the protocol number
security_group_id: Output<String>
Security group to apply this rule to.
self_: Output<Option<bool>>
Whether the security group itself will be added as a source to this ingress rule. Cannot be specified with cidr_blocks
, ipv6_cidr_blocks
, or source_security_group_id
.
source_security_group_id: Output<Option<String>>
Security group id to allow access to/from, depending on the type
. Cannot be specified with cidr_blocks
, ipv6_cidr_blocks
, or self
.
to_port: Output<i32>
End port (or ICMP code if protocol is “icmp”).
type_: Output<String>
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.
Implementations§
source§impl SecurityGroupRuleArgs
impl SecurityGroupRuleArgs
sourcepub fn builder() -> SecurityGroupRuleArgsBuilder
pub fn builder() -> SecurityGroupRuleArgsBuilder
Create an instance of SecurityGroupRuleArgs
using the builder syntax
Trait Implementations§
source§impl Clone for SecurityGroupRuleArgs
impl Clone for SecurityGroupRuleArgs
source§fn clone(&self) -> SecurityGroupRuleArgs
fn clone(&self) -> SecurityGroupRuleArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SecurityGroupRuleArgs
impl RefUnwindSafe for SecurityGroupRuleArgs
impl Send for SecurityGroupRuleArgs
impl Sync for SecurityGroupRuleArgs
impl Unpin for SecurityGroupRuleArgs
impl UnwindSafe for SecurityGroupRuleArgs
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)