AWS SDK for C++  1.8.51
AWS SDK for C++
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:

Public Member Functions

 AuthorizeSecurityGroupIngressRequest ()
 
virtual const char * GetServiceRequestName () const override
 
Aws::String SerializePayload () const override
 
const Aws::StringGetCidrIp () const
 
bool CidrIpHasBeenSet () const
 
void SetCidrIp (const Aws::String &value)
 
void SetCidrIp (Aws::String &&value)
 
void SetCidrIp (const char *value)
 
AuthorizeSecurityGroupIngressRequestWithCidrIp (const Aws::String &value)
 
AuthorizeSecurityGroupIngressRequestWithCidrIp (Aws::String &&value)
 
AuthorizeSecurityGroupIngressRequestWithCidrIp (const char *value)
 
int GetFromPort () const
 
bool FromPortHasBeenSet () const
 
void SetFromPort (int value)
 
AuthorizeSecurityGroupIngressRequestWithFromPort (int value)
 
const Aws::StringGetGroupId () const
 
bool GroupIdHasBeenSet () const
 
void SetGroupId (const Aws::String &value)
 
void SetGroupId (Aws::String &&value)
 
void SetGroupId (const char *value)
 
AuthorizeSecurityGroupIngressRequestWithGroupId (const Aws::String &value)
 
AuthorizeSecurityGroupIngressRequestWithGroupId (Aws::String &&value)
 
AuthorizeSecurityGroupIngressRequestWithGroupId (const char *value)
 
const Aws::StringGetGroupName () const
 
bool GroupNameHasBeenSet () const
 
void SetGroupName (const Aws::String &value)
 
void SetGroupName (Aws::String &&value)
 
void SetGroupName (const char *value)
 
AuthorizeSecurityGroupIngressRequestWithGroupName (const Aws::String &value)
 
AuthorizeSecurityGroupIngressRequestWithGroupName (Aws::String &&value)
 
AuthorizeSecurityGroupIngressRequestWithGroupName (const char *value)
 
const Aws::Vector< IpPermission > & GetIpPermissions () const
 
bool IpPermissionsHasBeenSet () const
 
void SetIpPermissions (const Aws::Vector< IpPermission > &value)
 
void SetIpPermissions (Aws::Vector< IpPermission > &&value)
 
AuthorizeSecurityGroupIngressRequestWithIpPermissions (const Aws::Vector< IpPermission > &value)
 
AuthorizeSecurityGroupIngressRequestWithIpPermissions (Aws::Vector< IpPermission > &&value)
 
AuthorizeSecurityGroupIngressRequestAddIpPermissions (const IpPermission &value)
 
AuthorizeSecurityGroupIngressRequestAddIpPermissions (IpPermission &&value)
 
const Aws::StringGetIpProtocol () const
 
bool IpProtocolHasBeenSet () const
 
void SetIpProtocol (const Aws::String &value)
 
void SetIpProtocol (Aws::String &&value)
 
void SetIpProtocol (const char *value)
 
AuthorizeSecurityGroupIngressRequestWithIpProtocol (const Aws::String &value)
 
AuthorizeSecurityGroupIngressRequestWithIpProtocol (Aws::String &&value)
 
AuthorizeSecurityGroupIngressRequestWithIpProtocol (const char *value)
 
const Aws::StringGetSourceSecurityGroupName () const
 
bool SourceSecurityGroupNameHasBeenSet () const
 
void SetSourceSecurityGroupName (const Aws::String &value)
 
void SetSourceSecurityGroupName (Aws::String &&value)
 
void SetSourceSecurityGroupName (const char *value)
 
AuthorizeSecurityGroupIngressRequestWithSourceSecurityGroupName (const Aws::String &value)
 
AuthorizeSecurityGroupIngressRequestWithSourceSecurityGroupName (Aws::String &&value)
 
AuthorizeSecurityGroupIngressRequestWithSourceSecurityGroupName (const char *value)
 
const Aws::StringGetSourceSecurityGroupOwnerId () const
 
