52 lines
2.2 KiB
TypeScript
52 lines
2.2 KiB
TypeScript
import type { Construct } from 'constructs';
|
|
import type { IComputeEnvironment, ComputeEnvironmentProps } from './compute-environment-base';
|
|
import { ComputeEnvironmentBase } from './compute-environment-base';
|
|
/**
|
|
* Represents an UnmanagedComputeEnvironment. Batch will not provision instances on your behalf
|
|
* in this ComputeEvironment.
|
|
*/
|
|
export interface IUnmanagedComputeEnvironment extends IComputeEnvironment {
|
|
/**
|
|
* The vCPUs this Compute Environment provides. Used only by the
|
|
* scheduler to schedule jobs in `Queue`s that use `FairshareSchedulingPolicy`s.
|
|
*
|
|
* **If this parameter is not provided on a fairshare queue, no capacity is reserved**;
|
|
* that is, the `FairshareSchedulingPolicy` is ignored.
|
|
*/
|
|
readonly unmanagedvCPUs?: number;
|
|
}
|
|
/**
|
|
* Represents an UnmanagedComputeEnvironment. Batch will not provision instances on your behalf
|
|
* in this ComputeEvironment.
|
|
*/
|
|
export interface UnmanagedComputeEnvironmentProps extends ComputeEnvironmentProps {
|
|
/**
|
|
* The vCPUs this Compute Environment provides. Used only by the
|
|
* scheduler to schedule jobs in `Queue`s that use `FairshareSchedulingPolicy`s.
|
|
*
|
|
* **If this parameter is not provided on a fairshare queue, no capacity is reserved**;
|
|
* that is, the `FairshareSchedulingPolicy` is ignored.
|
|
*
|
|
* @default 0
|
|
*/
|
|
readonly unmanagedvCpus?: number;
|
|
}
|
|
/**
|
|
* Unmanaged ComputeEnvironments do not provision or manage EC2 instances on your behalf.
|
|
*
|
|
* @resource AWS::Batch::ComputeEnvironment
|
|
*/
|
|
export declare class UnmanagedComputeEnvironment extends ComputeEnvironmentBase implements IUnmanagedComputeEnvironment {
|
|
/** Uniquely identifies this class. */
|
|
static readonly PROPERTY_INJECTION_ID: string;
|
|
/**
|
|
* Import an UnmanagedComputeEnvironment by its arn
|
|
*/
|
|
static fromUnmanagedComputeEnvironmentArn(scope: Construct, id: string, unmanagedComputeEnvironmentArn: string): IUnmanagedComputeEnvironment;
|
|
readonly unmanagedvCPUs?: number | undefined;
|
|
private readonly resource;
|
|
get computeEnvironmentArn(): string;
|
|
get computeEnvironmentName(): string;
|
|
constructor(scope: Construct, id: string, props?: UnmanagedComputeEnvironmentProps);
|
|
}
|