You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Lambda::Types::VpcConfig

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb

Overview

Note:

When making an API call, you may pass VpcConfig data as a hash:

{
  subnet_ids: ["SubnetId"],
  security_group_ids: ["SecurityGroupId"],
}

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.

Instance Attribute Summary collapse

Instance Attribute Details

#security_group_idsArray<String>

A list of one or more security groups IDs in your VPC.

Returns:

  • (Array<String>)


2299
2300
2301
2302
2303
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 2299

class VpcConfig < Struct.new(
  :subnet_ids,
  :security_group_ids)
  include Aws::Structure
end

#subnet_idsArray<String>

A list of one or more subnet IDs in your VPC.

Returns:

  • (Array<String>)


2299
2300
2301
2302
2303
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 2299

class VpcConfig < Struct.new(
  :subnet_ids,
  :security_group_ids)
  include Aws::Structure
end