aws-sdk-batch 1.56.0 → 1.77.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.
@@ -28,6 +28,7 @@ module Aws::Batch
28
28
  CEType = Shapes::StringShape.new(name: 'CEType')
29
29
  CRAllocationStrategy = Shapes::StringShape.new(name: 'CRAllocationStrategy')
30
30
  CRType = Shapes::StringShape.new(name: 'CRType')
31
+ CRUpdateAllocationStrategy = Shapes::StringShape.new(name: 'CRUpdateAllocationStrategy')
31
32
  CancelJobRequest = Shapes::StructureShape.new(name: 'CancelJobRequest')
32
33
  CancelJobResponse = Shapes::StructureShape.new(name: 'CancelJobResponse')
33
34
  ClientException = Shapes::StructureShape.new(name: 'ClientException')
@@ -75,7 +76,40 @@ module Aws::Batch
75
76
  EFSVolumeConfiguration = Shapes::StructureShape.new(name: 'EFSVolumeConfiguration')
76
77
  Ec2Configuration = Shapes::StructureShape.new(name: 'Ec2Configuration')
77
78
  Ec2ConfigurationList = Shapes::ListShape.new(name: 'Ec2ConfigurationList')
79
+ EksAttemptContainerDetail = Shapes::StructureShape.new(name: 'EksAttemptContainerDetail')
80
+ EksAttemptContainerDetails = Shapes::ListShape.new(name: 'EksAttemptContainerDetails')
81
+ EksAttemptDetail = Shapes::StructureShape.new(name: 'EksAttemptDetail')
82
+ EksAttemptDetails = Shapes::ListShape.new(name: 'EksAttemptDetails')
83
+ EksConfiguration = Shapes::StructureShape.new(name: 'EksConfiguration')
84
+ EksContainer = Shapes::StructureShape.new(name: 'EksContainer')
85
+ EksContainerDetail = Shapes::StructureShape.new(name: 'EksContainerDetail')
86
+ EksContainerDetails = Shapes::ListShape.new(name: 'EksContainerDetails')
87
+ EksContainerEnvironmentVariable = Shapes::StructureShape.new(name: 'EksContainerEnvironmentVariable')
88
+ EksContainerEnvironmentVariables = Shapes::ListShape.new(name: 'EksContainerEnvironmentVariables')
89
+ EksContainerOverride = Shapes::StructureShape.new(name: 'EksContainerOverride')
90
+ EksContainerOverrideList = Shapes::ListShape.new(name: 'EksContainerOverrideList')
91
+ EksContainerResourceRequirements = Shapes::StructureShape.new(name: 'EksContainerResourceRequirements')
92
+ EksContainerSecurityContext = Shapes::StructureShape.new(name: 'EksContainerSecurityContext')
93
+ EksContainerVolumeMount = Shapes::StructureShape.new(name: 'EksContainerVolumeMount')
94
+ EksContainerVolumeMounts = Shapes::ListShape.new(name: 'EksContainerVolumeMounts')
95
+ EksContainers = Shapes::ListShape.new(name: 'EksContainers')
96
+ EksEmptyDir = Shapes::StructureShape.new(name: 'EksEmptyDir')
97
+ EksHostPath = Shapes::StructureShape.new(name: 'EksHostPath')
98
+ EksLabelsMap = Shapes::MapShape.new(name: 'EksLabelsMap')
99
+ EksLimits = Shapes::MapShape.new(name: 'EksLimits')
100
+ EksMetadata = Shapes::StructureShape.new(name: 'EksMetadata')
101
+ EksPodProperties = Shapes::StructureShape.new(name: 'EksPodProperties')
102
+ EksPodPropertiesDetail = Shapes::StructureShape.new(name: 'EksPodPropertiesDetail')
103
+ EksPodPropertiesOverride = Shapes::StructureShape.new(name: 'EksPodPropertiesOverride')
104
+ EksProperties = Shapes::StructureShape.new(name: 'EksProperties')
105
+ EksPropertiesDetail = Shapes::StructureShape.new(name: 'EksPropertiesDetail')
106
+ EksPropertiesOverride = Shapes::StructureShape.new(name: 'EksPropertiesOverride')
107
+ EksRequests = Shapes::MapShape.new(name: 'EksRequests')
108
+ EksSecret = Shapes::StructureShape.new(name: 'EksSecret')
109
+ EksVolume = Shapes::StructureShape.new(name: 'EksVolume')
110
+ EksVolumes = Shapes::ListShape.new(name: 'EksVolumes')
78
111
  EnvironmentVariables = Shapes::ListShape.new(name: 'EnvironmentVariables')
