EphemeralStorageProperty Struct
The amount of ephemeral storage to allocate for the task.
This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate . For more information, see Using data volumes in tasks in the Amazon ECS Developer Guide; .
For tasks using the Fargate launch type, the task requires the following platforms:
- Linux platform version
1.4.0or later.- Windows platform version
1.0.0or later.
| 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_ecs as ecs } from 'aws-cdk-lib';
const ephemeralStorageProperty: ecs.CfnTaskDefinition.EphemeralStorageProperty = {
sizeInGiB: 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_ecs as ecs
ephemeral_storage_property = ecs.CfnTaskDefinition.EphemeralStorageProperty(
size_in_gi_b=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.ecs.*;
EphemeralStorageProperty ephemeralStorageProperty = EphemeralStorageProperty.builder()
.sizeInGiB(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.ECS;
var ephemeralStorageProperty = new EphemeralStorageProperty {
SizeInGiB = 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"
ephemeralStorageProperty := &EphemeralStorageProperty{
SizeInGiB: jsii.Number(123),
}
Properties
sizeInGiBoptionalnumbersize_in_gi_boptionalint | floatsizeInGiBoptionalNumberSizeInGiBoptionaldoubleSizeInGiBoptional*float64 #The total amount, in GiB, of ephemeral storage to set for the task.
The minimum supported value is 21 GiB and the maximum supported value is 200 GiB.