AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest Class Reference

#include <AuthorizeSecurityGroupIngressRequest.h>

Inheritance diagram for Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest:
[legend]

Public Member Functions

AWS_EC2_API AuthorizeSecurityGroupIngressRequest ()=default
 
virtual const char * GetServiceRequestName () const override
 
AWS_EC2_API Aws::String SerializePayload () const override
 
const Aws::StringGetCidrIp () const
 
bool CidrIpHasBeenSet () const
 
template<typename CidrIpT = Aws::String>
void SetCidrIp (CidrIpT &&value)
 
template<typename CidrIpT = Aws::String>
 
int GetFromPort () const
 
bool FromPortHasBeenSet () const
 
void SetFromPort (int value)
 
 
const Aws::StringGetGroupId () const
 
bool GroupIdHasBeenSet () const
 
template<typename GroupIdT = Aws::String>
void SetGroupId (GroupIdT &&value)
 
template<typename GroupIdT = Aws::String>
 
const Aws::StringGetGroupName () const
 
bool GroupNameHasBeenSet () const
 
template<typename GroupNameT = Aws::String>
void SetGroupName (GroupNameT &&value)
 
template<typename GroupNameT = Aws::String>
 
 
 
template<typename IpPermissionsT = Aws::Vector<IpPermission>>
void SetIpPermissions (IpPermissionsT &&value)
 
template<typename IpPermissionsT = Aws::Vector<IpPermission>>
 
template<typename IpPermissionsT = IpPermission>
 
const Aws::StringGetIpProtocol () const
 
bool IpProtocolHasBeenSet () const
 
template<typename IpProtocolT = Aws::String>
void SetIpProtocol (IpProtocolT &&value)
 
template<typename IpProtocolT = Aws::String>
 
 
 
template<typename SourceSecurityGroupNameT = Aws::String>
void SetSourceSecurityGroupName (SourceSecurityGroupNameT &&value)
 
template<typename SourceSecurityGroupNameT = Aws::String>
 
 
 
template<typename SourceSecurityGroupOwnerIdT = Aws::String>
void SetSourceSecurityGroupOwnerId (SourceSecurityGroupOwnerIdT &&value)
 
template<typename SourceSecurityGroupOwnerIdT = Aws::String>
 
int GetToPort () const
 
bool ToPortHasBeenSet () const
 
void SetToPort (int value)
 
 
 
 
template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
void SetTagSpecifications (TagSpecificationsT &&value)
 
template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
 
template<typename TagSpecificationsT = TagSpecification>
 
bool GetDryRun () const
 
bool DryRunHasBeenSet () const
 
void SetDryRun (bool value)
 
 

Public Member Functions inherited from Aws::EC2::EC2Request

virtual ~EC2Request ()
 
 
 

Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest

 
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 

Public Member Functions inherited from Aws::AmazonWebServiceRequest

 
virtual ~AmazonWebServiceRequest ()=default
 
 
virtual void SetAdditionalCustomHeaderValue (const Aws::String &headerName, const Aws::String &headerValue)
 
virtual void AddQueryStringParameters (Aws::Http::URI &uri) const
 
virtual void PutToPresignedUrl (Aws::Http::URI &uri) const
 
virtual bool IsStreaming () const
 
virtual bool IsEventStreamRequest () const
 
virtual bool HasEventStreamResponse () const
 
virtual bool SignBody () const
 
virtual bool HasEmbeddedError (Aws::IOStream &body, const Aws::Http::HeaderValueCollection &header) const
 
virtual bool IsChunked () const
 
virtual bool IsLongPollingOperation () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
 
 
 
 
 
 
 
 
virtual bool ShouldComputeContentMd5 () const
 
virtual bool ShouldValidateResponseChecksum () const
 
 
 
virtual void SetServiceSpecificParameters (const std::shared_ptr< Http::ServiceSpecificParameters > &serviceSpecificParameters) const
 
 
 
 
 
 
virtual bool RequestChecksumRequired () const
 
 
void SetRetryContext (const RetryContext &context) const
 
 
virtual bool ChecksumAlgorithmIsSet () const
 