112
+ EphemeralStorage = Shapes::StructureShape.new(name: 'EphemeralStorage')
79
113
  EvaluateOnExit = Shapes::StructureShape.new(name: 'EvaluateOnExit')
80
114
  EvaluateOnExitList = Shapes::ListShape.new(name: 'EvaluateOnExitList')
81
115
  FairsharePolicy = Shapes::StructureShape.new(name: 'FairsharePolicy')
@@ -94,6 +128,7 @@ module Aws::Batch
94
128
  JobDependencyList = Shapes::ListShape.new(name: 'JobDependencyList')
95
129
  JobDetail = Shapes::StructureShape.new(name: 'JobDetail')
96
130
  JobDetailList = Shapes::ListShape.new(name: 'JobDetailList')
131
+ JobExecutionTimeoutMinutes = Shapes::IntegerShape.new(name: 'JobExecutionTimeoutMinutes')
97
132
  JobQueueDetail = Shapes::StructureShape.new(name: 'JobQueueDetail')
98
133
  JobQueueDetailList = Shapes::ListShape.new(name: 'JobQueueDetailList')
99
134
  JobStatus = Shapes::StringShape.new(name: 'JobStatus')
@@ -102,6 +137,7 @@ module Aws::Batch
102
137
  JobTimeout = Shapes::StructureShape.new(name: 'JobTimeout')
103
138
  KeyValuePair = Shapes::StructureShape.new(name: 'KeyValuePair')
104
139
  KeyValuesPair = Shapes::StructureShape.new(name: 'KeyValuesPair')
140
+ KubernetesVersion = Shapes::StringShape.new(name: 'KubernetesVersion')
105
141
  LaunchTemplateSpecification = Shapes::StructureShape.new(name: 'LaunchTemplateSpecification')
106
142
  LinuxParameters = Shapes::StructureShape.new(name: 'LinuxParameters')
107
143
  ListJobsFilterList = Shapes::ListShape.new(name: 'ListJobsFilterList')
@@ -128,9 +164,11 @@ module Aws::Batch
128
164
  NodePropertyOverrides = Shapes::ListShape.new(name: 'NodePropertyOverrides')
129
165
  NodeRangeProperties = Shapes::ListShape.new(name: 'NodeRangeProperties')
130
166
  NodeRangeProperty = Shapes::StructureShape.new(name: 'NodeRangeProperty')
167
+ OrchestrationType = Shapes::StringShape.new(name: 'OrchestrationType')
131
168
  ParametersMap = Shapes::MapShape.new(name: 'ParametersMap')
132
169
  PlatformCapability = Shapes::StringShape.new(name: 'PlatformCapability')
133
170
  PlatformCapabilityList = Shapes::ListShape.new(name: 'PlatformCapabilityList')
171
+ Quantity = Shapes::StringShape.new(name: 'Quantity')
134
172
  RegisterJobDefinitionRequest = Shapes::StructureShape.new(name: 'RegisterJobDefinitionRequest')
135
173
  RegisterJobDefinitionResponse = Shapes::StructureShape.new(name: 'RegisterJobDefinitionResponse')
136
174
  ResourceRequirement = Shapes::StructureShape.new(name: 'ResourceRequirement')
@@ -138,6 +176,7 @@ module Aws::Batch
138
176
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
139
177
  RetryAction = Shapes::StringShape.new(name: 'RetryAction')
140
178
  RetryStrategy = Shapes::StructureShape.new(name: 'RetryStrategy')
179
+ RuntimePlatform = Shapes::StructureShape.new(name: 'RuntimePlatform')
141
180
  SchedulingPolicyDetail = Shapes::StructureShape.new(name: 'SchedulingPolicyDetail')
142
181
  SchedulingPolicyDetailList = Shapes::ListShape.new(name: 'SchedulingPolicyDetailList')
143
182
  SchedulingPolicyListingDetail = Shapes::StructureShape.new(name: 'SchedulingPolicyListingDetail')
@@ -170,6 +209,7 @@ module Aws::Batch
170
209
  UpdateComputeEnvironmentResponse = Shapes::StructureShape.new(name: 'UpdateComputeEnvironmentResponse')
171
210
  UpdateJobQueueRequest = Shapes::StructureShape.new(name: 'UpdateJobQueueRequest')
172
211
  UpdateJobQueueResponse = Shapes::StructureShape.new(name: 'UpdateJobQueueResponse')
212
+ UpdatePolicy = Shapes::StructureShape.new(name: 'UpdatePolicy')
173
213
  UpdateSchedulingPolicyRequest = Shapes::StructureShape.new(name: 'UpdateSchedulingPolicyRequest')
