UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

41 lines (40 loc) 1.63 kB
import { SubnetSelection } from '../../../aws-ec2'; import { FargateService, FargateTaskDefinition } from '../../../aws-ecs'; import { Construct } from 'constructs'; import { FargateServiceBaseProps } from '../base/fargate-service-base'; import { NetworkLoadBalancedServiceBase, NetworkLoadBalancedServiceBaseProps } from '../base/network-load-balanced-service-base'; /** * The properties for the NetworkLoadBalancedFargateService service. */ export interface NetworkLoadBalancedFargateServiceProps extends NetworkLoadBalancedServiceBaseProps, FargateServiceBaseProps { /** * Determines whether the service will be assigned a public IP address. * * @default false */ readonly assignPublicIp?: boolean; /** * The subnets to associate with the service. * * @default - Public subnets if `assignPublicIp` is set, otherwise the first available one of Private, Isolated, Public, in that order. */ readonly taskSubnets?: SubnetSelection; } /** * A Fargate service running on an ECS cluster fronted by a network load balancer. */ export declare class NetworkLoadBalancedFargateService extends NetworkLoadBalancedServiceBase { readonly assignPublicIp: boolean; /** * The Fargate service in this construct. */ readonly service: FargateService; /** * The Fargate task definition in this construct. */ readonly taskDefinition: FargateTaskDefinition; /** * Constructs a new instance of the NetworkLoadBalancedFargateService class. */ constructor(scope: Construct, id: string, props?: NetworkLoadBalancedFargateServiceProps); }