Show / Hide Table of Contents

Interface CfnFunctionPropsMixin.IVpcConfigProperty

The VPC security groups and subnets that are attached to a Lambda function.

Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Lambda
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface CfnFunctionPropsMixin.IVpcConfigProperty
Syntax (vb)
Public Interface CfnFunctionPropsMixin.IVpcConfigProperty
Remarks

When you connect a function to a VPC, Lambda creates an elastic network interface for each combination of security group and subnet in the function's VPC configuration. The function can only access resources and the internet through that VPC. For more information, see VPC Settings .

When you delete a function, CloudFormation monitors the state of its network interfaces and waits for Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network interfaces need to be deleted by Lambda before CloudFormation can delete the VPC's resources.

To monitor network interfaces, CloudFormation needs the ec2:DescribeNetworkInterfaces permission. It obtains this from the user or role that modifies the stack. If you don't provide this permission, CloudFormation does not wait for network interfaces to be deleted.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.CfnPropertyMixins.AWS.Lambda;

             var vpcConfigProperty = new VpcConfigProperty {
                 Ipv6AllowedForDualStack = false,
                 SecurityGroupIds = new [] { "securityGroupIds" },
                 SubnetIds = new [] { "subnetIds" }
             };

Synopsis

Properties

Ipv6AllowedForDualStack

Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.

SecurityGroupIds

A list of VPC security group IDs.

SubnetIds

A list of VPC subnet IDs.

Properties

Ipv6AllowedForDualStack

Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.

object? Ipv6AllowedForDualStack { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-ipv6allowedfordualstack

Type union: either bool or IResolvable

SecurityGroupIds

A list of VPC security group IDs.

object[]? SecurityGroupIds { get; }
Property Value

object[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-securitygroupids

Type union: (either string or ISecurityGroupRef)[]

SubnetIds

A list of VPC subnet IDs.

object[]? SubnetIds { get; }
Property Value

object[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-subnetids

Type union: (either string or ISubnetRef)[]

Back to top Generated by DocFX