174
214
  UpdateSchedulingPolicyResponse = Shapes::StructureShape.new(name: 'UpdateSchedulingPolicyResponse')
175
215
  Volume = Shapes::StructureShape.new(name: 'Volume')
@@ -218,7 +258,7 @@ module Aws::Batch
218
258
  ComputeEnvironmentDetail.add_member(:compute_environment_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "computeEnvironmentName"))
219
259
  ComputeEnvironmentDetail.add_member(:compute_environment_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "computeEnvironmentArn"))
220
260
  ComputeEnvironmentDetail.add_member(:unmanagedv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "unmanagedvCpus"))
221
- ComputeEnvironmentDetail.add_member(:ecs_cluster_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ecsClusterArn"))
261
+ ComputeEnvironmentDetail.add_member(:ecs_cluster_arn, Shapes::ShapeRef.new(shape: String, location_name: "ecsClusterArn"))
222
262
  ComputeEnvironmentDetail.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
223
263
  ComputeEnvironmentDetail.add_member(:type, Shapes::ShapeRef.new(shape: CEType, location_name: "type"))
224
264
  ComputeEnvironmentDetail.add_member(:state, Shapes::ShapeRef.new(shape: CEState, location_name: "state"))
@@ -226,6 +266,10 @@ module Aws::Batch
226
266
  ComputeEnvironmentDetail.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
227
267
  ComputeEnvironmentDetail.add_member(:compute_resources, Shapes::ShapeRef.new(shape: ComputeResource, location_name: "computeResources"))
228
268
  ComputeEnvironmentDetail.add_member(:service_role, Shapes::ShapeRef.new(shape: String, location_name: "serviceRole"))
269
+ ComputeEnvironmentDetail.add_member(:update_policy, Shapes::ShapeRef.new(shape: UpdatePolicy, location_name: "updatePolicy"))
270
+ ComputeEnvironmentDetail.add_member(:eks_configuration, Shapes::ShapeRef.new(shape: EksConfiguration, location_name: "eksConfiguration"))
271
+ ComputeEnvironmentDetail.add_member(:container_orchestration_type, Shapes::ShapeRef.new(shape: OrchestrationType, location_name: "containerOrchestrationType"))
272
+ ComputeEnvironmentDetail.add_member(:uuid, Shapes::ShapeRef.new(shape: String, location_name: "uuid"))
229
273
  ComputeEnvironmentDetail.struct_class = Types::ComputeEnvironmentDetail
230
274
 
231
275
  ComputeEnvironmentDetailList.member = Shapes::ShapeRef.new(shape: ComputeEnvironmentDetail)
@@ -260,6 +304,18 @@ module Aws::Batch
260
304
  ComputeResourceUpdate.add_member(:desiredv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "desiredvCpus"))
261
305
  ComputeResourceUpdate.add_member(:subnets, Shapes::ShapeRef.new(shape: StringList, location_name: "subnets"))
262
306
  ComputeResourceUpdate.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "securityGroupIds"))
307
+ ComputeResourceUpdate.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: CRUpdateAllocationStrategy, location_name: "allocationStrategy"))
308
+ ComputeResourceUpdate.add_member(:instance_types, Shapes::ShapeRef.new(shape: StringList, location_name: "instanceTypes"))
309
+ ComputeResourceUpdate.add_member(:ec2_key_pair, Shapes::ShapeRef.new(shape: String, location_name: "ec2KeyPair"))
310
+ ComputeResourceUpdate.add_member(:instance_role, Shapes::ShapeRef.new(shape: String, location_name: "instanceRole"))
311
+ ComputeResourceUpdate.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
312
+ ComputeResourceUpdate.add_member(:placement_group, Shapes::ShapeRef.new(shape: String, location_name: "placementGroup"))
313
+ ComputeResourceUpdate.add_member(:bid_percentage, Shapes::ShapeRef.new(shape: Integer, location_name: "bidPercentage"))
314
+ ComputeResourceUpdate.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
315
+ ComputeResourceUpdate.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2ConfigurationList, location_name: "ec2Configuration"))
316
+ ComputeResourceUpdate.add_member(:update_to_latest_image_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "updateToLatestImageVersion"))
317
+ ComputeResourceUpdate.add_member(:type, Shapes::ShapeRef.new(shape: CRType, location_name: "type"))
318
+ ComputeResourceUpdate.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
263
319
  ComputeResourceUpdate.struct_class = Types::ComputeResourceUpdate
264
320
 
265
321
  ContainerDetail.add_member(:image, Shapes::ShapeRef.new(shape: String, location_name: "image"))