virtual void SetHeadersReceivedEventHandler (const Aws::Http::HeadersReceivedEventHandler &headersReceivedEventHandler)
 
virtual void SetHeadersReceivedEventHandler (Aws::Http::HeadersReceivedEventHandler &&headersReceivedEventHandler)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
 
virtual void SetHeadersReceivedEventHandler (const Aws::Http::HeadersReceivedEventHandler &headersReceivedEventHandler)
 
virtual void SetHeadersReceivedEventHandler (Aws::Http::HeadersReceivedEventHandler &&headersReceivedEventHandler)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
 

Protected Member Functions

AWS_EC2_API void DumpBodyToUrl (Aws::Http::URI &uri) const override
 

Protected Member Functions inherited from Aws::EC2::EC2Request

 

Additional Inherited Members

Public Types inherited from Aws::EC2::EC2Request

 
 

Public Types inherited from Aws::AmazonWebServiceRequest

 

Protected Attributes inherited from Aws::AmazonWebServiceRequest

 

Detailed Description

Definition at line 22 of file AuthorizeSecurityGroupIngressRequest.h.

Constructor & Destructor Documentation

◆ AuthorizeSecurityGroupIngressRequest()

AWS_EC2_API Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::AuthorizeSecurityGroupIngressRequest ( )
default

Member Function Documentation

◆ AddIpPermissions()

template<typename IpPermissionsT = IpPermission>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::AddIpPermissions ( IpPermissionsT &&  value)
inline

The permissions for the security group rules.

Definition at line 142 of file AuthorizeSecurityGroupIngressRequest.h.

◆ AddTagSpecifications()

template<typename TagSpecificationsT = TagSpecification>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::AddTagSpecifications ( TagSpecificationsT &&  value)
inline

The tags applied to the security group rule.

Definition at line 252 of file AuthorizeSecurityGroupIngressRequest.h.

◆ CidrIpHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::CidrIpHasBeenSet ( ) const
inline

The IPv4 address range, in CIDR format.

Amazon Web Services canonicalizes IPv4 and IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR block, Amazon Web Services canonicalizes the CIDR block to 100.68.0.0/18. Any subsequent DescribeSecurityGroups and DescribeSecurityGroupRules calls will return the canonicalized form of the CIDR block. Additionally, if you attempt to add another rule with the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is already a rule for the canonicalized form of the CIDR block (such as 100.68.0.0/18), the API throws an duplicate rule error.

To specify an IPv6 address range, use IP permissions instead.

To specify multiple rules and descriptions for the rules, use IP permissions instead.

Definition at line 54 of file AuthorizeSecurityGroupIngressRequest.h.

◆ DryRunHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::DryRunHasBeenSet ( ) const
inline

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.

Definition at line 267 of file AuthorizeSecurityGroupIngressRequest.h.

◆ DumpBodyToUrl()

AWS_EC2_API void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::DumpBodyToUrl ( Aws::Http::URI uri) const
overrideprotectedvirtual

Reimplemented from Aws::AmazonWebServiceRequest.

◆ FromPortHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::FromPortHasBeenSet ( ) const
inline

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.

Definition at line 75 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetCidrIp()

const Aws::String & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetCidrIp ( ) const
inline

The IPv4 address range, in CIDR format.

Amazon Web Services canonicalizes IPv4 and IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR block, Amazon Web Services canonicalizes the CIDR block to 100.68.0.0/18. Any subsequent DescribeSecurityGroups and DescribeSecurityGroupRules calls will return the canonicalized form of the CIDR block. Additionally, if you attempt to add another rule with the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is already a rule for the canonicalized form of the CIDR block (such as 100.68.0.0/18), the API throws an duplicate rule error.

To specify an IPv6 address range, use IP permissions instead.

To specify multiple rules and descriptions for the rules, use IP permissions instead.

