UNPKG

737 BTypeScriptView Raw
1import { Construct } from 'constructs';
2import { IBaseService } from '../base/base-service';
3import { ICluster } from '../cluster';
4/**
5 * The properties to import from the service.
6 */
7export interface ServiceAttributes {
8 /**
9 * The cluster that hosts the service.
10 */
11 readonly cluster: ICluster;
12 /**
13 * The service ARN.
14 *
15 * @default - either this, or {@link serviceName}, is required
16 */
17 readonly serviceArn?: string;
18 /**
19 * The name of the service.
20 *
21 * @default - either this, or {@link serviceArn}, is required
22 */
23 readonly serviceName?: string;
24}
25export declare function fromServiceAtrributes(scope: Construct, id: string, attrs: ServiceAttributes): IBaseService;