cdk-nextjs
Version:
Deploy Next.js apps on AWS with CDK
63 lines (62 loc) • 2.26 kB
TypeScript
import type { aws_ec2, aws_ecs } from 'aws-cdk-lib';
/**
* OptionalClusterProps
*/
export interface OptionalClusterProps {
/**
* The VPC where your ECS instances will be running or your ENIs will be deployed.
* @default - creates a new VPC with two AZs
* @stability stable
*/
readonly vpc?: aws_ec2.IVpc;
/**
* Encryption configuration for ECS Managed storage.
* @default - no encryption will be applied.
* @stability stable
*/
readonly managedStorageConfiguration?: aws_ecs.ManagedStorageConfiguration;
/**
* The execute command configuration for the cluster.
* @default - no configuration will be provided.
* @stability stable
*/
readonly executeCommandConfiguration?: aws_ecs.ExecuteCommandConfiguration;
/**
* Whether to enable Fargate Capacity Providers.
* @default false
* @stability stable
*/
readonly enableFargateCapacityProviders?: boolean;
/**
* The service discovery namespace created in this cluster.
* @default - no service discovery namespace created, you can use `addDefaultCloudMapNamespace` to add a
default service discovery namespace later.
* @stability stable
*/
readonly defaultCloudMapNamespace?: aws_ecs.CloudMapNamespaceOptions;
/**
* The CloudWatch Container Insights configuration for the cluster.
* @default {@link ContainerInsights.DISABLED } This may be overridden by ECS account level settings.
* @stability stable
*/
readonly containerInsightsV2?: aws_ecs.ContainerInsights;
/**
* If true CloudWatch Container Insights will be enabled for the cluster.
* @default - Container Insights will be disabled for this cluster.
* @deprecated See {@link containerInsightsV2 }
* @stability deprecated
*/
readonly containerInsights?: boolean;
/**
* The name for the cluster.
* @default CloudFormation-generated name
* @stability stable
*/
readonly clusterName?: string;
/**
* The ec2 capacity to add to the cluster.
* @default - no EC2 capacity will be added, you can use `addCapacity` to add capacity later.
* @stability stable
*/
readonly capacity?: aws_ecs.AddCapacityOptions;
}