@@ -288,6 +344,8 @@ module Aws::Batch
288
344
  ContainerDetail.add_member(:secrets, Shapes::ShapeRef.new(shape: SecretList, location_name: "secrets"))
289
345
  ContainerDetail.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
290
346
  ContainerDetail.add_member(:fargate_platform_configuration, Shapes::ShapeRef.new(shape: FargatePlatformConfiguration, location_name: "fargatePlatformConfiguration"))
347
+ ContainerDetail.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "ephemeralStorage"))
348
+ ContainerDetail.add_member(:runtime_platform, Shapes::ShapeRef.new(shape: RuntimePlatform, location_name: "runtimePlatform"))
291
349
  ContainerDetail.struct_class = Types::ContainerDetail
292
350
 
293
351
  ContainerOverrides.add_member(:vcpus, Shapes::ShapeRef.new(shape: Integer, deprecated: true, location_name: "vcpus", metadata: {"deprecatedMessage"=>"This field is deprecated, use resourceRequirements instead."}))
@@ -318,6 +376,8 @@ module Aws::Batch
318
376
  ContainerProperties.add_member(:secrets, Shapes::ShapeRef.new(shape: SecretList, location_name: "secrets"))
319
377
  ContainerProperties.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
320
378
  ContainerProperties.add_member(:fargate_platform_configuration, Shapes::ShapeRef.new(shape: FargatePlatformConfiguration, location_name: "fargatePlatformConfiguration"))
379
+ ContainerProperties.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "ephemeralStorage"))
380
+ ContainerProperties.add_member(:runtime_platform, Shapes::ShapeRef.new(shape: RuntimePlatform, location_name: "runtimePlatform"))
321
381
  ContainerProperties.struct_class = Types::ContainerProperties
322
382
 
323
383
  ContainerSummary.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
@@ -331,6 +391,7 @@ module Aws::Batch
331
391
  CreateComputeEnvironmentRequest.add_member(:compute_resources, Shapes::ShapeRef.new(shape: ComputeResource, location_name: "computeResources"))
332
392
  CreateComputeEnvironmentRequest.add_member(:service_role, Shapes::ShapeRef.new(shape: String, location_name: "serviceRole"))
333
393
  CreateComputeEnvironmentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
394
+ CreateComputeEnvironmentRequest.add_member(:eks_configuration, Shapes::ShapeRef.new(shape: EksConfiguration, location_name: "eksConfiguration"))
334
395
  CreateComputeEnvironmentRequest.struct_class = Types::CreateComputeEnvironmentRequest
335
396
 
336
397
  CreateComputeEnvironmentResponse.add_member(:compute_environment_name, Shapes::ShapeRef.new(shape: String, location_name: "computeEnvironmentName"))
@@ -441,12 +502,159 @@ module Aws::Batch
441
502
 
442
503
  Ec2Configuration.add_member(:image_type, Shapes::ShapeRef.new(shape: ImageType, required: true, location_name: "imageType"))
443
504
  Ec2Configuration.add_member(:image_id_override, Shapes::ShapeRef.new(shape: ImageIdOverride, location_name: "imageIdOverride"))
505
+ Ec2Configuration.add_member(:image_kubernetes_version, Shapes::ShapeRef.new(shape: KubernetesVersion, location_name: "imageKubernetesVersion"))
444
506
  Ec2Configuration.struct_class = Types::Ec2Configuration
445
507
 
446
508
  Ec2ConfigurationList.member = Shapes::ShapeRef.new(shape: Ec2Configuration)
447
509
 
