Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-ecs/lib/base/from-service-attributes.d.ts
2026-05-06 18:55:16 -05:00

27 lines
830 B
TypeScript

import type { Construct } from 'constructs';
import type { IBaseService } from '../base/base-service';
import type { ICluster } from '../cluster';
/**
* The properties to import from the service.
*/
export interface ServiceAttributes {
/**
* The cluster that hosts the service.
*/
readonly cluster: ICluster;
/**
* The service ARN.
*
* @default - either this, or `serviceName`, is required
*/
readonly serviceArn?: string;
/**
* The name of the service.
*
* @default - either this, or `serviceArn`, is required
*/
readonly serviceName?: string;
}
export declare function fromServiceAttributes(scope: Construct, id: string, attrs: ServiceAttributes): IBaseService;
export declare function extractServiceNameFromArn(scope: Construct, arn: string): string;