AWS SDK for C++  1.7.224
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 33 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 292 of file AuthorizeSecurityGroupIngressRequest.h.

◆ AddIpPermissions() [2/2]

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

The sets of IP permissions.

Definition at line 297 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 65 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 626 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 132 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 57 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 618 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 123 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 158 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 214 of file AuthorizeSecurityGroupIngressRequest.h.

◆ GetIpPermissions()

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

The sets of IP permissions.

Definition at line 262 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 311 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 413 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 495 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 582 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 165 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 220 of file AuthorizeSecurityGroupIngressRequest.h.

◆ IpPermissionsHasBeenSet()

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

The sets of IP permissions.

Definition at line 267 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 324 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 73 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 81 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 89 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 634 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 141 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 172 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 179 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 186 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 226 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 232 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 238 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 272 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 277 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 337 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 350 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 363 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 433 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 443 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 453 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 517 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 528 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 539 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 600 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 423 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 506 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 591 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 97 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 105 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 113 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 642 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 150 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 193 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 200 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 207 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 244 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 250 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 256 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 282 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 287 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 376 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 389 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 402 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 463 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 473 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 483 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 550 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 561 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 572 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 609 of file AuthorizeSecurityGroupIngressRequest.h.


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