@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
101 lines (100 loc) • 5.1 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
/**
* Creates an AWS Batch quota share. Each quota share operates as a virtual queue with a configured compute capacity, resource sharing strategy, and borrow limits.
*/
export declare class QuotaShare extends pulumi.CustomResource {
/**
* Get an existing QuotaShare resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): QuotaShare;
/**
* Returns true if the given object is an instance of QuotaShare. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is QuotaShare;
/**
* A list that specifies the quantity and type of compute capacity allocated to the quota share.
*/
readonly capacityLimits: pulumi.Output<outputs.batch.QuotaShareCapacityLimit[]>;
/**
* The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the `VALID` state before you can associate it with a quota share.
*/
readonly jobQueue: pulumi.Output<string>;
/**
* Specifies the preemption behavior for jobs in a quota share.
*/
readonly preemptionConfiguration: pulumi.Output<outputs.batch.QuotaSharePreemptionConfiguration>;
/**
* The Amazon Resource Name (ARN) of the quota share.
*/
readonly quotaShareArn: pulumi.Output<string>;
/**
* The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
*/
readonly quotaShareName: pulumi.Output<string>;
/**
* Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
*/
readonly resourceSharingConfiguration: pulumi.Output<outputs.batch.QuotaShareResourceSharingConfiguration>;
/**
* The state of the quota share. If the quota share is `ENABLED`, it is able to accept jobs. If the quota share is `DISABLED`, new jobs won't be accepted but jobs already submitted can finish. The default state is `ENABLED`.
*/
readonly state: pulumi.Output<enums.batch.QuotaShareState | undefined>;
/**
* The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Create a QuotaShare resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: QuotaShareArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a QuotaShare resource.
*/
export interface QuotaShareArgs {
/**
* A list that specifies the quantity and type of compute capacity allocated to the quota share.
*/
capacityLimits: pulumi.Input<pulumi.Input<inputs.batch.QuotaShareCapacityLimitArgs>[]>;
/**
* The AWS Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the `VALID` state before you can associate it with a quota share.
*/
jobQueue: pulumi.Input<string>;
/**
* Specifies the preemption behavior for jobs in a quota share.
*/
preemptionConfiguration: pulumi.Input<inputs.batch.QuotaSharePreemptionConfigurationArgs>;
/**
* The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
*/
quotaShareName?: pulumi.Input<string>;
/**
* Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
*/
resourceSharingConfiguration: pulumi.Input<inputs.batch.QuotaShareResourceSharingConfigurationArgs>;
/**
* The state of the quota share. If the quota share is `ENABLED`, it is able to accept jobs. If the quota share is `DISABLED`, new jobs won't be accepted but jobs already submitted can finish. The default state is `ENABLED`.
*/
state?: pulumi.Input<enums.batch.QuotaShareState>;
/**
* The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}