pulumi_wasm_providers_aws_mini::ec2::security_group_rule

Struct SecurityGroupRuleArgs

source
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, and source_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

source

pub fn builder() -> SecurityGroupRuleArgsBuilder

Create an instance of SecurityGroupRuleArgs using the builder syntax

Trait Implementations§

source§

impl Clone for SecurityGroupRuleArgs

source§

fn clone(&self) -> SecurityGroupRuleArgs

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.