510
+ EksAttemptContainerDetail.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
511
+ EksAttemptContainerDetail.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
512
+ EksAttemptContainerDetail.struct_class = Types::EksAttemptContainerDetail
513
+
514
+ EksAttemptContainerDetails.member = Shapes::ShapeRef.new(shape: EksAttemptContainerDetail)
515
+
516
+ EksAttemptDetail.add_member(:containers, Shapes::ShapeRef.new(shape: EksAttemptContainerDetails, location_name: "containers"))
517
+ EksAttemptDetail.add_member(:pod_name, Shapes::ShapeRef.new(shape: String, location_name: "podName"))
518
+ EksAttemptDetail.add_member(:node_name, Shapes::ShapeRef.new(shape: String, location_name: "nodeName"))
519
+ EksAttemptDetail.add_member(:started_at, Shapes::ShapeRef.new(shape: Long, location_name: "startedAt"))
520
+ EksAttemptDetail.add_member(:stopped_at, Shapes::ShapeRef.new(shape: Long, location_name: "stoppedAt"))
521
+ EksAttemptDetail.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
522
+ EksAttemptDetail.struct_class = Types::EksAttemptDetail
523
+
524
+ EksAttemptDetails.member = Shapes::ShapeRef.new(shape: EksAttemptDetail)
525
+
526
+ EksConfiguration.add_member(:eks_cluster_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "eksClusterArn"))
527
+ EksConfiguration.add_member(:kubernetes_namespace, Shapes::ShapeRef.new(shape: String, required: true, location_name: "kubernetesNamespace"))
528
+ EksConfiguration.struct_class = Types::EksConfiguration
529
+
530
+ EksContainer.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
531
+ EksContainer.add_member(:image, Shapes::ShapeRef.new(shape: String, required: true, location_name: "image"))
532
+ EksContainer.add_member(:image_pull_policy, Shapes::ShapeRef.new(shape: String, location_name: "imagePullPolicy"))
533
+ EksContainer.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
534
+ EksContainer.add_member(:args, Shapes::ShapeRef.new(shape: StringList, location_name: "args"))
535
+ EksContainer.add_member(:env, Shapes::ShapeRef.new(shape: EksContainerEnvironmentVariables, location_name: "env"))
536
+ EksContainer.add_member(:resources, Shapes::ShapeRef.new(shape: EksContainerResourceRequirements, location_name: "resources"))
537
+ EksContainer.add_member(:volume_mounts, Shapes::ShapeRef.new(shape: EksContainerVolumeMounts, location_name: "volumeMounts"))
538
+ EksContainer.add_member(:security_context, Shapes::ShapeRef.new(shape: EksContainerSecurityContext, location_name: "securityContext"))
539
+ EksContainer.struct_class = Types::EksContainer
540
+
541
+ EksContainerDetail.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
542
+ EksContainerDetail.add_member(:image, Shapes::ShapeRef.new(shape: String, location_name: "image"))
543
+ EksContainerDetail.add_member(:image_pull_policy, Shapes::ShapeRef.new(shape: String, location_name: "imagePullPolicy"))
544
+ EksContainerDetail.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
545
+ EksContainerDetail.add_member(:args, Shapes::ShapeRef.new(shape: StringList, location_name: "args"))
546
+ EksContainerDetail.add_member(:env, Shapes::ShapeRef.new(shape: EksContainerEnvironmentVariables, location_name: "env"))
547
+ EksContainerDetail.add_member(:resources, Shapes::ShapeRef.new(shape: EksContainerResourceRequirements, location_name: "resources"))
548
+ EksContainerDetail.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
549
+ EksContainerDetail.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
550
+ EksContainerDetail.add_member(:volume_mounts, Shapes::ShapeRef.new(shape: EksContainerVolumeMounts, location_name: "volumeMounts"))
551
+ EksContainerDetail.add_member(:security_context, Shapes::ShapeRef.new(shape: EksContainerSecurityContext, location_name: "securityContext"))
552
+ EksContainerDetail.struct_class = Types::EksContainerDetail
553
+
554
+ EksContainerDetails.member = Shapes::ShapeRef.new(shape: EksContainerDetail)
555
+
556
+ EksContainerEnvironmentVariable.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
557
+ EksContainerEnvironmentVariable.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
558
+ EksContainerEnvironmentVariable.struct_class = Types::EksContainerEnvironmentVariable
559
+
560
+ EksContainerEnvironmentVariables.member = Shapes::ShapeRef.new(shape: EksContainerEnvironmentVariable)
561
+
562
+ EksContainerOverride.add_member(:image, Shapes::ShapeRef.new(shape: String, location_name: "image"))
563
+ EksContainerOverride.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
564
+ EksContainerOverride.add_member(:args, Shapes::ShapeRef.new(shape: StringList, location_name: "args"))
565
+ EksContainerOverride.add_member(:env, Shapes::ShapeRef.new(shape: EksContainerEnvironmentVariables, location_name: "env"))
566
+ EksContainerOverride.add_member(:resources, Shapes::ShapeRef.new(shape: EksContainerResourceRequirements, location_name: "resources"))
567
+ EksContainerOverride.struct_class = Types::EksContainerOverride
568
+
569
+ EksContainerOverrideList.member = Shapes::ShapeRef.new(shape: EksContainerOverride)
570
+
571
+ EksContainerResourceRequirements.add_member(:limits, Shapes::ShapeRef.new(shape: EksLimits, location_name: "limits"))
572
+ EksContainerResourceRequirements.add_member(:requests, Shapes::ShapeRef.new(shape: EksRequests, location_name: "requests"))
573
+ EksContainerResourceRequirements.struct_class = Types::EksContainerResourceRequirements
574
+
575
+ EksContainerSecurityContext.add_member(:run_as_user, Shapes::ShapeRef.new(shape: Long, location_name: "runAsUser"))
576
+ EksContainerSecurityContext.add_member(:run_as_group, Shapes::ShapeRef.new(shape: Long, location_name: "runAsGroup"))
577
+ EksContainerSecurityContext.add_member(:privileged, Shapes::ShapeRef.new(shape: Boolean, location_name: "privileged"))
578
+ EksContainerSecurityContext.add_member(:read_only_root_filesystem, Shapes::ShapeRef.new(shape: Boolean, location_name: "readOnlyRootFilesystem"))
579
+ EksContainerSecurityContext.add_member(:run_as_non_root, Shapes::ShapeRef.new(shape: Boolean, location_name: "runAsNonRoot"))
580
+ EksContainerSecurityContext.struct_class = Types::EksContainerSecurityContext
581
+
582
+ EksContainerVolumeMount.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
583
+ EksContainerVolumeMount.add_member(:mount_path, Shapes::ShapeRef.new(shape: String, location_name: "mountPath"))
584
+ EksContainerVolumeMount.add_member(:read_only, Shapes::ShapeRef.new(shape: Boolean, location_name: "readOnly"))
585
+ EksContainerVolumeMount.struct_class = Types::EksContainerVolumeMount
586
+
587
+ EksContainerVolumeMounts.member = Shapes::ShapeRef.new(shape: EksContainerVolumeMount)
588
+
589
+ EksContainers.member = Shapes::ShapeRef.new(shape: EksContainer)
590
+
591
+ EksEmptyDir.add_member(:medium, Shapes::ShapeRef.new(shape: String, location_name: "medium"))
592
+ EksEmptyDir.add_member(:size_limit, Shapes::ShapeRef.new(shape: Quantity, location_name: "sizeLimit"))
593
+ EksEmptyDir.struct_class = Types::EksEmptyDir
594
+
595
+ EksHostPath.add_member(:path, Shapes::ShapeRef.new(shape: String, location_name: "path"))
596
+ EksHostPath.struct_class = Types::EksHostPath
597
+
598
+ EksLabelsMap.key = Shapes::ShapeRef.new(shape: String)
599
+ EksLabelsMap.value = Shapes::ShapeRef.new(shape: String)
600
+
601
+ EksLimits.key = Shapes::ShapeRef.new(shape: String)
602
+ EksLimits.value = Shapes::ShapeRef.new(shape: Quantity)
603
+
604
+ EksMetadata.add_member(:labels, Shapes::ShapeRef.new(shape: EksLabelsMap, location_name: "labels"))
605
+ EksMetadata.struct_class = Types::EksMetadata
606
+
607
+ EksPodProperties.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
608
+ EksPodProperties.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
609
+ EksPodProperties.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
610
+ EksPodProperties.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainers, location_name: "containers"))
611
+ EksPodProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
612
+ EksPodProperties.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
613
+ EksPodProperties.struct_class = Types::EksPodProperties
614
+
615
+ EksPodPropertiesDetail.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
616
+ EksPodPropertiesDetail.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
617
+ EksPodPropertiesDetail.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
618
+ EksPodPropertiesDetail.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainerDetails, location_name: "containers"))
619
+ EksPodPropertiesDetail.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
620
+ EksPodPropertiesDetail.add_member(:pod_name, Shapes::ShapeRef.new(shape: String, location_name: "podName"))
621
+ EksPodPropertiesDetail.add_member(:node_name, Shapes::ShapeRef.new(shape: String, location_name: "nodeName"))
622
+ EksPodPropertiesDetail.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
623
+ EksPodPropertiesDetail.struct_class = Types::EksPodPropertiesDetail
624
+
625
+ EksPodPropertiesOverride.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainerOverrideList, location_name: "containers"))
626
+ EksPodPropertiesOverride.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
627
+ EksPodPropertiesOverride.struct_class = Types::EksPodPropertiesOverride
628
+
629
+ EksProperties.add_member(:pod_properties, Shapes::ShapeRef.new(shape: EksPodProperties, location_name: "podProperties"))
630
+ EksProperties.struct_class = Types::EksProperties
631
+
632
+ EksPropertiesDetail.add_member(:pod_properties, Shapes::ShapeRef.new(shape: EksPodPropertiesDetail, location_name: "podProperties"))
633
+ EksPropertiesDetail.struct_class = Types::EksPropertiesDetail
634
+
635
+ EksPropertiesOverride.add_member(:pod_properties, Shapes::ShapeRef.new(shape: EksPodPropertiesOverride, location_name: "podProperties"))
636
+ EksPropertiesOverride.struct_class = Types::EksPropertiesOverride
637
+
638
+ EksRequests.key = Shapes::ShapeRef.new(shape: String)
639
+ EksRequests.value = Shapes::ShapeRef.new(shape: Quantity)
640
+
641
+ EksSecret.add_member(:secret_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "secretName"))
642
+ EksSecret.add_member(:optional, Shapes::ShapeRef.new(shape: Boolean, location_name: "optional"))
643
+ EksSecret.struct_class = Types::EksSecret
644
+
645
+ EksVolume.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
646
+ EksVolume.add_member(:host_path, Shapes::ShapeRef.new(shape: EksHostPath, location_name: "hostPath"))
647
+ EksVolume.add_member(:empty_dir, Shapes::ShapeRef.new(shape: EksEmptyDir, location_name: "emptyDir"))
648
+ EksVolume.add_member(:secret, Shapes::ShapeRef.new(shape: EksSecret, location_name: "secret"))
649
+ EksVolume.struct_class = Types::EksVolume
650
+
651
+ EksVolumes.member = Shapes::ShapeRef.new(shape: EksVolume)
652
+
448
653
  EnvironmentVariables.member = Shapes::ShapeRef.new(shape: KeyValuePair)
