ElasticIpConfigurationProperty Struct Added in v2.278.0
Specifies whether Lambda assigns an Elastic IP address to each of the network connector's elastic network interfaces (ENIs).
If you don't specify an Elastic IP configuration, no Elastic IP address is assigned. When you update this configuration, the change applies to the ENIs of the new connector version.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const elasticIpConfigurationProperty: lambda.CfnNetworkConnector.ElasticIpConfigurationProperty = {
type: 'type',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
elastic_ip_configuration_property = lambda.CfnNetworkConnector.ElasticIpConfigurationProperty(
type="type"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
ElasticIpConfigurationProperty elasticIpConfigurationProperty = ElasticIpConfigurationProperty.builder()
.type("type")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var elasticIpConfigurationProperty = new ElasticIpConfigurationProperty {
Type = "type"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
elasticIpConfigurationProperty := &ElasticIpConfigurationProperty{
Type: jsii.String("type"),
}
Properties
The Elastic IP address type for the connector's ENIs.
notes
With None, Lambda doesn't assign an Elastic IP address. With ServiceManaged, Lambda allocates a service-managed Elastic IP address in your account for each ENI, associates it with that ENI, and releases it when it deletes the ENI. The connector's operator role must allow the ec2:AllocateAddress and ec2:AssociateAddress actions on Elastic IP addresses and on the connector's ENIs.