@pulumi/aws 4.33.0 → 4.34.0-alpha.1641572025
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appstream/fleet.d.ts +3 -3
- package/batch/getJobQueue.d.ts +4 -0
- package/batch/getJobQueue.js.map +1 -1
- package/batch/getSchedulingPolicy.d.ts +69 -0
- package/batch/getSchedulingPolicy.js +39 -0
- package/batch/getSchedulingPolicy.js.map +1 -0
- package/batch/index.d.ts +2 -0
- package/batch/index.js +6 -0
- package/batch/index.js.map +1 -1
- package/batch/jobQueue.d.ts +37 -0
- package/batch/jobQueue.js +27 -0
- package/batch/jobQueue.js.map +1 -1
- package/batch/schedulingPolicy.d.ts +134 -0
- package/batch/schedulingPolicy.js +97 -0
- package/batch/schedulingPolicy.js.map +1 -0
- package/cloud9/environmentMembership.d.ts +106 -0
- package/cloud9/environmentMembership.js +92 -0
- package/cloud9/environmentMembership.js.map +1 -0
- package/cloud9/index.d.ts +1 -0
- package/cloud9/index.js +5 -0
- package/cloud9/index.js.map +1 -1
- package/cloudwatch/eventTarget.d.ts +48 -3
- package/cloudwatch/eventTarget.js +45 -0
- package/cloudwatch/eventTarget.js.map +1 -1
- package/codebuild/index.d.ts +1 -0
- package/codebuild/index.js +5 -0
- package/codebuild/index.js.map +1 -1
- package/codebuild/project.d.ts +49 -5
- package/codebuild/project.js +8 -0
- package/codebuild/project.js.map +1 -1
- package/codebuild/resourcePolicy.d.ts +108 -0
- package/codebuild/resourcePolicy.js +107 -0
- package/codebuild/resourcePolicy.js.map +1 -0
- package/codepipeline/webhook.d.ts +8 -0
- package/codepipeline/webhook.js +2 -0
- package/codepipeline/webhook.js.map +1 -1
- package/cognito/getUserPoolClients.d.ts +49 -0
- package/cognito/getUserPoolClients.js +38 -0
- package/cognito/getUserPoolClients.js.map +1 -0
- package/cognito/getUserPoolSigningCertificate.d.ts +49 -0
- package/cognito/getUserPoolSigningCertificate.js +38 -0
- package/cognito/getUserPoolSigningCertificate.js.map +1 -0
- package/cognito/index.d.ts +2 -0
- package/cognito/index.js +2 -0
- package/cognito/index.js.map +1 -1
- package/datasync/index.d.ts +2 -0
- package/datasync/index.js +10 -0
- package/datasync/index.js.map +1 -1
- package/datasync/locationFsxLustre.d.ts +155 -0
- package/datasync/locationFsxLustre.js +94 -0
- package/datasync/locationFsxLustre.js.map +1 -0
- package/datasync/locationHdfs.d.ts +257 -0
- package/datasync/locationHdfs.js +117 -0
- package/datasync/locationHdfs.js.map +1 -0
- package/dax/cluster.d.ts +18 -0
- package/dax/cluster.js +2 -0
- package/dax/cluster.js.map +1 -1
- package/devicefarm/devicePool.d.ts +170 -0
- package/devicefarm/devicePool.js +100 -0
- package/devicefarm/devicePool.js.map +1 -0
- package/devicefarm/index.d.ts +3 -0
- package/devicefarm/index.js +15 -0
- package/devicefarm/index.js.map +1 -1
- package/devicefarm/networkProfile.d.ts +247 -0
- package/devicefarm/networkProfile.js +105 -0
- package/devicefarm/networkProfile.js.map +1 -0
- package/devicefarm/upload.d.ts +142 -0
- package/devicefarm/upload.js +97 -0
- package/devicefarm/upload.js.map +1 -0
- package/directconnect/privateVirtualInterface.d.ts +3 -0
- package/directconnect/privateVirtualInterface.js +2 -0
- package/directconnect/privateVirtualInterface.js.map +1 -1
- package/directconnect/transitVirtualInterface.d.ts +3 -0
- package/directconnect/transitVirtualInterface.js +2 -0
- package/directconnect/transitVirtualInterface.js.map +1 -1
- package/ec2/defaultSubnet.d.ts +15 -0
- package/ec2/defaultSubnet.js +10 -0
- package/ec2/defaultSubnet.js.map +1 -1
- package/ec2/getSubnet.d.ts +20 -0
- package/ec2/getSubnet.js.map +1 -1
- package/ec2/index.d.ts +3 -0
- package/ec2/index.js +15 -0
- package/ec2/index.js.map +1 -1
- package/ec2/subnet.d.ts +65 -5
- package/ec2/subnet.js +10 -3
- package/ec2/subnet.js.map +1 -1
- package/ec2/vpcEndpointConnectionAccepter.d.ts +105 -0
- package/ec2/vpcEndpointConnectionAccepter.js +98 -0
- package/ec2/vpcEndpointConnectionAccepter.js.map +1 -0
- package/ec2/vpcIpamOrganizationAdminAccount.d.ts +94 -0
- package/ec2/vpcIpamOrganizationAdminAccount.js +85 -0
- package/ec2/vpcIpamOrganizationAdminAccount.js.map +1 -0
- package/ec2/vpcIpamPoolCidr.d.ts +3 -0
- package/ec2/vpcIpamPoolCidr.js +3 -0
- package/ec2/vpcIpamPoolCidr.js.map +1 -1
- package/ec2/vpcIpamPoolCidrAllocation.d.ts +3 -3
- package/ec2/vpcIpamPreviewNextCidr.d.ts +100 -0
- package/ec2/vpcIpamPreviewNextCidr.js +90 -0
- package/ec2/vpcIpamPreviewNextCidr.js.map +1 -0
- package/ecr/replicationConfiguration.d.ts +22 -0
- package/ecr/replicationConfiguration.js +22 -0
- package/ecr/replicationConfiguration.js.map +1 -1
- package/ecs/getTaskDefinition.d.ts +39 -0
- package/ecs/getTaskDefinition.js +35 -0
- package/ecs/getTaskDefinition.js.map +1 -1
- package/fsx/backup.d.ts +15 -0
- package/fsx/backup.js +15 -0
- package/fsx/backup.js.map +1 -1
- package/fsx/index.d.ts +3 -0
- package/fsx/index.js +15 -0
- package/fsx/index.js.map +1 -1
- package/fsx/openZfsFileSystem.d.ts +341 -0
- package/fsx/openZfsFileSystem.js +144 -0
- package/fsx/openZfsFileSystem.js.map +1 -0
- package/fsx/openZfsSnapshot.d.ts +149 -0
- package/fsx/openZfsSnapshot.js +107 -0
- package/fsx/openZfsSnapshot.js.map +1 -0
- package/fsx/openZfsVolume.d.ts +225 -0
- package/fsx/openZfsVolume.js +101 -0
- package/fsx/openZfsVolume.js.map +1 -0
- package/glue/trigger.d.ts +15 -3
- package/glue/trigger.js +2 -0
- package/glue/trigger.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +7 -2
- package/index.js.map +1 -1
- package/memorydb/acl.d.ts +142 -0
- package/memorydb/acl.js +90 -0
- package/memorydb/acl.js.map +1 -0
- package/memorydb/cluster.d.ts +388 -0
- package/memorydb/cluster.js +140 -0
- package/memorydb/cluster.js.map +1 -0
- package/memorydb/index.d.ts +5 -0
- package/memorydb/index.js +53 -0
- package/memorydb/index.js.map +1 -0
- package/memorydb/parameterGroup.d.ts +160 -0
- package/memorydb/parameterGroup.js +96 -0
- package/memorydb/parameterGroup.js.map +1 -0
- package/memorydb/subnetGroup.d.ts +146 -0
- package/memorydb/subnetGroup.js +96 -0
- package/memorydb/subnetGroup.js.map +1 -0
- package/memorydb/user.d.ts +138 -0
- package/memorydb/user.js +83 -0
- package/memorydb/user.js.map +1 -0
- package/mskconnect/customPlugin.d.ts +144 -0
- package/mskconnect/customPlugin.js +104 -0
- package/mskconnect/customPlugin.js.map +1 -0
- package/mskconnect/getCustomPlugin.d.ts +61 -0
- package/mskconnect/getCustomPlugin.js +38 -0
- package/mskconnect/getCustomPlugin.js.map +1 -0
- package/mskconnect/getWorkerConfiguration.d.ts +61 -0
- package/mskconnect/getWorkerConfiguration.js +38 -0
- package/mskconnect/getWorkerConfiguration.js.map +1 -0
- package/mskconnect/index.d.ts +4 -0
- package/mskconnect/index.js +40 -0
- package/mskconnect/index.js.map +1 -0
- package/mskconnect/workerConfiguration.d.ts +113 -0
- package/mskconnect/workerConfiguration.js +87 -0
- package/mskconnect/workerConfiguration.js.map +1 -0
- package/organizations/getResourceTags.d.ts +63 -0
- package/organizations/getResourceTags.js +39 -0
- package/organizations/getResourceTags.js.map +1 -0
- package/organizations/index.d.ts +1 -0
- package/organizations/index.js +1 -0
- package/organizations/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/sagemaker/device.d.ts +97 -0
- package/sagemaker/device.js +89 -0
- package/sagemaker/device.js.map +1 -0
- package/sagemaker/getPrebuiltEcrImage.d.ts +2 -2
- package/sagemaker/index.d.ts +1 -0
- package/sagemaker/index.js +5 -0
- package/sagemaker/index.js.map +1 -1
- package/ses/getActiveReceiptRuleSet.d.ts +31 -0
- package/ses/getActiveReceiptRuleSet.js +30 -0
- package/ses/getActiveReceiptRuleSet.js.map +1 -0
- package/ses/getDomainIdentity.d.ts +56 -0
- package/ses/getDomainIdentity.js +38 -0
- package/ses/getDomainIdentity.js.map +1 -0
- package/ses/getEmailIdentity.d.ts +52 -0
- package/ses/getEmailIdentity.js +38 -0
- package/ses/getEmailIdentity.js.map +1 -0
- package/ses/index.d.ts +3 -0
- package/ses/index.js +3 -0
- package/ses/index.js.map +1 -1
- package/sqs/queue.d.ts +16 -0
- package/sqs/queue.js +6 -0
- package/sqs/queue.js.map +1 -1
- package/ssm/getParametersByPath.d.ts +9 -0
- package/ssm/getParametersByPath.js +1 -0
- package/ssm/getParametersByPath.js.map +1 -1
- package/timestreamwrite/table.d.ts +12 -0
- package/timestreamwrite/table.js +2 -0
- package/timestreamwrite/table.js.map +1 -1
- package/types/enums/rds/index.d.ts +20 -0
- package/types/enums/rds/index.js +20 -0
- package/types/enums/rds/index.js.map +1 -1
- package/types/input.d.ts +409 -11
- package/types/output.d.ts +430 -11
- package/wafv2/webAclLoggingConfiguration.d.ts +3 -3
package/appstream/fleet.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export declare class Fleet extends pulumi.CustomResource {
|
|
|
123
123
|
*/
|
|
124
124
|
readonly state: pulumi.Output<string>;
|
|
125
125
|
/**
|
|
126
|
-
* AppStream 2.0 view that is displayed to your users when they stream from the fleet. When `APP` is specified, only the windows of applications opened by users display. When `DESKTOP` is specified, the standard desktop that is provided by the operating system displays.
|
|
126
|
+
* AppStream 2.0 view that is displayed to your users when they stream from the fleet. When `APP` is specified, only the windows of applications opened by users display. When `DESKTOP` is specified, the standard desktop that is provided by the operating system displays. If not specified, defaults to `APP`.
|
|
127
127
|
*/
|
|
128
128
|
readonly streamView: pulumi.Output<string>;
|
|
129
129
|
/**
|
|
@@ -221,7 +221,7 @@ export interface FleetState {
|
|
|
221
221
|
*/
|
|
222
222
|
state?: pulumi.Input<string>;
|
|
223
223
|
/**
|
|
224
|
-
* AppStream 2.0 view that is displayed to your users when they stream from the fleet. When `APP` is specified, only the windows of applications opened by users display. When `DESKTOP` is specified, the standard desktop that is provided by the operating system displays.
|
|
224
|
+
* AppStream 2.0 view that is displayed to your users when they stream from the fleet. When `APP` is specified, only the windows of applications opened by users display. When `DESKTOP` is specified, the standard desktop that is provided by the operating system displays. If not specified, defaults to `APP`.
|
|
225
225
|
*/
|
|
226
226
|
streamView?: pulumi.Input<string>;
|
|
227
227
|
/**
|
|
@@ -299,7 +299,7 @@ export interface FleetArgs {
|
|
|
299
299
|
*/
|
|
300
300
|
name?: pulumi.Input<string>;
|
|
301
301
|
/**
|
|
302
|
-
* AppStream 2.0 view that is displayed to your users when they stream from the fleet. When `APP` is specified, only the windows of applications opened by users display. When `DESKTOP` is specified, the standard desktop that is provided by the operating system displays.
|
|
302
|
+
* AppStream 2.0 view that is displayed to your users when they stream from the fleet. When `APP` is specified, only the windows of applications opened by users display. When `DESKTOP` is specified, the standard desktop that is provided by the operating system displays. If not specified, defaults to `APP`.
|
|
303
303
|
*/
|
|
304
304
|
streamView?: pulumi.Input<string>;
|
|
305
305
|
/**
|
package/batch/getJobQueue.d.ts
CHANGED
|
@@ -56,6 +56,10 @@ export interface GetJobQueueResult {
|
|
|
56
56
|
* associated with the same compute environment.
|
|
57
57
|
*/
|
|
58
58
|
readonly priority: number;
|
|
59
|
+
/**
|
|
60
|
+
* The ARN of the fair share scheduling policy. If this attribute has a value, the job queue uses a fair share scheduling policy. If this attribute does not have a value, the job queue uses a first in, first out (FIFO) scheduling policy.
|
|
61
|
+
*/
|
|
62
|
+
readonly schedulingPolicyArn: string;
|
|
59
63
|
/**
|
|
60
64
|
* Describes the ability of the queue to accept new jobs (for example, `ENABLED` or `DISABLED`).
|
|
61
65
|
*/
|
package/batch/getJobQueue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getJobQueue.js","sourceRoot":"","sources":["../../batch/getJobQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF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D,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* The Batch Scheduling Policy data source allows access to details of a specific Scheduling Policy within AWS Batch.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as aws from "@pulumi/aws";
|
|
11
|
+
*
|
|
12
|
+
* const test = pulumi.output(aws.batch.getSchedulingPolicy({
|
|
13
|
+
* arn: "arn:aws:batch:us-east-1:012345678910:scheduling-policy/example",
|
|
14
|
+
* }));
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function getSchedulingPolicy(args: GetSchedulingPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetSchedulingPolicyResult>;
|
|
18
|
+
/**
|
|
19
|
+
* A collection of arguments for invoking getSchedulingPolicy.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetSchedulingPolicyArgs {
|
|
22
|
+
/**
|
|
23
|
+
* The Amazon Resource Name (ARN) of the scheduling policy.
|
|
24
|
+
*/
|
|
25
|
+
arn: string;
|
|
26
|
+
/**
|
|
27
|
+
* Key-value map of resource tags
|
|
28
|
+
*/
|
|
29
|
+
tags?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A collection of values returned by getSchedulingPolicy.
|
|
35
|
+
*/
|
|
36
|
+
export interface GetSchedulingPolicyResult {
|
|
37
|
+
readonly arn: string;
|
|
38
|
+
readonly fairSharePolicies: outputs.batch.GetSchedulingPolicyFairSharePolicy[];
|
|
39
|
+
/**
|
|
40
|
+
* The provider-assigned unique ID for this managed resource.
|
|
41
|
+
*/
|
|
42
|
+
readonly id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the name of the scheduling policy.
|
|
45
|
+
*/
|
|
46
|
+
readonly name: string;
|
|
47
|
+
/**
|
|
48
|
+
* Key-value map of resource tags
|
|
49
|
+
*/
|
|
50
|
+
readonly tags: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export declare function getSchedulingPolicyOutput(args: GetSchedulingPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSchedulingPolicyResult>;
|
|
55
|
+
/**
|
|
56
|
+
* A collection of arguments for invoking getSchedulingPolicy.
|
|
57
|
+
*/
|
|
58
|
+
export interface GetSchedulingPolicyOutputArgs {
|
|
59
|
+
/**
|
|
60
|
+
* The Amazon Resource Name (ARN) of the scheduling policy.
|
|
61
|
+
*/
|
|
62
|
+
arn: pulumi.Input<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Key-value map of resource tags
|
|
65
|
+
*/
|
|
66
|
+
tags?: pulumi.Input<{
|
|
67
|
+
[key: string]: pulumi.Input<string>;
|
|
68
|
+
}>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getSchedulingPolicyOutput = exports.getSchedulingPolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The Batch Scheduling Policy data source allows access to details of a specific Scheduling Policy within AWS Batch.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
*
|
|
17
|
+
* const test = pulumi.output(aws.batch.getSchedulingPolicy({
|
|
18
|
+
* arn: "arn:aws:batch:us-east-1:012345678910:scheduling-policy/example",
|
|
19
|
+
* }));
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getSchedulingPolicy(args, opts) {
|
|
23
|
+
if (!opts) {
|
|
24
|
+
opts = {};
|
|
25
|
+
}
|
|
26
|
+
if (!opts.version) {
|
|
27
|
+
opts.version = utilities.getVersion();
|
|
28
|
+
}
|
|
29
|
+
return pulumi.runtime.invoke("aws:batch/getSchedulingPolicy:getSchedulingPolicy", {
|
|
30
|
+
"arn": args.arn,
|
|
31
|
+
"tags": args.tags,
|
|
32
|
+
}, opts);
|
|
33
|
+
}
|
|
34
|
+
exports.getSchedulingPolicy = getSchedulingPolicy;
|
|
35
|
+
function getSchedulingPolicyOutput(args, opts) {
|
|
36
|
+
return pulumi.output(args).apply(a => getSchedulingPolicy(a, opts));
|
|
37
|
+
}
|
|
38
|
+
exports.getSchedulingPolicyOutput = getSchedulingPolicyOutput;
|
|
39
|
+
//# sourceMappingURL=getSchedulingPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSchedulingPolicy.js","sourceRoot":"","sources":["../../batch/getSchedulingPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,kDAYC;AAoCD,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,8DAEC"}
|
package/batch/index.d.ts
CHANGED
package/batch/index.js
CHANGED
|
@@ -18,12 +18,15 @@ const utilities = require("../utilities");
|
|
|
18
18
|
__exportStar(require("./computeEnvironment"), exports);
|
|
19
19
|
__exportStar(require("./getComputeEnvironment"), exports);
|
|
20
20
|
__exportStar(require("./getJobQueue"), exports);
|
|
21
|
+
__exportStar(require("./getSchedulingPolicy"), exports);
|
|
21
22
|
__exportStar(require("./jobDefinition"), exports);
|
|
22
23
|
__exportStar(require("./jobQueue"), exports);
|
|
24
|
+
__exportStar(require("./schedulingPolicy"), exports);
|
|
23
25
|
// Import resources to register:
|
|
24
26
|
const computeEnvironment_1 = require("./computeEnvironment");
|
|
25
27
|
const jobDefinition_1 = require("./jobDefinition");
|
|
26
28
|
const jobQueue_1 = require("./jobQueue");
|
|
29
|
+
const schedulingPolicy_1 = require("./schedulingPolicy");
|
|
27
30
|
const _module = {
|
|
28
31
|
version: utilities.getVersion(),
|
|
29
32
|
construct: (name, type, urn) => {
|
|
@@ -34,6 +37,8 @@ const _module = {
|
|
|
34
37
|
return new jobDefinition_1.JobDefinition(name, undefined, { urn });
|
|
35
38
|
case "aws:batch/jobQueue:JobQueue":
|
|
36
39
|
return new jobQueue_1.JobQueue(name, undefined, { urn });
|
|
40
|
+
case "aws:batch/schedulingPolicy:SchedulingPolicy":
|
|
41
|
+
return new schedulingPolicy_1.SchedulingPolicy(name, undefined, { urn });
|
|
37
42
|
default:
|
|
38
43
|
throw new Error(`unknown resource type ${type}`);
|
|
39
44
|
}
|
|
@@ -42,4 +47,5 @@ const _module = {
|
|
|
42
47
|
pulumi.runtime.registerResourceModule("aws", "batch/computeEnvironment", _module);
|
|
43
48
|
pulumi.runtime.registerResourceModule("aws", "batch/jobDefinition", _module);
|
|
44
49
|
pulumi.runtime.registerResourceModule("aws", "batch/jobQueue", _module);
|
|
50
|
+
pulumi.runtime.registerResourceModule("aws", "batch/schedulingPolicy", _module);
|
|
45
51
|
//# sourceMappingURL=index.js.map
|
package/batch/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../batch/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,uDAAqC;AACrC,0DAAwC;AACxC,gDAA8B;AAC9B,kDAAgC;AAChC,6CAA2B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../batch/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,uDAAqC;AACrC,0DAAwC;AACxC,gDAA8B;AAC9B,wDAAsC;AACtC,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AAEnC,gCAAgC;AAChC,6DAA0D;AAC1D,mDAAgD;AAChD,yCAAsC;AACtC,yDAAsD;AAEtD,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,iDAAiD;gBAClD,OAAO,IAAI,uCAAkB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAChE,KAAK,uCAAuC;gBACxC,OAAO,IAAI,6BAAa,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC3D,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,6CAA6C;gBAC9C,OAAO,IAAI,mCAAgB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC9D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AACjF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AAC5E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA;AACvE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAA"}
|
package/batch/jobQueue.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* Provides a Batch Job Queue resource.
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
|
+
* ### Basic Job Queue
|
|
6
7
|
*
|
|
7
8
|
* ```typescript
|
|
8
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -17,6 +18,30 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
18
|
* ],
|
|
18
19
|
* });
|
|
19
20
|
* ```
|
|
21
|
+
* ### Job Queue with a fair share scheduling policy
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as aws from "@pulumi/aws";
|
|
26
|
+
*
|
|
27
|
+
* const exampleSchedulingPolicy = new aws.batch.SchedulingPolicy("exampleSchedulingPolicy", {fairSharePolicy: {
|
|
28
|
+
* computeReservation: 1,
|
|
29
|
+
* shareDecaySeconds: 3600,
|
|
30
|
+
* shareDistributions: [{
|
|
31
|
+
* shareIdentifier: "A1*",
|
|
32
|
+
* weightFactor: 0.1,
|
|
33
|
+
* }],
|
|
34
|
+
* }});
|
|
35
|
+
* const exampleJobQueue = new aws.batch.JobQueue("exampleJobQueue", {
|
|
36
|
+
* schedulingPolicyArn: exampleSchedulingPolicy.arn,
|
|
37
|
+
* state: "ENABLED",
|
|
38
|
+
* priority: 1,
|
|
39
|
+
* computeEnvironments: [
|
|
40
|
+
* aws_batch_compute_environment.test_environment_1.arn,
|
|
41
|
+
* aws_batch_compute_environment.test_environment_2.arn,
|
|
42
|
+
* ],
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
20
45
|
*
|
|
21
46
|
* ## Import
|
|
22
47
|
*
|
|
@@ -61,6 +86,10 @@ export declare class JobQueue extends pulumi.CustomResource {
|
|
|
61
86
|
* are evaluated first when associated with the same compute environment.
|
|
62
87
|
*/
|
|
63
88
|
readonly priority: pulumi.Output<number>;
|
|
89
|
+
/**
|
|
90
|
+
* The ARN of the fair share scheduling policy. If this parameter is specified, the job queue uses a fair share scheduling policy. If this parameter isn't specified, the job queue uses a first in, first out (FIFO) scheduling policy. After a job queue is created, you can replace but can't remove the fair share scheduling policy.
|
|
91
|
+
*/
|
|
92
|
+
readonly schedulingPolicyArn: pulumi.Output<string | undefined>;
|
|
64
93
|
/**
|
|
65
94
|
* The state of the job queue. Must be one of: `ENABLED` or `DISABLED`
|
|
66
95
|
*/
|
|
@@ -109,6 +138,10 @@ export interface JobQueueState {
|
|
|
109
138
|
* are evaluated first when associated with the same compute environment.
|
|
110
139
|
*/
|
|
111
140
|
priority?: pulumi.Input<number>;
|
|
141
|
+
/**
|
|
142
|
+
* The ARN of the fair share scheduling policy. If this parameter is specified, the job queue uses a fair share scheduling policy. If this parameter isn't specified, the job queue uses a first in, first out (FIFO) scheduling policy. After a job queue is created, you can replace but can't remove the fair share scheduling policy.
|
|
143
|
+
*/
|
|
144
|
+
schedulingPolicyArn?: pulumi.Input<string>;
|
|
112
145
|
/**
|
|
113
146
|
* The state of the job queue. Must be one of: `ENABLED` or `DISABLED`
|
|
114
147
|
*/
|
|
@@ -145,6 +178,10 @@ export interface JobQueueArgs {
|
|
|
145
178
|
* are evaluated first when associated with the same compute environment.
|
|
146
179
|
*/
|
|
147
180
|
priority: pulumi.Input<number>;
|
|
181
|
+
/**
|
|
182
|
+
* The ARN of the fair share scheduling policy. If this parameter is specified, the job queue uses a fair share scheduling policy. If this parameter isn't specified, the job queue uses a first in, first out (FIFO) scheduling policy. After a job queue is created, you can replace but can't remove the fair share scheduling policy.
|
|
183
|
+
*/
|
|
184
|
+
schedulingPolicyArn?: pulumi.Input<string>;
|
|
148
185
|
/**
|
|
149
186
|
* The state of the job queue. Must be one of: `ENABLED` or `DISABLED`
|
|
150
187
|
*/
|
package/batch/jobQueue.js
CHANGED
|
@@ -9,6 +9,7 @@ const utilities = require("../utilities");
|
|
|
9
9
|
* Provides a Batch Job Queue resource.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
* ### Basic Job Queue
|
|
12
13
|
*
|
|
13
14
|
* ```typescript
|
|
14
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -23,6 +24,30 @@ const utilities = require("../utilities");
|
|
|
23
24
|
* ],
|
|
24
25
|
* });
|
|
25
26
|
* ```
|
|
27
|
+
* ### Job Queue with a fair share scheduling policy
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
+
* import * as aws from "@pulumi/aws";
|
|
32
|
+
*
|
|
33
|
+
* const exampleSchedulingPolicy = new aws.batch.SchedulingPolicy("exampleSchedulingPolicy", {fairSharePolicy: {
|
|
34
|
+
* computeReservation: 1,
|
|
35
|
+
* shareDecaySeconds: 3600,
|
|
36
|
+
* shareDistributions: [{
|
|
37
|
+
* shareIdentifier: "A1*",
|
|
38
|
+
* weightFactor: 0.1,
|
|
39
|
+
* }],
|
|
40
|
+
* }});
|
|
41
|
+
* const exampleJobQueue = new aws.batch.JobQueue("exampleJobQueue", {
|
|
42
|
+
* schedulingPolicyArn: exampleSchedulingPolicy.arn,
|
|
43
|
+
* state: "ENABLED",
|
|
44
|
+
* priority: 1,
|
|
45
|
+
* computeEnvironments: [
|
|
46
|
+
* aws_batch_compute_environment.test_environment_1.arn,
|
|
47
|
+
* aws_batch_compute_environment.test_environment_2.arn,
|
|
48
|
+
* ],
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
26
51
|
*
|
|
27
52
|
* ## Import
|
|
28
53
|
*
|
|
@@ -42,6 +67,7 @@ class JobQueue extends pulumi.CustomResource {
|
|
|
42
67
|
inputs["computeEnvironments"] = state ? state.computeEnvironments : undefined;
|
|
43
68
|
inputs["name"] = state ? state.name : undefined;
|
|
44
69
|
inputs["priority"] = state ? state.priority : undefined;
|
|
70
|
+
inputs["schedulingPolicyArn"] = state ? state.schedulingPolicyArn : undefined;
|
|
45
71
|
inputs["state"] = state ? state.state : undefined;
|
|
46
72
|
inputs["tags"] = state ? state.tags : undefined;
|
|
47
73
|
inputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
@@ -60,6 +86,7 @@ class JobQueue extends pulumi.CustomResource {
|
|
|
60
86
|
inputs["computeEnvironments"] = args ? args.computeEnvironments : undefined;
|
|
61
87
|
inputs["name"] = args ? args.name : undefined;
|
|
62
88
|
inputs["priority"] = args ? args.priority : undefined;
|
|
89
|
+
inputs["schedulingPolicyArn"] = args ? args.schedulingPolicyArn : undefined;
|
|
63
90
|
inputs["state"] = args ? args.state : undefined;
|
|
64
91
|
inputs["tags"] = args ? args.tags : undefined;
|
|
65
92
|
inputs["arn"] = undefined /*out*/;
|
package/batch/jobQueue.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobQueue.js","sourceRoot":"","sources":["../../batch/jobQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"jobQueue.js","sourceRoot":"","sources":["../../batch/jobQueue.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAwE/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,MAAM,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KA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|
+
* Provides a Batch Scheduling Policy resource.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as aws from "@pulumi/aws";
|
|
11
|
+
*
|
|
12
|
+
* const example = new aws.batch.SchedulingPolicy("example", {
|
|
13
|
+
* fairSharePolicy: {
|
|
14
|
+
* computeReservation: 1,
|
|
15
|
+
* shareDecaySeconds: 3600,
|
|
16
|
+
* shareDistributions: [
|
|
17
|
+
* {
|
|
18
|
+
* shareIdentifier: "A1*",
|
|
19
|
+
* weightFactor: 0.1,
|
|
20
|
+
* },
|
|
21
|
+
* {
|
|
22
|
+
* shareIdentifier: "A2",
|
|
23
|
+
* weightFactor: 0.2,
|
|
24
|
+
* },
|
|
25
|
+
* ],
|
|
26
|
+
* },
|
|
27
|
+
* tags: {
|
|
28
|
+
* Name: "Example Batch Scheduling Policy",
|
|
29
|
+
* },
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Import
|
|
34
|
+
*
|
|
35
|
+
* Batch Scheduling Policy can be imported using the `arn`, e.g.,
|
|
36
|
+
*
|
|
37
|
+
* ```sh
|
|
38
|
+
* $ pulumi import aws:batch/schedulingPolicy:SchedulingPolicy test_policy arn:aws:batch:us-east-1:123456789012:scheduling-policy/sample
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare class SchedulingPolicy extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing SchedulingPolicy resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SchedulingPolicyState, opts?: pulumi.CustomResourceOptions): SchedulingPolicy;
|
|
52
|
+
/**
|
|
53
|
+
* Returns true if the given object is an instance of SchedulingPolicy. This is designed to work even
|
|
54
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
+
*/
|
|
56
|
+
static isInstance(obj: any): obj is SchedulingPolicy;
|
|
57
|
+
/**
|
|
58
|
+
* The Amazon Resource Name of the scheduling policy.
|
|
59
|
+
*/
|
|
60
|
+
readonly arn: pulumi.Output<string>;
|
|
61
|
+
readonly fairSharePolicy: pulumi.Output<outputs.batch.SchedulingPolicyFairSharePolicy | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* Specifies the name of the scheduling policy.
|
|
64
|
+
*/
|
|
65
|
+
readonly name: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Key-value map of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
68
|
+
*/
|
|
69
|
+
readonly tags: pulumi.Output<{
|
|
70
|
+
[key: string]: string;
|
|
71
|
+
} | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
74
|
+
*/
|
|
75
|
+
readonly tagsAll: pulumi.Output<{
|
|
76
|
+
[key: string]: string;
|
|
77
|
+
}>;
|
|
78
|
+
/**
|
|
79
|
+
* Create a SchedulingPolicy resource with the given unique name, arguments, and options.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resource.
|
|
82
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
83
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
84
|
+
*/
|
|
85
|
+
constructor(name: string, args?: SchedulingPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Input properties used for looking up and filtering SchedulingPolicy resources.
|
|
89
|
+
*/
|
|
90
|
+
export interface SchedulingPolicyState {
|
|
91
|
+
/**
|
|
92
|
+
* The Amazon Resource Name of the scheduling policy.
|
|
93
|
+
*/
|
|
94
|
+
arn?: pulumi.Input<string>;
|
|
95
|
+
fairSharePolicy?: pulumi.Input<inputs.batch.SchedulingPolicyFairSharePolicy>;
|
|
96
|
+
/**
|
|
97
|
+
* Specifies the name of the scheduling policy.
|
|
98
|
+
*/
|
|
99
|
+
name?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Key-value map of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
102
|
+
*/
|
|
103
|
+
tags?: pulumi.Input<{
|
|
104
|
+
[key: string]: pulumi.Input<string>;
|
|
105
|
+
}>;
|
|
106
|
+
/**
|
|
107
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
108
|
+
*/
|
|
109
|
+
tagsAll?: pulumi.Input<{
|
|
110
|
+
[key: string]: pulumi.Input<string>;
|
|
111
|
+
}>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The set of arguments for constructing a SchedulingPolicy resource.
|
|
115
|
+
*/
|
|
116
|
+
export interface SchedulingPolicyArgs {
|
|
117
|
+
fairSharePolicy?: pulumi.Input<inputs.batch.SchedulingPolicyFairSharePolicy>;
|
|
118
|
+
/**
|
|
119
|
+
* Specifies the name of the scheduling policy.
|
|
120
|
+
*/
|
|
121
|
+
name?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Key-value map of resource tags. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
|
|
124
|
+
*/
|
|
125
|
+
tags?: pulumi.Input<{
|
|
126
|
+
[key: string]: pulumi.Input<string>;
|
|
127
|
+
}>;
|
|
128
|
+
/**
|
|
129
|
+
* A map of tags assigned to the resource, including those inherited from the provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
|
|
130
|
+
*/
|
|
131
|
+
tagsAll?: pulumi.Input<{
|
|
132
|
+
[key: string]: pulumi.Input<string>;
|
|
133
|
+
}>;
|
|
134
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SchedulingPolicy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Batch Scheduling Policy resource.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as aws from "@pulumi/aws";
|
|
16
|
+
*
|
|
17
|
+
* const example = new aws.batch.SchedulingPolicy("example", {
|
|
18
|
+
* fairSharePolicy: {
|
|
19
|
+
* computeReservation: 1,
|
|
20
|
+
* shareDecaySeconds: 3600,
|
|
21
|
+
* shareDistributions: [
|
|
22
|
+
* {
|
|
23
|
+
* shareIdentifier: "A1*",
|
|
24
|
+
* weightFactor: 0.1,
|
|
25
|
+
* },
|
|
26
|
+
* {
|
|
27
|
+
* shareIdentifier: "A2",
|
|
28
|
+
* weightFactor: 0.2,
|
|
29
|
+
* },
|
|
30
|
+
* ],
|
|
31
|
+
* },
|
|
32
|
+
* tags: {
|
|
33
|
+
* Name: "Example Batch Scheduling Policy",
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* Batch Scheduling Policy can be imported using the `arn`, e.g.,
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import aws:batch/schedulingPolicy:SchedulingPolicy test_policy arn:aws:batch:us-east-1:123456789012:scheduling-policy/sample
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
class SchedulingPolicy extends pulumi.CustomResource {
|
|
47
|
+
constructor(name, argsOrState, opts) {
|
|
48
|
+
let inputs = {};
|
|
49
|
+
opts = opts || {};
|
|
50
|
+
if (opts.id) {
|
|
51
|
+
const state = argsOrState;
|
|
52
|
+
inputs["arn"] = state ? state.arn : undefined;
|
|
53
|
+
inputs["fairSharePolicy"] = state ? state.fairSharePolicy : undefined;
|
|
54
|
+
inputs["name"] = state ? state.name : undefined;
|
|
55
|
+
inputs["tags"] = state ? state.tags : undefined;
|
|
56
|
+
inputs["tagsAll"] = state ? state.tagsAll : undefined;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
const args = argsOrState;
|
|
60
|
+
inputs["fairSharePolicy"] = args ? args.fairSharePolicy : undefined;
|
|
61
|
+
inputs["name"] = args ? args.name : undefined;
|
|
62
|
+
inputs["tags"] = args ? args.tags : undefined;
|
|
63
|
+
inputs["tagsAll"] = args ? args.tagsAll : undefined;
|
|
64
|
+
inputs["arn"] = undefined /*out*/;
|
|
65
|
+
}
|
|
66
|
+
if (!opts.version) {
|
|
67
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
68
|
+
}
|
|
69
|
+
super(SchedulingPolicy.__pulumiType, name, inputs, opts);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing SchedulingPolicy resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param state Any extra arguments used during the lookup.
|
|
78
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
79
|
+
*/
|
|
80
|
+
static get(name, id, state, opts) {
|
|
81
|
+
return new SchedulingPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns true if the given object is an instance of SchedulingPolicy. This is designed to work even
|
|
85
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
86
|
+
*/
|
|
87
|
+
static isInstance(obj) {
|
|
88
|
+
if (obj === undefined || obj === null) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
return obj['__pulumiType'] === SchedulingPolicy.__pulumiType;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.SchedulingPolicy = SchedulingPolicy;
|
|
95
|
+
/** @internal */
|
|
96
|
+
SchedulingPolicy.__pulumiType = 'aws:batch/schedulingPolicy:SchedulingPolicy';
|
|
97
|
+
//# sourceMappingURL=schedulingPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulingPolicy.js","sourceRoot":"","sources":["../../batch/schedulingPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAsDvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,MAAM,CAAC,KA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