449
654
 
655
+ EphemeralStorage.add_member(:size_in_gi_b, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "sizeInGiB"))
656
+ EphemeralStorage.struct_class = Types::EphemeralStorage
657
+
450
658
  EvaluateOnExit.add_member(:on_status_reason, Shapes::ShapeRef.new(shape: String, location_name: "onStatusReason"))
451
659
  EvaluateOnExit.add_member(:on_reason, Shapes::ShapeRef.new(shape: String, location_name: "onReason"))
452
660
  EvaluateOnExit.add_member(:on_exit_code, Shapes::ShapeRef.new(shape: String, location_name: "onExitCode"))
@@ -480,6 +688,8 @@ module Aws::Batch
480
688
  JobDefinition.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
481
689
  JobDefinition.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "propagateTags"))
482
690
  JobDefinition.add_member(:platform_capabilities, Shapes::ShapeRef.new(shape: PlatformCapabilityList, location_name: "platformCapabilities"))
691
+ JobDefinition.add_member(:eks_properties, Shapes::ShapeRef.new(shape: EksProperties, location_name: "eksProperties"))
692
+ JobDefinition.add_member(:container_orchestration_type, Shapes::ShapeRef.new(shape: OrchestrationType, location_name: "containerOrchestrationType"))
483
693
  JobDefinition.struct_class = Types::JobDefinition
484
694
 
485
695
  JobDefinitionList.member = Shapes::ShapeRef.new(shape: JobDefinition)
@@ -514,6 +724,10 @@ module Aws::Batch
514
724
  JobDetail.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
515
725
  JobDetail.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "propagateTags"))
516
726
  JobDetail.add_member(:platform_capabilities, Shapes::ShapeRef.new(shape: PlatformCapabilityList, location_name: "platformCapabilities"))
727
+ JobDetail.add_member(:eks_properties, Shapes::ShapeRef.new(shape: EksPropertiesDetail, location_name: "eksProperties"))
728
+ JobDetail.add_member(:eks_attempts, Shapes::ShapeRef.new(shape: EksAttemptDetails, location_name: "eksAttempts"))
729
+ JobDetail.add_member(:is_cancelled, Shapes::ShapeRef.new(shape: Boolean, location_name: "isCancelled"))
730
+ JobDetail.add_member(:is_terminated, Shapes::ShapeRef.new(shape: Boolean, location_name: "isTerminated"))
517
731
  JobDetail.struct_class = Types::JobDetail
518
732
 
519
733
  JobDetailList.member = Shapes::ShapeRef.new(shape: JobDetail)
@@ -671,6 +885,7 @@ module Aws::Batch
671
885
  RegisterJobDefinitionRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
672
886
  RegisterJobDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
673
887
  RegisterJobDefinitionRequest.add_member(:platform_capabilities, Shapes::ShapeRef.new(shape: PlatformCapabilityList, location_name: "platformCapabilities"))
888
+ RegisterJobDefinitionRequest.add_member(:eks_properties, Shapes::ShapeRef.new(shape: EksProperties, location_name: "eksProperties"))
674
889
  RegisterJobDefinitionRequest.struct_class = Types::RegisterJobDefinitionRequest
675
890
 
