public class VpcConfig extends Object implements Serializable, Cloneable
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
Constructor and Description |
---|
VpcConfig() |
Modifier and Type | Method and Description |
---|---|
VpcConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupIds()
A list of one or more security groups IDs in your VPC.
|
List<String> |
getSubnetIds()
A list of one or more subnet IDs in your VPC.
|
int |
hashCode() |
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
A list of one or more security groups IDs in your VPC.
|
void |
setSubnetIds(Collection<String> subnetIds)
A list of one or more subnet IDs in your VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VpcConfig |
withSecurityGroupIds(Collection<String> securityGroupIds)
A list of one or more security groups IDs in your VPC.
|
VpcConfig |
withSecurityGroupIds(String... securityGroupIds)
A list of one or more security groups IDs in your VPC.
|
VpcConfig |
withSubnetIds(Collection<String> subnetIds)
A list of one or more subnet IDs in your VPC.
|
VpcConfig |
withSubnetIds(String... subnetIds)
A list of one or more subnet IDs in your VPC.
|
public List<String> getSubnetIds()
Constraints:
Length: 0 - 16
public void setSubnetIds(Collection<String> subnetIds)
Constraints:
Length: 0 - 16
subnetIds
- A list of one or more subnet IDs in your VPC.public VpcConfig withSubnetIds(String... subnetIds)
NOTE: This method appends the values to the existing list (if
any). Use setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 16
subnetIds
- A list of one or more subnet IDs in your VPC.public VpcConfig withSubnetIds(Collection<String> subnetIds)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 16
subnetIds
- A list of one or more subnet IDs in your VPC.public List<String> getSecurityGroupIds()
Constraints:
Length: 0 - 5
public void setSecurityGroupIds(Collection<String> securityGroupIds)
Constraints:
Length: 0 - 5
securityGroupIds
- A list of one or more security groups IDs in your VPC.public VpcConfig withSecurityGroupIds(String... securityGroupIds)
NOTE: This method appends the values to the existing list (if
any). Use setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you want to override
the existing values.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
securityGroupIds
- A list of one or more security groups IDs in your VPC.public VpcConfig withSecurityGroupIds(Collection<String> securityGroupIds)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 5
securityGroupIds
- A list of one or more security groups IDs in your VPC.public String toString()
toString
in class Object
Object.toString()
Copyright © 2016. All rights reserved.