bool SourceSecurityGroupOwnerIdHasBeenSet () const
 
void SetSourceSecurityGroupOwnerId (const Aws::String &value)
 
void SetSourceSecurityGroupOwnerId (Aws::String &&value)
 
void SetSourceSecurityGroupOwnerId (const char *value)
 
AuthorizeSecurityGroupIngressRequestWithSourceSecurityGroupOwnerId (const Aws::String &value)
 
AuthorizeSecurityGroupIngressRequestWithSourceSecurityGroupOwnerId (Aws::String &&value)
 
AuthorizeSecurityGroupIngressRequestWithSourceSecurityGroupOwnerId (const char *value)
 
int GetToPort () const
 
bool ToPortHasBeenSet () const
 
void SetToPort (int value)
 
AuthorizeSecurityGroupIngressRequestWithToPort (int value)
 
bool GetDryRun () const
 
bool DryRunHasBeenSet () const
 
void SetDryRun (bool value)
 
AuthorizeSecurityGroupIngressRequestWithDryRun (bool value)
 
- Public Member Functions inherited from Aws::EC2::EC2Request
virtual ~EC2Request ()
 
void AddParametersToRequest (Aws::Http::HttpRequest &httpRequest) const
 
Aws::Http::HeaderValueCollection GetHeaders () const override
 
- Public Member Functions inherited from Aws::AmazonSerializableWebServiceRequest
 AmazonSerializableWebServiceRequest ()
 
virtual ~AmazonSerializableWebServiceRequest ()
 
std::shared_ptr< Aws::IOStreamGetBody () const override
 
- Public Member Functions inherited from Aws::AmazonWebServiceRequest
 AmazonWebServiceRequest ()
 
virtual ~AmazonWebServiceRequest ()=default
 
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 SignBody () const
 
virtual bool IsChunked () const
 
virtual void SetRequestSignedHandler (const RequestSignedHandler &handler)
 
virtual const RequestSignedHandlerGetRequestSignedHandler () const
 
const Aws::IOStreamFactoryGetResponseStreamFactory () const
 
void SetResponseStreamFactory (const Aws::IOStreamFactory &factory)
 