Definition at line 53 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetDryRun()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetDryRun ( ) const
inline

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.

Definition at line 266 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetFromPort()

int Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetFromPort ( ) const
inline

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.

Definition at line 74 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetGroupId()

const Aws::String & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetGroupId ( ) const
inline

The ID of the security group.

Definition at line 90 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetGroupName()

const Aws::String & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetGroupName ( ) const
inline

[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.

Definition at line 111 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetIpPermissions()

const Aws::Vector< IpPermission > & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetIpPermissions ( ) const
inline

The permissions for the security group rules.

Definition at line 129 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetIpProtocol()

const Aws::String & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetIpProtocol ( ) const
inline

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.

Definition at line 160 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetServiceRequestName()

virtual const char * Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetServiceRequestName ( ) const
inlineoverridevirtual

◆ GetSourceSecurityGroupName()

const Aws::String & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetSourceSecurityGroupName ( ) const
inline

[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.

Definition at line 180 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetSourceSecurityGroupOwnerId()

const Aws::String & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetSourceSecurityGroupOwnerId ( ) const
inline

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.

Definition at line 201 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetTagSpecifications()

const Aws::Vector< TagSpecification > & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetTagSpecifications ( ) const
inline

The tags applied to the security group rule.

Definition at line 239 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetToPort()

int Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GetToPort ( ) const
inline

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.

Definition at line 223 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GroupIdHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GroupIdHasBeenSet ( ) const
inline

The ID of the security group.

Definition at line 91 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GroupNameHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::GroupNameHasBeenSet ( ) const
inline

[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.

Definition at line 112 of file AuthorizeSecurityGroupIngressRequest.h.

◆ IpPermissionsHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::IpPermissionsHasBeenSet ( ) const
inline

The permissions for the security group rules.

Definition at line 130 of file AuthorizeSecurityGroupIngressRequest.h.

◆ IpProtocolHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::IpProtocolHasBeenSet ( ) const
inline

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.

Definition at line 161 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SerializePayload()

AWS_EC2_API Aws::String Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SerializePayload ( ) const
overridevirtual

◆ SetCidrIp()

template<typename CidrIpT = Aws::String>
void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetCidrIp ( CidrIpT &&  value)
inline

The IPv4 address range, in CIDR format.

Amazon Web Services canonicalizes IPv4 and IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR block, Amazon Web Services canonicalizes the CIDR block to 100.68.0.0/18. Any subsequent DescribeSecurityGroups and DescribeSecurityGroupRules calls will return the canonicalized form of the CIDR block. Additionally, if you attempt to add another rule with the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is already a rule for the canonicalized form of the CIDR block (such as 100.68.0.0/18), the API throws an duplicate rule error.

To specify an IPv6 address range, use IP permissions instead.

To specify multiple rules and descriptions for the rules, use IP permissions instead.

Definition at line 56 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetDryRun()

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetDryRun ( bool  value)
inline

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.

Definition at line 268 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetFromPort()

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetFromPort ( int  value)
inline

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.

Definition at line 76 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetGroupId()

template<typename GroupIdT = Aws::String>
void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetGroupId ( GroupIdT &&  value)
inline

The ID of the security group.

Definition at line 93 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetGroupName()

template<typename GroupNameT = Aws::String>
void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetGroupName ( GroupNameT &&  value)
inline

[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.

Definition at line 114 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetIpPermissions()

template<typename IpPermissionsT = Aws::Vector<IpPermission>>
void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetIpPermissions ( IpPermissionsT &&  value)
inline

The permissions for the security group rules.

Definition at line 132 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetIpProtocol()

template<typename IpProtocolT = Aws::String>
void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetIpProtocol ( IpProtocolT &&  value)
inline

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.

Definition at line 163 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetSourceSecurityGroupName()

template<typename SourceSecurityGroupNameT = Aws::String>
void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetSourceSecurityGroupName ( SourceSecurityGroupNameT &&  value)
inline

[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.

Definition at line 183 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetSourceSecurityGroupOwnerId()

template<typename SourceSecurityGroupOwnerIdT = Aws::String>
void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetSourceSecurityGroupOwnerId ( SourceSecurityGroupOwnerIdT &&  value)
inline

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.

Definition at line 204 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetTagSpecifications()

template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetTagSpecifications ( TagSpecificationsT &&  value)
inline

The tags applied to the security group rule.

Definition at line 242 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetToPort()

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetToPort ( int  value)
inline

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.

Definition at line 225 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SourceSecurityGroupNameHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SourceSecurityGroupNameHasBeenSet ( ) const
inline

[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.

Definition at line 181 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SourceSecurityGroupOwnerIdHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SourceSecurityGroupOwnerIdHasBeenSet ( ) const
inline

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.

Definition at line 202 of file AuthorizeSecurityGroupIngressRequest.h.

◆ TagSpecificationsHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::TagSpecificationsHasBeenSet ( ) const
inline

The tags applied to the security group rule.

Definition at line 240 of file AuthorizeSecurityGroupIngressRequest.h.

◆ ToPortHasBeenSet()

bool Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::ToPortHasBeenSet ( ) const
inline

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.

Definition at line 224 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithCidrIp()

template<typename CidrIpT = Aws::String>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithCidrIp ( CidrIpT &&  value)
inline

The IPv4 address range, in CIDR format.

Amazon Web Services canonicalizes IPv4 and IPv6 CIDRs. For example, if you specify 100.68.0.18/18 for the CIDR block, Amazon Web Services canonicalizes the CIDR block to 100.68.0.0/18. Any subsequent DescribeSecurityGroups and DescribeSecurityGroupRules calls will return the canonicalized form of the CIDR block. Additionally, if you attempt to add another rule with the non-canonical form of the CIDR (such as 100.68.0.18/18) and there is already a rule for the canonicalized form of the CIDR block (such as 100.68.0.0/18), the API throws an duplicate rule error.

To specify an IPv6 address range, use IP permissions instead.

To specify multiple rules and descriptions for the rules, use IP permissions instead.

Definition at line 61 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithDryRun()

AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithDryRun ( bool  value)
inline

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.

Definition at line 272 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithFromPort()

AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithFromPort ( int  value)
inline

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.

Definition at line 80 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithGroupId()

template<typename GroupIdT = Aws::String>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithGroupId ( GroupIdT &&  value)
inline

The ID of the security group.

Definition at line 98 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithGroupName()

template<typename GroupNameT = Aws::String>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithGroupName ( GroupNameT &&  value)
inline

[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.

Definition at line 119 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithIpPermissions()

template<typename IpPermissionsT = Aws::Vector<IpPermission>>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithIpPermissions ( IpPermissionsT &&  value)
inline

The permissions for the security group rules.

Definition at line 137 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithIpProtocol()

template<typename IpProtocolT = Aws::String>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithIpProtocol ( IpProtocolT &&  value)
inline

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.

Definition at line 168 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithSourceSecurityGroupName()

template<typename SourceSecurityGroupNameT = Aws::String>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithSourceSecurityGroupName ( SourceSecurityGroupNameT &&  value)
inline

[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.

Definition at line 188 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithSourceSecurityGroupOwnerId()

template<typename SourceSecurityGroupOwnerIdT = Aws::String>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithSourceSecurityGroupOwnerId ( SourceSecurityGroupOwnerIdT &&  value)
inline

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.

Definition at line 209 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithTagSpecifications()

template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithTagSpecifications ( TagSpecificationsT &&  value)
inline

The tags applied to the security group rule.

Definition at line 247 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithToPort()

AuthorizeSecurityGroupIngressRequest & Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithToPort ( int  value)
inline

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.

Definition at line 229 of file AuthorizeSecurityGroupIngressRequest.h.


The documentation for this class was generated from the following file: