@aws-sdk/client-batch 3.1114.0 → 3.1115.0
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/dist-cjs/index.js +112 -17
- package/dist-es/models/enums.js +3 -0
- package/dist-es/schemas/schemas_0.js +98 -16
- package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +168 -2
- package/dist-types/commands/CreateJobQueueCommand.d.ts +53 -1
- package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +37 -1
- package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +3 -1
- package/dist-types/commands/DescribeJobQueuesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobsCommand.d.ts +3 -1
- package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +170 -1
- package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +35 -1
- package/dist-types/models/enums.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +409 -11
- package/dist-types/schemas/schemas_0.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +60 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -0
- package/package.json +1 -1
|
@@ -64,7 +64,7 @@ declare const DescribeJobQueuesCommand_base: {
|
|
|
64
64
|
* // serviceEnvironment: "STRING_VALUE", // required
|
|
65
65
|
* // },
|
|
66
66
|
* // ],
|
|
67
|
-
* // jobQueueType: "EKS" || "ECS" || "ECS_FARGATE" || "SAGEMAKER_TRAINING",
|
|
67
|
+
* // jobQueueType: "EKS" || "ECS" || "ECS_FARGATE" || "SAGEMAKER_TRAINING" || "ECS_MANAGED_INSTANCES",
|
|
68
68
|
* // tags: { // TagrisTagsMap
|
|
69
69
|
* // "<keys>": "STRING_VALUE",
|
|
70
70
|
* // },
|
|
@@ -414,6 +414,7 @@ declare const DescribeJobsCommand_base: {
|
|
|
414
414
|
* // runtimePlatform: "<RuntimePlatform>",
|
|
415
415
|
* // volumes: "<Volumes>",
|
|
416
416
|
* // enableExecuteCommand: true || false,
|
|
417
|
+
* // networkMode: "STRING_VALUE",
|
|
417
418
|
* // },
|
|
418
419
|
* // ],
|
|
419
420
|
* // },
|
|
@@ -564,7 +565,7 @@ declare const DescribeJobsCommand_base: {
|
|
|
564
565
|
* // },
|
|
565
566
|
* // propagateTags: true || false,
|
|
566
567
|
* // platformCapabilities: [ // PlatformCapabilityList
|
|
567
|
-
* // "EC2" || "FARGATE",
|
|
568
|
+
* // "EC2" || "FARGATE" || "MANAGED_INSTANCES",
|
|
568
569
|
* // ],
|
|
569
570
|
* // eksProperties: { // EksPropertiesDetail
|
|
570
571
|
* // podProperties: { // EksPodPropertiesDetail
|
|
@@ -771,6 +772,7 @@ declare const DescribeJobsCommand_base: {
|
|
|
771
772
|
* // runtimePlatform: "<RuntimePlatform>",
|
|
772
773
|
* // volumes: "<Volumes>",
|
|
773
774
|
* // enableExecuteCommand: true || false,
|
|
775
|
+
* // networkMode: "STRING_VALUE",
|
|
774
776
|
* // },
|
|
775
777
|
* // ],
|
|
776
778
|
* // },
|
|
@@ -327,6 +327,7 @@ declare const RegisterJobDefinitionCommand_base: {
|
|
|
327
327
|
* runtimePlatform: "<RuntimePlatform>",
|
|
328
328
|
* volumes: "<Volumes>",
|
|
329
329
|
* enableExecuteCommand: true || false,
|
|
330
|
+
* networkMode: "STRING_VALUE",
|
|
330
331
|
* },
|
|
331
332
|
* ],
|
|
332
333
|
* },
|
|
@@ -480,7 +481,7 @@ declare const RegisterJobDefinitionCommand_base: {
|
|
|
480
481
|
* "<keys>": "STRING_VALUE",
|
|
481
482
|
* },
|
|
482
483
|
* platformCapabilities: [ // PlatformCapabilityList
|
|
483
|
-
* "EC2" || "FARGATE",
|
|
484
|
+
* "EC2" || "FARGATE" || "MANAGED_INSTANCES",
|
|
484
485
|
* ],
|
|
485
486
|
* eksProperties: {
|
|
486
487
|
* podProperties: {
|
|
@@ -648,6 +649,7 @@ declare const RegisterJobDefinitionCommand_base: {
|
|
|
648
649
|
* runtimePlatform: "<RuntimePlatform>",
|
|
649
650
|
* volumes: "<Volumes>",
|
|
650
651
|
* enableExecuteCommand: true || false,
|
|
652
|
+
* networkMode: "STRING_VALUE",
|
|
651
653
|
* },
|
|
652
654
|
* ],
|
|
653
655
|
* },
|
|
@@ -727,6 +729,57 @@ declare const RegisterJobDefinitionCommand_base: {
|
|
|
727
729
|
* *\/
|
|
728
730
|
* ```
|
|
729
731
|
*
|
|
732
|
+
* @example To register a GPU job definition on ECS Managed Instances
|
|
733
|
+
* ```javascript
|
|
734
|
+
* // This example registers a job definition that requests GPU resources on ECS Managed Instances.
|
|
735
|
+
* const input = {
|
|
736
|
+
* ecsProperties: {
|
|
737
|
+
* taskProperties: [
|
|
738
|
+
* {
|
|
739
|
+
* containers: [
|
|
740
|
+
* {
|
|
741
|
+
* command: [
|
|
742
|
+
* "nvidia-smi"
|
|
743
|
+
* ],
|
|
744
|
+
* image: "123456789012.dkr.ecr.us-east-1.amazonaws.com/my-gpu-image:latest",
|
|
745
|
+
* name: "main",
|
|
746
|
+
* resourceRequirements: [
|
|
747
|
+
* {
|
|
748
|
+
* type: "VCPU",
|
|
749
|
+
* value: "4"
|
|
750
|
+
* },
|
|
751
|
+
* {
|
|
752
|
+
* type: "MEMORY",
|
|
753
|
+
* value: "16384"
|
|
754
|
+
* },
|
|
755
|
+
* {
|
|
756
|
+
* type: "GPU",
|
|
757
|
+
* value: "1"
|
|
758
|
+
* }
|
|
759
|
+
* ]
|
|
760
|
+
* }
|
|
761
|
+
* ],
|
|
762
|
+
* executionRoleArn: "arn:aws:iam::123456789012:role/ecsTaskExecutionRole"
|
|
763
|
+
* }
|
|
764
|
+
* ]
|
|
765
|
+
* },
|
|
766
|
+
* jobDefinitionName: "my-gpu-managed-instances-job-def",
|
|
767
|
+
* platformCapabilities: [
|
|
768
|
+
* "MANAGED_INSTANCES"
|
|
769
|
+
* ],
|
|
770
|
+
* type: "container"
|
|
771
|
+
* };
|
|
772
|
+
* const command = new RegisterJobDefinitionCommand(input);
|
|
773
|
+
* const response = await client.send(command);
|
|
774
|
+
* /* response is
|
|
775
|
+
* {
|
|
776
|
+
* jobDefinitionArn: "arn:aws:batch:us-east-1:123456789012:job-definition/my-gpu-managed-instances-job-def:1",
|
|
777
|
+
* jobDefinitionName: "my-gpu-managed-instances-job-def",
|
|
778
|
+
* revision: 1
|
|
779
|
+
* }
|
|
780
|
+
* *\/
|
|
781
|
+
* ```
|
|
782
|
+
*
|
|
730
783
|
* @example To register a job definition
|
|
731
784
|
* ```javascript
|
|
732
785
|
* // This example registers a job definition for a simple container job.
|
|
@@ -762,6 +815,122 @@ declare const RegisterJobDefinitionCommand_base: {
|
|
|
762
815
|
* *\/
|
|
763
816
|
* ```
|
|
764
817
|
*
|
|
818
|
+
* @example To register a job definition on ECS Managed Instances
|
|
819
|
+
* ```javascript
|
|
820
|
+
* // This example registers a job definition that runs on ECS Managed Instances using ecsProperties with the MANAGED_INSTANCES platform capability.
|
|
821
|
+
* const input = {
|
|
822
|
+
* ecsProperties: {
|
|
823
|
+
* taskProperties: [
|
|
824
|
+
* {
|
|
825
|
+
* containers: [
|
|
826
|
+
* {
|
|
827
|
+
* command: [
|
|
828
|
+
* "echo",
|
|
829
|
+
* "hello managed instances"
|
|
830
|
+
* ],
|
|
831
|
+
* image: "public.ecr.aws/amazonlinux/amazonlinux:2023",
|
|
832
|
+
* name: "main",
|
|
833
|
+
* resourceRequirements: [
|
|
834
|
+
* {
|
|
835
|
+
* type: "VCPU",
|
|
836
|
+
* value: "1"
|
|
837
|
+
* },
|
|
838
|
+
* {
|
|
839
|
+
* type: "MEMORY",
|
|
840
|
+
* value: "1024"
|
|
841
|
+
* }
|
|
842
|
+
* ]
|
|
843
|
+
* }
|
|
844
|
+
* ],
|
|
845
|
+
* executionRoleArn: "arn:aws:iam::123456789012:role/ecsTaskExecutionRole"
|
|
846
|
+
* }
|
|
847
|
+
* ]
|
|
848
|
+
* },
|
|
849
|
+
* jobDefinitionName: "my-managed-instances-job-def",
|
|
850
|
+
* platformCapabilities: [
|
|
851
|
+
* "MANAGED_INSTANCES"
|
|
852
|
+
* ],
|
|
853
|
+
* type: "container"
|
|
854
|
+
* };
|
|
855
|
+
* const command = new RegisterJobDefinitionCommand(input);
|
|
856
|
+
* const response = await client.send(command);
|
|
857
|
+
* /* response is
|
|
858
|
+
* {
|
|
859
|
+
* jobDefinitionArn: "arn:aws:batch:us-east-1:123456789012:job-definition/my-managed-instances-job-def:1",
|
|
860
|
+
* jobDefinitionName: "my-managed-instances-job-def",
|
|
861
|
+
* revision: 1
|
|
862
|
+
* }
|
|
863
|
+
* *\/
|
|
864
|
+
* ```
|
|
865
|
+
*
|
|
866
|
+
* @example To register a multi-container job definition on ECS Managed Instances
|
|
867
|
+
* ```javascript
|
|
868
|
+
* // This example registers a job definition with a main container and a sidecar logging container on ECS Managed Instances.
|
|
869
|
+
* const input = {
|
|
870
|
+
* ecsProperties: {
|
|
871
|
+
* taskProperties: [
|
|
872
|
+
* {
|
|
873
|
+
* containers: [
|
|
874
|
+
* {
|
|
875
|
+
* command: [
|
|
876
|
+
* "echo",
|
|
877
|
+
* "processing data"
|
|
878
|
+
* ],
|
|
879
|
+
* essential: true,
|
|
880
|
+
* image: "public.ecr.aws/amazonlinux/amazonlinux:2023",
|
|
881
|
+
* name: "main",
|
|
882
|
+
* resourceRequirements: [
|
|
883
|
+
* {
|
|
884
|
+
* type: "VCPU",
|
|
885
|
+
* value: "2"
|
|
886
|
+
* },
|
|
887
|
+
* {
|
|
888
|
+
* type: "MEMORY",
|
|
889
|
+
* value: "4096"
|
|
890
|
+
* }
|
|
891
|
+
* ]
|
|
892
|
+
* },
|
|
893
|
+
* {
|
|
894
|
+
* command: [
|
|
895
|
+
* "echo",
|
|
896
|
+
* "logging sidecar"
|
|
897
|
+
* ],
|
|
898
|
+
* essential: false,
|
|
899
|
+
* image: "public.ecr.aws/amazonlinux/amazonlinux:2023",
|
|
900
|
+
* name: "sidecar",
|
|
901
|
+
* resourceRequirements: [
|
|
902
|
+
* {
|
|
903
|
+
* type: "VCPU",
|
|
904
|
+
* value: "1"
|
|
905
|
+
* },
|
|
906
|
+
* {
|
|
907
|
+
* type: "MEMORY",
|
|
908
|
+
* value: "512"
|
|
909
|
+
* }
|
|
910
|
+
* ]
|
|
911
|
+
* }
|
|
912
|
+
* ],
|
|
913
|
+
* executionRoleArn: "arn:aws:iam::123456789012:role/ecsTaskExecutionRole"
|
|
914
|
+
* }
|
|
915
|
+
* ]
|
|
916
|
+
* },
|
|
917
|
+
* jobDefinitionName: "my-sidecar-managed-instances-job-def",
|
|
918
|
+
* platformCapabilities: [
|
|
919
|
+
* "MANAGED_INSTANCES"
|
|
920
|
+
* ],
|
|
921
|
+
* type: "container"
|
|
922
|
+
* };
|
|
923
|
+
* const command = new RegisterJobDefinitionCommand(input);
|
|
924
|
+
* const response = await client.send(command);
|
|
925
|
+
* /* response is
|
|
926
|
+
* {
|
|
927
|
+
* jobDefinitionArn: "arn:aws:batch:us-east-1:123456789012:job-definition/my-sidecar-managed-instances-job-def:1",
|
|
928
|
+
* jobDefinitionName: "my-sidecar-managed-instances-job-def",
|
|
929
|
+
* revision: 1
|
|
930
|
+
* }
|
|
931
|
+
* *\/
|
|
932
|
+
* ```
|
|
933
|
+
*
|
|
765
934
|
* @public
|
|
766
935
|
*/
|
|
767
936
|
export declare class RegisterJobDefinitionCommand extends RegisterJobDefinitionCommand_base {
|
|
@@ -84,11 +84,45 @@ declare const UpdateComputeEnvironmentCommand_base: {
|
|
|
84
84
|
* },
|
|
85
85
|
* ],
|
|
86
86
|
* updateToLatestImageVersion: true || false,
|
|
87
|
-
* type: "EC2" || "SPOT" || "FARGATE" || "FARGATE_SPOT",
|
|
87
|
+
* type: "EC2" || "SPOT" || "FARGATE" || "FARGATE_SPOT" || "ECS_MANAGED_INSTANCES",
|
|
88
88
|
* imageId: "STRING_VALUE",
|
|
89
89
|
* scalingPolicy: { // ComputeScalingPolicy
|
|
90
90
|
* minScaleDownDelayMinutes: Number("int"),
|
|
91
91
|
* },
|
|
92
|
+
* managedInstancesProvider: { // UpdateManagedInstancesProviderConfiguration
|
|
93
|
+
* propagateTags: "STRING_VALUE",
|
|
94
|
+
* infrastructureRoleArn: "STRING_VALUE",
|
|
95
|
+
* instanceLaunchTemplate: { // InstanceLaunchTemplateUpdate
|
|
96
|
+
* ec2InstanceProfileArn: "STRING_VALUE",
|
|
97
|
+
* networkConfiguration: { // ManagedInstancesNetworkConfiguration
|
|
98
|
+
* subnets: [ // required
|
|
99
|
+
* "STRING_VALUE",
|
|
100
|
+
* ],
|
|
101
|
+
* securityGroups: "<StringList>", // required
|
|
102
|
+
* },
|
|
103
|
+
* instanceRequirements: { // InstanceRequirementsRequest
|
|
104
|
+
* allowedInstanceTypes: "<StringList>",
|
|
105
|
+
* },
|
|
106
|
+
* storageConfiguration: { // ManagedInstancesStorageConfiguration
|
|
107
|
+
* storageSizeGiB: Number("int"),
|
|
108
|
+
* },
|
|
109
|
+
* monitoring: "STRING_VALUE",
|
|
110
|
+
* capacityReservations: { // CapacityReservationRequest
|
|
111
|
+
* reservationGroupArn: "STRING_VALUE",
|
|
112
|
+
* reservationPreference: "STRING_VALUE",
|
|
113
|
+
* },
|
|
114
|
+
* instanceMetadataTagsPropagation: true || false,
|
|
115
|
+
* localStorageConfiguration: { // ManagedInstancesLocalStorageConfiguration
|
|
116
|
+
* useLocalStorage: true || false,
|
|
117
|
+
* },
|
|
118
|
+
* },
|
|
119
|
+
* infrastructureOptimization: { // InfrastructureOptimization
|
|
120
|
+
* scaleInAfter: Number("int"),
|
|
121
|
+
* },
|
|
122
|
+
* },
|
|
123
|
+
* capacityTags: { // TagrisTagsMap
|
|
124
|
+
* "<keys>": "STRING_VALUE",
|
|
125
|
+
* },
|
|
92
126
|
* },
|
|
93
127
|
* serviceRole: "STRING_VALUE",
|
|
94
128
|
* updatePolicy: { // UpdatePolicy
|
|
@@ -56,6 +56,7 @@ export type UserdataType = (typeof UserdataType)[keyof typeof UserdataType];
|
|
|
56
56
|
*/
|
|
57
57
|
export declare const CRType: {
|
|
58
58
|
readonly EC2: "EC2";
|
|
59
|
+
readonly ECS_MANAGED_INSTANCES: "ECS_MANAGED_INSTANCES";
|
|
59
60
|
readonly FARGATE: "FARGATE";
|
|
60
61
|
readonly FARGATE_SPOT: "FARGATE_SPOT";
|
|
61
62
|
readonly SPOT: "SPOT";
|
|
@@ -108,6 +109,7 @@ export type CEType = (typeof CEType)[keyof typeof CEType];
|
|
|
108
109
|
export declare const JobQueueType: {
|
|
109
110
|
readonly ECS: "ECS";
|
|
110
111
|
readonly ECS_FARGATE: "ECS_FARGATE";
|
|
112
|
+
readonly ECS_MANAGED_INSTANCES: "ECS_MANAGED_INSTANCES";
|
|
111
113
|
readonly EKS: "EKS";
|
|
112
114
|
readonly SAGEMAKER_TRAINING: "SAGEMAKER_TRAINING";
|
|
113
115
|
};
|
|
@@ -336,6 +338,7 @@ export type FirelensConfigurationType = (typeof FirelensConfigurationType)[keyof
|
|
|
336
338
|
export declare const PlatformCapability: {
|
|
337
339
|
readonly EC2: "EC2";
|
|
338
340
|
readonly FARGATE: "FARGATE";
|
|
341
|
+
readonly MANAGED_INSTANCES: "MANAGED_INSTANCES";
|
|
339
342
|
};
|
|
340
343
|
/**
|
|
341
344
|
* @public
|