Class VpcConfig
- All Implemented Interfaces:
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A list of one or more security groups IDs in your VPC.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.toString()
Returns a string representation of this object; useful for testing and debugging.withSecurityGroupIds
(String... securityGroupIds) A list of one or more security groups IDs in your VPC.withSecurityGroupIds
(Collection<String> securityGroupIds) A list of one or more security groups IDs in your VPC.withSubnetIds
(String... subnetIds) A list of one or more subnet IDs in your VPC.withSubnetIds
(Collection<String> subnetIds) A list of one or more subnet IDs in your VPC.
-
Constructor Details
-
VpcConfig
public VpcConfig()
-
-
Method Details
-
getSubnetIds
A list of one or more subnet IDs in your VPC.
- Returns:
- A list of one or more subnet IDs in your VPC.
-
setSubnetIds
A list of one or more subnet IDs in your VPC.
- Parameters:
subnetIds
- A list of one or more subnet IDs in your VPC.
-
withSubnetIds
A list of one or more subnet IDs in your VPC.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
orwithSubnetIds(java.util.Collection)
if you want to override the existing values.- Parameters:
subnetIds
- A list of one or more subnet IDs in your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnetIds
A list of one or more subnet IDs in your VPC.
- Parameters:
subnetIds
- A list of one or more subnet IDs in your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSecurityGroupIds
A list of one or more security groups IDs in your VPC.
- Returns:
- A list of one or more security groups IDs in your VPC.
-
setSecurityGroupIds
A list of one or more security groups IDs in your VPC.
- Parameters:
securityGroupIds
- A list of one or more security groups IDs in your VPC.
-
withSecurityGroupIds
A list of one or more security groups IDs in your VPC.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
orwithSecurityGroupIds(java.util.Collection)
if you want to override the existing values.- Parameters:
securityGroupIds
- A list of one or more security groups IDs in your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSecurityGroupIds
A list of one or more security groups IDs in your VPC.
- Parameters:
securityGroupIds
- A list of one or more security groups IDs in your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-