Struct aws_sdk_ec2::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressInput
source · #[non_exhaustive]pub struct AuthorizeSecurityGroupIngressInput {
pub cidr_ip: Option<String>,
pub from_port: Option<i32>,
pub group_id: Option<String>,
pub group_name: Option<String>,
pub ip_permissions: Option<Vec<IpPermission>>,
pub ip_protocol: Option<String>,
pub source_security_group_name: Option<String>,
pub source_security_group_owner_id: Option<String>,
pub to_port: Option<i32>,
pub dry_run: Option<bool>,
pub tag_specifications: Option<Vec<TagSpecification>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cidr_ip: Option<String>
The IPv4 address range, in CIDR format.
To specify an IPv6 address range, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
from_port: Option<i32>
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
group_id: Option<String>
The ID of the security group.
group_name: Option<String>
\[Default VPC\] The name of the security group. For security groups for a default VPC you can specify either the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the ID of the security group.
ip_permissions: Option<Vec<IpPermission>>
The permissions for the security group rules.
ip_protocol: Option<String>
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To specify all protocols, use -1
.
To specify icmpv6
, use IP permissions instead.
If you specify a protocol other than one of the supported values, traffic is allowed on all ports, regardless of any ports that you specify.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
source_security_group_name: Option<String>
\[Default VPC\] The name of the source security group.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, specify a set of IP permissions instead.
source_security_group_owner_id: Option<String>
The Amazon Web Services account ID for the source security group, if the source security group is in a different account.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead.
to_port: Option<i32>
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
dry_run: Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
tag_specifications: Option<Vec<TagSpecification>>
The tags applied to the security group rule.
Implementations§
source§impl AuthorizeSecurityGroupIngressInput
impl AuthorizeSecurityGroupIngressInput
sourcepub fn cidr_ip(&self) -> Option<&str>
pub fn cidr_ip(&self) -> Option<&str>
The IPv4 address range, in CIDR format.
To specify an IPv6 address range, use IP permissions instead.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
sourcepub fn from_port(&self) -> Option<i32>
pub fn from_port(&self) -> Option<i32>
If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP, this is the ICMP type or -1 (all ICMP types).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
\[Default VPC\] The name of the security group. For security groups for a default VPC you can specify either the ID or the name of the security group. For security groups for a nondefault VPC, you must specify the ID of the security group.
sourcepub fn ip_permissions(&self) -> &[IpPermission]
pub fn ip_permissions(&self) -> &[IpPermission]
The permissions for the security group rules.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ip_permissions.is_none()
.
sourcepub fn ip_protocol(&self) -> Option<&str>
pub fn ip_protocol(&self) -> Option<&str>
The IP protocol name (tcp
, udp
, icmp
) or number (see Protocol Numbers). To specify all protocols, use -1
.
To specify icmpv6
, use IP permissions instead.
If you specify a protocol other than one of the supported values, traffic is allowed on all ports, regardless of any ports that you specify.
To specify multiple rules and descriptions for the rules, use IP permissions instead.
sourcepub fn source_security_group_name(&self) -> Option<&str>
pub fn source_security_group_name(&self) -> Option<&str>
\[Default VPC\] The name of the source security group.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, specify a set of IP permissions instead.
sourcepub fn source_security_group_owner_id(&self) -> Option<&str>
pub fn source_security_group_owner_id(&self) -> Option<&str>
The Amazon Web Services account ID for the source security group, if the source security group is in a different account.
The rule grants full ICMP, UDP, and TCP access. To create a rule with a specific protocol and port range, use IP permissions instead.
sourcepub fn to_port(&self) -> Option<i32>
pub fn to_port(&self) -> Option<i32>
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).
To specify multiple rules and descriptions for the rules, use IP permissions instead.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn tag_specifications(&self) -> &[TagSpecification]
pub fn tag_specifications(&self) -> &[TagSpecification]
The tags applied to the security group rule.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tag_specifications.is_none()
.
source§impl AuthorizeSecurityGroupIngressInput
impl AuthorizeSecurityGroupIngressInput
sourcepub fn builder() -> AuthorizeSecurityGroupIngressInputBuilder
pub fn builder() -> AuthorizeSecurityGroupIngressInputBuilder
Creates a new builder-style object to manufacture AuthorizeSecurityGroupIngressInput
.
Trait Implementations§
source§impl Clone for AuthorizeSecurityGroupIngressInput
impl Clone for AuthorizeSecurityGroupIngressInput
source§fn clone(&self) -> AuthorizeSecurityGroupIngressInput
fn clone(&self) -> AuthorizeSecurityGroupIngressInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AuthorizeSecurityGroupIngressInput
impl PartialEq for AuthorizeSecurityGroupIngressInput
source§fn eq(&self, other: &AuthorizeSecurityGroupIngressInput) -> bool
fn eq(&self, other: &AuthorizeSecurityGroupIngressInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AuthorizeSecurityGroupIngressInput
Auto Trait Implementations§
impl Freeze for AuthorizeSecurityGroupIngressInput
impl RefUnwindSafe for AuthorizeSecurityGroupIngressInput
impl Send for AuthorizeSecurityGroupIngressInput
impl Sync for AuthorizeSecurityGroupIngressInput
impl Unpin for AuthorizeSecurityGroupIngressInput
impl UnwindSafe for AuthorizeSecurityGroupIngressInput
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more