virtual void SetDataReceivedEventHandler (const Aws::Http::DataReceivedEventHandler &dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (const Aws::Http::DataSentEventHandler &dataSentEventHandler)
 
virtual void SetContinueRequestHandler (const Aws::Http::ContinueRequestHandler &continueRequestHandler)
 
virtual void SetDataReceivedEventHandler (Aws::Http::DataReceivedEventHandler &&dataReceivedEventHandler)
 
virtual void SetDataSentEventHandler (Aws::Http::DataSentEventHandler &&dataSentEventHandler)
 
virtual void SetContinueRequestHandler (Aws::Http::ContinueRequestHandler &&continueRequestHandler)
 
virtual void SetRequestRetryHandler (const RequestRetryHandler &handler)
 
virtual void SetRequestRetryHandler (RequestRetryHandler &&handler)
 
virtual const Aws::Http::DataReceivedEventHandlerGetDataReceivedEventHandler () const
 
virtual const Aws::Http::DataSentEventHandlerGetDataSentEventHandler () const
 
virtual const Aws::Http::ContinueRequestHandlerGetContinueRequestHandler () const
 
virtual const RequestRetryHandlerGetRequestRetryHandler () const
 
virtual bool ShouldComputeContentMd5 () const
 

Protected Member Functions

void DumpBodyToUrl (Aws::Http::URI &uri) const override
 
- Protected Member Functions inherited from Aws::EC2::EC2Request
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders () const
 

Detailed Description

Definition at line 23 of file AuthorizeSecurityGroupIngressRequest.h.

Constructor & Destructor Documentation

◆ AuthorizeSecurityGroupIngressRequest()

Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::AuthorizeSecurityGroupIngressRequest ( )

Member Function Documentation

◆ AddIpPermissions() [1/2]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::AddIpPermissions ( const IpPermission value)
inline

The sets of IP permissions.

Definition at line 282 of file AuthorizeSecurityGroupIngressRequest.h.

◆ AddIpPermissions() [2/2]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::AddIpPermissions ( IpPermission &&  value)
inline

The sets of IP permissions.

Definition at line 287 of file AuthorizeSecurityGroupIngressRequest.h.

◆ CidrIpHasBeenSet()

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

The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 55 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 616 of file AuthorizeSecurityGroupIngressRequest.h.

◆ DumpBodyToUrl()

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

Default does nothing. Override this to convert what would otherwise be the payload of the request to a query string format.

Reimplemented from Aws::AmazonWebServiceRequest.

◆ FromPortHasBeenSet()

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

The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all types. If you specify all ICMP types, you must specify all codes.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 122 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetCidrIp()

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

The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 47 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 608 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetFromPort()

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

The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all types. If you specify all ICMP types, you must specify all codes.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 113 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetGroupId()

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

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

Definition at line 148 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetGroupName()

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

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

Definition at line 204 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetIpPermissions()

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

The sets of IP permissions.

Definition at line 252 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 icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 301 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

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

Definition at line 403 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetSourceSecurityGroupOwnerId()

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

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

Definition at line 485 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetToPort()

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

The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all codes. If you specify all ICMP types, you must specify all codes.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 572 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GroupIdHasBeenSet()

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

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

Definition at line 155 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GroupNameHasBeenSet()

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

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

Definition at line 210 of file AuthorizeSecurityGroupIngressRequest.h.

◆ IpPermissionsHasBeenSet()

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

The sets of IP permissions.

Definition at line 257 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 icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 314 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SerializePayload()

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

Convert payload into String.

Implements Aws::AmazonSerializableWebServiceRequest.

◆ SetCidrIp() [1/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetCidrIp ( const Aws::String value)
inline

The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 63 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetCidrIp() [2/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetCidrIp ( Aws::String &&  value)
inline

The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 71 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetCidrIp() [3/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetCidrIp ( const char *  value)
inline

The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 79 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 624 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetFromPort()

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

The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all types. If you specify all ICMP types, you must specify all codes.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 131 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetGroupId() [1/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetGroupId ( const Aws::String value)
inline

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

Definition at line 162 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetGroupId() [2/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetGroupId ( Aws::String &&  value)
inline

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

Definition at line 169 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetGroupId() [3/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetGroupId ( const char *  value)
inline

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

Definition at line 176 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetGroupName() [1/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetGroupName ( const Aws::String value)
inline

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

Definition at line 216 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetGroupName() [2/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetGroupName ( Aws::String &&  value)
inline

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

Definition at line 222 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetGroupName() [3/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetGroupName ( const char *  value)
inline

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

Definition at line 228 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetIpPermissions() [1/2]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetIpPermissions ( const Aws::Vector< IpPermission > &  value)
inline

The sets of IP permissions.

Definition at line 262 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetIpPermissions() [2/2]

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

The sets of IP permissions.

Definition at line 267 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetIpProtocol() [1/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetIpProtocol ( const Aws::String value)
inline

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). To specify icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 327 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetIpProtocol() [2/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetIpProtocol ( Aws::String &&  value)
inline

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). To specify icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 340 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetIpProtocol() [3/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetIpProtocol ( const char *  value)
inline

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). To specify icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 353 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetSourceSecurityGroupName() [1/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetSourceSecurityGroupName ( const Aws::String value)
inline

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

Definition at line 423 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetSourceSecurityGroupName() [2/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetSourceSecurityGroupName ( Aws::String &&  value)
inline

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

Definition at line 433 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetSourceSecurityGroupName() [3/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetSourceSecurityGroupName ( const char *  value)
inline

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

Definition at line 443 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetSourceSecurityGroupOwnerId() [1/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetSourceSecurityGroupOwnerId ( const Aws::String value)
inline

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

Definition at line 507 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetSourceSecurityGroupOwnerId() [2/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetSourceSecurityGroupOwnerId ( Aws::String &&  value)
inline

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

Definition at line 518 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetSourceSecurityGroupOwnerId() [3/3]

void Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::SetSourceSecurityGroupOwnerId ( const char *  value)
inline

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

Definition at line 529 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SetToPort()

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

The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all codes. If you specify all ICMP types, you must specify all codes.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 590 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SourceSecurityGroupNameHasBeenSet()

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

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

Definition at line 413 of file AuthorizeSecurityGroupIngressRequest.h.

◆ SourceSecurityGroupOwnerIdHasBeenSet()

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

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

Definition at line 496 of file AuthorizeSecurityGroupIngressRequest.h.

◆ ToPortHasBeenSet()

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

The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all codes. If you specify all ICMP types, you must specify all codes.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 581 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithCidrIp() [1/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithCidrIp ( const Aws::String value)
inline

The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 87 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithCidrIp() [2/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithCidrIp ( Aws::String &&  value)
inline

The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 95 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithCidrIp() [3/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithCidrIp ( const char *  value)
inline

The IPv4 address range, in CIDR format. You can't specify this parameter when specifying a source security group. To specify an IPv6 address range, use a set of IP permissions.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 103 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 632 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithFromPort()

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

The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number, use -1 to specify all types. If you specify all ICMP types, you must specify all codes.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 140 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithGroupId() [1/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithGroupId ( const Aws::String value)
inline

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

Definition at line 183 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithGroupId() [2/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithGroupId ( Aws::String &&  value)
inline

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

Definition at line 190 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithGroupId() [3/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithGroupId ( const char *  value)
inline

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

Definition at line 197 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithGroupName() [1/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithGroupName ( const Aws::String value)
inline

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

Definition at line 234 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithGroupName() [2/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithGroupName ( Aws::String &&  value)
inline

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

Definition at line 240 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithGroupName() [3/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithGroupName ( const char *  value)
inline

[EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request.

Definition at line 246 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithIpPermissions() [1/2]

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

The sets of IP permissions.

Definition at line 272 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithIpPermissions() [2/2]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithIpPermissions ( Aws::Vector< IpPermission > &&  value)
inline

The sets of IP permissions.

Definition at line 277 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithIpProtocol() [1/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithIpProtocol ( const Aws::String value)
inline

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). To specify icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 366 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithIpProtocol() [2/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithIpProtocol ( Aws::String &&  value)
inline

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). To specify icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 379 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithIpProtocol() [3/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithIpProtocol ( const char *  value)
inline

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). To specify icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 392 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithSourceSecurityGroupName() [1/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithSourceSecurityGroupName ( const Aws::String value)
inline

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

Definition at line 453 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithSourceSecurityGroupName() [2/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithSourceSecurityGroupName ( Aws::String &&  value)
inline

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

Definition at line 463 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithSourceSecurityGroupName() [3/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithSourceSecurityGroupName ( const char *  value)
inline

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

Definition at line 473 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithSourceSecurityGroupOwnerId() [1/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithSourceSecurityGroupOwnerId ( const Aws::String value)
inline

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

Definition at line 540 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithSourceSecurityGroupOwnerId() [2/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithSourceSecurityGroupOwnerId ( Aws::String &&  value)
inline

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

Definition at line 551 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithSourceSecurityGroupOwnerId() [3/3]

AuthorizeSecurityGroupIngressRequest& Aws::EC2::Model::AuthorizeSecurityGroupIngressRequest::WithSourceSecurityGroupOwnerId ( const char *  value)
inline

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

Definition at line 562 of file AuthorizeSecurityGroupIngressRequest.h.

◆ WithToPort()

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

The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number, use -1 to specify all codes. If you specify all ICMP types, you must specify all codes.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

Definition at line 599 of file AuthorizeSecurityGroupIngressRequest.h.


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