1 | import { IRole } from '@aws-cdk/aws-iam';
|
2 | import { Resource } from '@aws-cdk/core';
|
3 | import { Construct } from 'constructs';
|
4 | import { IEc2TaskDefinition } from '../ec2/ec2-task-definition';
|
5 | import { IFargateTaskDefinition } from '../fargate/fargate-task-definition';
|
6 | import { Compatibility, NetworkMode } from './task-definition';
|
7 |
|
8 |
|
9 |
|
10 | export interface ImportedTaskDefinitionProps {
|
11 | |
12 |
|
13 |
|
14 | readonly taskDefinitionArn: string;
|
15 | |
16 |
|
17 |
|
18 |
|
19 |
|
20 | readonly compatibility?: Compatibility;
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 | readonly networkMode?: NetworkMode;
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 | readonly taskRole?: IRole;
|
33 | }
|
34 |
|
35 |
|
36 |
|
37 | export declare class ImportedTaskDefinition extends Resource implements IEc2TaskDefinition, IFargateTaskDefinition {
|
38 | |
39 |
|
40 |
|
41 | readonly compatibility: Compatibility;
|
42 | |
43 |
|
44 |
|
45 | readonly taskDefinitionArn: string;
|
46 | |
47 |
|
48 |
|
49 | readonly executionRole?: IRole;
|
50 | |
51 |
|
52 |
|
53 | readonly _networkMode?: NetworkMode;
|
54 | |
55 |
|
56 |
|
57 | readonly _taskRole?: IRole;
|
58 | constructor(scope: Construct, id: string, props: ImportedTaskDefinitionProps);
|
59 | get networkMode(): NetworkMode;
|
60 | get taskRole(): IRole;
|
61 | /**
|
62 | * Return true if the task definition can be run on an EC2 cluster
|
63 | */
|
64 | get isEc2Compatible(): boolean;
|
65 | /**
|
66 | * Return true if the task definition can be run on a Fargate cluster
|
67 | */
|
68 | get isFargateCompatible(): boolean;
|
69 | /**
|
70 | * Return true if the task definition can be run on a ECS Anywhere cluster
|
71 | */
|
72 | get isExternalCompatible(): boolean;
|
73 | }
|