agent-claw: automated task changes
This commit is contained in:
184
cdk/node_modules/aws-cdk-lib/aws-ecs/lib/ec2/ec2-service.d.ts
generated
vendored
Normal file
184
cdk/node_modules/aws-cdk-lib/aws-ecs/lib/ec2/ec2-service.d.ts
generated
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as ec2 from '../../../aws-ec2';
|
||||
import type * as elb from '../../../aws-elasticloadbalancing';
|
||||
import { AvailabilityZoneRebalancing } from '../availability-zone-rebalancing';
|
||||
import type { BaseServiceOptions, IBaseService, IService } from '../base/base-service';
|
||||
import { BaseService } from '../base/base-service';
|
||||
import type { TaskDefinition } from '../base/task-definition';
|
||||
import type { ICluster } from '../cluster';
|
||||
import type { PlacementConstraint, PlacementStrategy } from '../placement';
|
||||
/**
|
||||
* The properties for defining a service using the EC2 launch type.
|
||||
*/
|
||||
export interface Ec2ServiceProps extends BaseServiceOptions {
|
||||
/**
|
||||
* The task definition to use for tasks in the service.
|
||||
*
|
||||
* [disable-awslint:ref-via-interface]
|
||||
*/
|
||||
readonly taskDefinition: TaskDefinition;
|
||||
/**
|
||||
* Specifies whether the task's elastic network interface receives a public IP address.
|
||||
* If true, each task will receive a public IP address.
|
||||
*
|
||||
* This property is only used for tasks that use the awsvpc network mode.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly assignPublicIp?: boolean;
|
||||
/**
|
||||
* The subnets to associate with the service.
|
||||
*
|
||||
* This property is only used for tasks that use the awsvpc network mode.
|
||||
*
|
||||
* @default - Public subnets if `assignPublicIp` is set, otherwise the first available one of Private, Isolated, Public, in that order.
|
||||
*/
|
||||
readonly vpcSubnets?: ec2.SubnetSelection;
|
||||
/**
|
||||
* The security groups to associate with the service. If you do not specify a security group, a new security group is created.
|
||||
*
|
||||
* This property is only used for tasks that use the awsvpc network mode.
|
||||
*
|
||||
* @default - A new security group is created.
|
||||
*/
|
||||
readonly securityGroups?: ec2.ISecurityGroup[];
|
||||
/**
|
||||
* The placement constraints to use for tasks in the service. For more information, see
|
||||
* [Amazon ECS Task Placement Constraints](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html).
|
||||
*
|
||||
* @default - No constraints.
|
||||
*/
|
||||
readonly placementConstraints?: PlacementConstraint[];
|
||||
/**
|
||||
* The placement strategies to use for tasks in the service. For more information, see
|
||||
* [Amazon ECS Task Placement Strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
|
||||
*
|
||||
* @default - No strategies.
|
||||
*/
|
||||
readonly placementStrategies?: PlacementStrategy[];
|
||||
/**
|
||||
* Specifies whether the service will use the daemon scheduling strategy.
|
||||
* If true, the service scheduler deploys exactly one task on each container instance in your cluster.
|
||||
*
|
||||
* When you are using this strategy, do not specify a desired number of tasks or any task placement strategies.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
readonly daemon?: boolean;
|
||||
/**
|
||||
* Whether to use Availability Zone rebalancing for the service.
|
||||
*
|
||||
* If enabled: `maxHealthyPercent` must be greater than 100; `daemon` must be false; if there
|
||||
* are any `placementStrategies`, the first must be "spread across Availability Zones"; there
|
||||
* must be no `placementConstraints` using `attribute:ecs.availability-zone`, and the
|
||||
* service must not be a target of a Classic Load Balancer.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html
|
||||
* @default AvailabilityZoneRebalancing.ENABLED
|
||||
*/
|
||||
readonly availabilityZoneRebalancing?: AvailabilityZoneRebalancing;
|
||||
}
|
||||
/**
|
||||
* The interface for a service using the EC2 launch type on an ECS cluster.
|
||||
*/
|
||||
export interface IEc2Service extends IService {
|
||||
}
|
||||
/**
|
||||
* The properties to import from the service using the EC2 launch type.
|
||||
*/
|
||||
export interface Ec2ServiceAttributes {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
/**
|
||||
* This creates a service using the EC2 launch type on an ECS cluster.
|
||||
*
|
||||
* @resource AWS::ECS::Service
|
||||
*/
|
||||
export declare class Ec2Service extends BaseService implements IEc2Service {
|
||||
/**
|
||||
* Uniquely identifies this class.
|
||||
*/
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* Imports from the specified service ARN.
|
||||
*/
|
||||
static fromEc2ServiceArn(scope: Construct, id: string, ec2ServiceArn: string): IEc2Service;
|
||||
/**
|
||||
* Imports from the specified service attributes.
|
||||
*/
|
||||
static fromEc2ServiceAttributes(scope: Construct, id: string, attrs: Ec2ServiceAttributes): IBaseService;
|
||||
private readonly constraints;
|
||||
private readonly strategies;
|
||||
private constraintsInitialized;
|
||||
private strategiesInitialized;
|
||||
private readonly daemon;
|
||||
private readonly availabilityZoneRebalancingEnabled;
|
||||
/**
|
||||
* Constructs a new instance of the Ec2Service class.
|
||||
*/
|
||||
constructor(scope: Construct, id: string, props: Ec2ServiceProps);
|
||||
/**
|
||||
* Adds one or more placement strategies to use for tasks in the service. For more information, see
|
||||
* [Amazon ECS Task Placement Strategies](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html).
|
||||
*/
|
||||
addPlacementStrategies(...newStrategies: PlacementStrategy[]): void;
|
||||
/**
|
||||
* Adds one or more placement constraints to use for tasks in the service. For more information, see
|
||||
* [Amazon ECS Task Placement Constraints](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html).
|
||||
*/
|
||||
addPlacementConstraints(...constraints: PlacementConstraint[]): void;
|
||||
/**
|
||||
* Validates this Ec2Service.
|
||||
*/
|
||||
private validateEc2Service;
|
||||
/**
|
||||
* Registers the service as a target of a Classic Load Balancer (CLB).
|
||||
*
|
||||
* Don't call this. Call `loadBalancer.addTarget()` instead.
|
||||
*
|
||||
* @override
|
||||
*/
|
||||
attachToClassicLB(loadBalancer: elb.LoadBalancer): void;
|
||||
}
|
||||
/**
|
||||
* The built-in container instance attributes
|
||||
*/
|
||||
export declare class BuiltInAttributes {
|
||||
/**
|
||||
* The id of the instance.
|
||||
*/
|
||||
static readonly INSTANCE_ID = "instanceId";
|
||||
/**
|
||||
* The AvailabilityZone where the instance is running in.
|
||||
*/
|
||||
static readonly AVAILABILITY_ZONE = "attribute:ecs.availability-zone";
|
||||
/**
|
||||
* The AMI id the instance is using.
|
||||
*/
|
||||
static readonly AMI_ID = "attribute:ecs.ami-id";
|
||||
/**
|
||||
* The EC2 instance type.
|
||||
*/
|
||||
static readonly INSTANCE_TYPE = "attribute:ecs.instance-type";
|
||||
/**
|
||||
* The operating system of the instance.
|
||||
*
|
||||
* Either 'linux' or 'windows'.
|
||||
*/
|
||||
static readonly OS_TYPE = "attribute:ecs.os-type";
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-ecs/lib/ec2/ec2-service.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-ecs/lib/ec2/ec2-service.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
93
cdk/node_modules/aws-cdk-lib/aws-ecs/lib/ec2/ec2-task-definition.d.ts
generated
vendored
Normal file
93
cdk/node_modules/aws-cdk-lib/aws-ecs/lib/ec2/ec2-task-definition.d.ts
generated
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type { CommonTaskDefinitionAttributes, CommonTaskDefinitionProps, InferenceAccelerator, IpcMode, ITaskDefinition, PidMode } from '../base/task-definition';
|
||||
import { NetworkMode, TaskDefinition } from '../base/task-definition';
|
||||
import type { ContainerDefinition, ContainerDefinitionOptions } from '../container-definition';
|
||||
import type { PlacementConstraint } from '../placement';
|
||||
/**
|
||||
* The properties for a task definition run on an EC2 cluster.
|
||||
*/
|
||||
export interface Ec2TaskDefinitionProps extends CommonTaskDefinitionProps {
|
||||
/**
|
||||
* The Docker networking mode to use for the containers in the task.
|
||||
*
|
||||
* The valid values are NONE, BRIDGE, AWS_VPC, and HOST.
|
||||
*
|
||||
* @default - NetworkMode.BRIDGE for EC2 tasks, AWS_VPC for Fargate tasks.
|
||||
*/
|
||||
readonly networkMode?: NetworkMode;
|
||||
/**
|
||||
* An array of placement constraint objects to use for the task. You can
|
||||
* specify a maximum of 10 constraints per task (this limit includes
|
||||
* constraints in the task definition and those specified at run time).
|
||||
*
|
||||
* @default - No placement constraints.
|
||||
*/
|
||||
readonly placementConstraints?: PlacementConstraint[];
|
||||
/**
|
||||
* The IPC resource namespace to use for the containers in the task.
|
||||
*
|
||||
* Not supported in Fargate and Windows containers.
|
||||
*
|
||||
* @default - IpcMode used by the task is not specified
|
||||
*/
|
||||
readonly ipcMode?: IpcMode;
|
||||
/**
|
||||
* The process namespace to use for the containers in the task.
|
||||
*
|
||||
* Not supported in Windows containers.
|
||||
*
|
||||
* @default - PidMode used by the task is not specified
|
||||
*/
|
||||
readonly pidMode?: PidMode;
|
||||
/**
|
||||
* The inference accelerators to use for the containers in the task.
|
||||
*
|
||||
* Not supported in Fargate.
|
||||
*
|
||||
* @default - No inference accelerators.
|
||||
*/
|
||||
readonly inferenceAccelerators?: InferenceAccelerator[];
|
||||
}
|
||||
/**
|
||||
* The interface of a task definition run on an EC2 cluster.
|
||||
*/
|
||||
export interface IEc2TaskDefinition extends ITaskDefinition {
|
||||
}
|
||||
/**
|
||||
* Attributes used to import an existing EC2 task definition
|
||||
*/
|
||||
export interface Ec2TaskDefinitionAttributes extends CommonTaskDefinitionAttributes {
|
||||
}
|
||||
/**
|
||||
* The details of a task definition run on an EC2 cluster.
|
||||
*
|
||||
* @resource AWS::ECS::TaskDefinition
|
||||
*/
|
||||
export declare class Ec2TaskDefinition extends TaskDefinition implements IEc2TaskDefinition {
|
||||
/**
|
||||
* Uniquely identifies this class.
|
||||
*/
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* Imports a task definition from the specified task definition ARN.
|
||||
*/
|
||||
static fromEc2TaskDefinitionArn(scope: Construct, id: string, ec2TaskDefinitionArn: string): IEc2TaskDefinition;
|
||||
/**
|
||||
* Imports an existing Ec2 task definition from its attributes
|
||||
*/
|
||||
static fromEc2TaskDefinitionAttributes(scope: Construct, id: string, attrs: Ec2TaskDefinitionAttributes): IEc2TaskDefinition;
|
||||
/**
|
||||
* Validates the placement constraints to make sure they are supported.
|
||||
* Currently, only 'memberOf' is a valid constraint for an Ec2TaskDefinition.
|
||||
*/
|
||||
private static validatePlacementConstraints;
|
||||
/**
|
||||
* Constructs a new instance of the Ec2TaskDefinition class.
|
||||
*/
|
||||
constructor(scope: Construct, id: string, props?: Ec2TaskDefinitionProps);
|
||||
/**
|
||||
* Tasks running in AWSVPC networking mode requires an additional environment variable for the region to be sourced.
|
||||
* This override adds in the additional environment variable as required
|
||||
*/
|
||||
addContainer(id: string, props: ContainerDefinitionOptions): ContainerDefinition;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-ecs/lib/ec2/ec2-task-definition.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-ecs/lib/ec2/ec2-task-definition.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user