@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:05.609Z") @Stability(value=Deprecated) @Deprecated public interface EcsOptimizedAmiProps extends software.amazon.jsii.JsiiSerializable
Example:
Vpc vpc;
ComputeEnvironment myComputeEnv = ComputeEnvironment.Builder.create(this, "ComputeEnv")
.computeResources(ComputeResources.builder()
.image(EcsOptimizedAmi.Builder.create()
.generation(AmazonLinuxGeneration.AMAZON_LINUX_2)
.build())
.vpc(vpc)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EcsOptimizedAmiProps.Builder
Deprecated.
|
static class |
EcsOptimizedAmiProps.Jsii$Proxy
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static EcsOptimizedAmiProps.Builder |
builder()
Deprecated.
|
default Boolean |
getCachedInContext()
Deprecated.
|
default AmazonLinuxGeneration |
getGeneration()
Deprecated.
|
default AmiHardwareType |
getHardwareType()
Deprecated.
|
default WindowsOptimizedVersion |
getWindowsVersion()
Deprecated.
|
@Stability(value=Deprecated) @Deprecated @Nullable default Boolean getCachedInContext()
By default, the newest image is used on each deployment. This will cause instances to be replaced whenever a new version is released, and may cause downtime if there aren't enough running instances in the AutoScalingGroup to reschedule the tasks on.
If set to true, the AMI ID will be cached in cdk.context.json and the
same value will be used on future runs. Your instances will not be replaced
but your AMI version will grow old over time. To refresh the AMI lookup,
you will have to evict the value from the cache using the cdk context
command. See https://docs.aws.amazon.com/cdk/latest/guide/context.html for
more information.
Can not be set to true in environment-agnostic stacks.
Default: false
@Stability(value=Deprecated) @Deprecated @Nullable default AmazonLinuxGeneration getGeneration()
Default: AmazonLinuxGeneration.AmazonLinux2
@Stability(value=Deprecated) @Deprecated @Nullable default AmiHardwareType getHardwareType()
Default: AmiHardwareType.Standard
@Stability(value=Deprecated) @Deprecated @Nullable default WindowsOptimizedVersion getWindowsVersion()
Default: none, uses Linux generation
@Stability(value=Deprecated) @Deprecated static EcsOptimizedAmiProps.Builder builder()
EcsOptimizedAmiProps.Builder of EcsOptimizedAmiPropsCopyright © 2022. All rights reserved.