AcceleratorConfigProperty Struct Added in v2.278.0
| 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 acceleratorConfigProperty: lambda.CfnFunction.AcceleratorConfigProperty = {
acceleratorMemorySize: 123,
};
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_
accelerator_config_property = lambda.CfnFunction.AcceleratorConfigProperty(
accelerator_memory_size=123
)
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.*;
AcceleratorConfigProperty acceleratorConfigProperty = AcceleratorConfigProperty.builder()
.acceleratorMemorySize(123)
.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 acceleratorConfigProperty = new AcceleratorConfigProperty {
AcceleratorMemorySize = 123
};
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"
acceleratorConfigProperty := &AcceleratorConfigProperty{
AcceleratorMemorySize: jsii.Number(123),
}
Properties
acceleratorMemorySizenumberaccelerator_memory_sizeint | floatacceleratorMemorySizeNumberAcceleratorMemorySizedoubleAcceleratorMemorySize*float64 required #The minimum amount of memory (in GB) of each accelerator device exposed to the execution environment.
Lambda might allocate more, depending on the accelerator instance types available. Valid values: 3, 6, 12, 16, 24, 48.