UNPKG

1.7 kBTypeScriptView Raw
1import { Construct } from 'constructs';
2import { CommonTaskDefinitionAttributes, CommonTaskDefinitionProps, InferenceAccelerator, ITaskDefinition, TaskDefinition } from '../base/task-definition';
3/**
4 * The properties for a task definition run on an External cluster.
5 */
6export interface ExternalTaskDefinitionProps extends CommonTaskDefinitionProps {
7}
8/**
9 * The interface of a task definition run on an External cluster.
10 */
11export interface IExternalTaskDefinition extends ITaskDefinition {
12}
13/**
14 * Attributes used to import an existing External task definition
15 */
16export interface ExternalTaskDefinitionAttributes extends CommonTaskDefinitionAttributes {
17}
18/**
19 * The details of a task definition run on an External cluster.
20 *
21 * @resource AWS::ECS::TaskDefinition
22 */
23export declare class ExternalTaskDefinition extends TaskDefinition implements IExternalTaskDefinition {
24 /**
25 * Imports a task definition from the specified task definition ARN.
26 */
27 static fromEc2TaskDefinitionArn(scope: Construct, id: string, externalTaskDefinitionArn: string): IExternalTaskDefinition;
28 /**
29 * Imports an existing External task definition from its attributes
30 */
31 static fromExternalTaskDefinitionAttributes(scope: Construct, id: string, attrs: ExternalTaskDefinitionAttributes): IExternalTaskDefinition;
32 /**
33 * Constructs a new instance of the ExternalTaskDefinition class.
34 */
35 constructor(scope: Construct, id: string, props?: ExternalTaskDefinitionProps);
36 /**
37 * Overriden method to throw error as interface accelerators are not supported for external tasks
38 */
39 addInferenceAccelerator(_inferenceAccelerator: InferenceAccelerator): void;
40}