676
891
  RegisterJobDefinitionResponse.add_member(:job_definition_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinitionName"))
@@ -688,6 +903,10 @@ module Aws::Batch
688
903
  RetryStrategy.add_member(:evaluate_on_exit, Shapes::ShapeRef.new(shape: EvaluateOnExitList, location_name: "evaluateOnExit"))
689
904
  RetryStrategy.struct_class = Types::RetryStrategy
690
905
 
906
+ RuntimePlatform.add_member(:operating_system_family, Shapes::ShapeRef.new(shape: String, location_name: "operatingSystemFamily"))
907
+ RuntimePlatform.add_member(:cpu_architecture, Shapes::ShapeRef.new(shape: String, location_name: "cpuArchitecture"))
908
+ RuntimePlatform.struct_class = Types::RuntimePlatform
909
+
691
910
  SchedulingPolicyDetail.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
692
911
  SchedulingPolicyDetail.add_member(:arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "arn"))
693
912
  SchedulingPolicyDetail.add_member(:fairshare_policy, Shapes::ShapeRef.new(shape: FairsharePolicy, location_name: "fairsharePolicy"))
@@ -732,6 +951,7 @@ module Aws::Batch
732
951
  SubmitJobRequest.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "propagateTags"))
733
952
  SubmitJobRequest.add_member(:timeout, Shapes::ShapeRef.new(shape: JobTimeout, location_name: "timeout"))
734
953
  SubmitJobRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
954
+ SubmitJobRequest.add_member(:eks_properties_override, Shapes::ShapeRef.new(shape: EksPropertiesOverride, location_name: "eksPropertiesOverride"))
735
955
  SubmitJobRequest.struct_class = Types::SubmitJobRequest
736
956
 
737
957
  SubmitJobResponse.add_member(:job_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobArn"))
@@ -784,6 +1004,7 @@ module Aws::Batch
784
1004
  UpdateComputeEnvironmentRequest.add_member(:unmanagedv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "unmanagedvCpus"))
785
1005
  UpdateComputeEnvironmentRequest.add_member(:compute_resources, Shapes::ShapeRef.new(shape: ComputeResourceUpdate, location_name: "computeResources"))
786
1006
  UpdateComputeEnvironmentRequest.add_member(:service_role, Shapes::ShapeRef.new(shape: String, location_name: "serviceRole"))
1007
+ UpdateComputeEnvironmentRequest.add_member(:update_policy, Shapes::ShapeRef.new(shape: UpdatePolicy, location_name: "updatePolicy"))
787
1008
  UpdateComputeEnvironmentRequest.struct_class = Types::UpdateComputeEnvironmentRequest
788
1009
 
789
1010
  UpdateComputeEnvironmentResponse.add_member(:compute_environment_name, Shapes::ShapeRef.new(shape: String, location_name: "computeEnvironmentName"))
@@ -801,6 +1022,10 @@ module Aws::Batch
801
1022
  UpdateJobQueueResponse.add_member(:job_queue_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobQueueArn"))
802
1023
  UpdateJobQueueResponse.struct_class = Types::UpdateJobQueueResponse
803
1024
 
1025
+ UpdatePolicy.add_member(:terminate_jobs_on_update, Shapes::ShapeRef.new(shape: Boolean, location_name: "terminateJobsOnUpdate"))
1026
+ UpdatePolicy.add_member(:job_execution_timeout_minutes, Shapes::ShapeRef.new(shape: JobExecutionTimeoutMinutes, location_name: "jobExecutionTimeoutMinutes"))
1027
+ UpdatePolicy.struct_class = Types::UpdatePolicy
1028
+
804
1029
  UpdateSchedulingPolicyRequest.add_member(:arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "arn"))
805
1030
  UpdateSchedulingPolicyRequest.add_member(:fairshare_policy, Shapes::ShapeRef.new(shape: FairsharePolicy, location_name: "fairsharePolicy"))
806
1031
  UpdateSchedulingPolicyRequest.struct_class = Types::UpdateSchedulingPolicyRequest
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Batch
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Batch
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://batch-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
37
+ return Aws::Endpoints::Endpoint.new(url: "https://fips.batch.#{region}.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
40
+ return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.amazonaws.com", headers: {}, properties: {})
41
+ end
42
+ return Aws::Endpoints::Endpoint.new(url: "https://batch-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
45
+ end
46
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
47
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
48
+ return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
49
+ end
50
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
51
+ end
52
+ return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
53
+ end
54
+ end
55
+ raise ArgumentError, "Invalid Configuration: Missing Region"
56
+ raise ArgumentError, 'No endpoint could be resolved'
57
+
58
+ end
59
+ end
60
+ end