aws-sdk-batch 1.161.0 → 1.162.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad8a17d8ebfc6772f0548c8de2cfa9d0497023dc9888b5b546fbc566e6893692
4
- data.tar.gz: '0508f94cfe2814bc9099c057787edc7795d09d9fca181c3e4d642109128ae142'
3
+ metadata.gz: e7df6466ef884dfa32626ec35fee2448aa27510bdf46faed85f925551c91da08
4
+ data.tar.gz: a981cc894e70ced5983d8998045ce17747ffb476d3043f688732a9670448c37f
5
5
  SHA512:
6
- metadata.gz: 947abd1982010036bd0fc6cae078b4e9622db13b052b8ee56cd1e43a6c2cab5743d221dcd5f55b2a111e40a4a96ed29b6245331e6753a95d21389cab32469d3a
7
- data.tar.gz: a0c20e353b890a2cb59d33d06607748c67c222c4c1a8a4ce91060ad35f42686de7d9e98920a0035f173256c63a55741cdf481dd17ff08c77a44a0d9f685f20aa
6
+ metadata.gz: 07fb1733c1fa201d57241babaa54be7bcb6c7b063000bb891d8979653b49e2ff0dd3826516cd0bff08f80fc2eaba3570f10cdf9c6db268d6ed3c19fed412f238
7
+ data.tar.gz: 6c1db09373fd54b56a9b64233d818a5d2792d4e50fe5dd3806db8fabcf58a730acf946a83f475526fdf7110aaca464e7bc7bfcd114bb8df9f0fe84b8ce9ed9c8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.162.0 (2026-11-09)
5
+ ------------------
6
+
7
+ * Feature - Adds support for additional Amazon EKS security context settings in AWS Batch. Pod-level settings include fsGroup, runAsUser, runAsGroup, runAsNonRoot, and seccompProfile. Container-level settings add Linux capabilities and seccompProfile to existing runAsUser, runAsGroup, and runAsNonRoot support.
8
+
4
9
  1.161.0 (2026-11-06)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.161.0
1
+ 1.162.0
@@ -2571,6 +2571,12 @@ module Aws::Batch
2571
2571
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
2572
2572
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
2573
2573
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
2574
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.capabilities.add #=> Array
2575
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.capabilities.add[0] #=> String
2576
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.capabilities.drop #=> Array
2577
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.capabilities.drop[0] #=> String
2578
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
2579
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.seccomp_profile.localhost_profile #=> String
2574
2580
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers #=> Array
2575
2581
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].name #=> String
2576
2582
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].image #=> String
@@ -2597,6 +2603,12 @@ module Aws::Batch
2597
2603
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
2598
2604
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
2599
2605
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
2606
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.add #=> Array
2607
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.add[0] #=> String
2608
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.drop #=> Array
2609
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.drop[0] #=> String
2610
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
2611
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.seccomp_profile.localhost_profile #=> String
2600
2612
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.volumes #=> Array
2601
2613
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.volumes[0].name #=> String
2602
2614
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.volumes[0].host_path.path #=> String
@@ -2612,6 +2624,12 @@ module Aws::Batch
2612
2624
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.metadata.annotations["String"] #=> String
2613
2625
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.metadata.namespace #=> String
2614
2626
  # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.share_process_namespace #=> Boolean
2627
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.run_as_user #=> Integer
2628
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.run_as_group #=> Integer
2629
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.run_as_non_root #=> Boolean
2630
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
2631
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.seccomp_profile.localhost_profile #=> String
2632
+ # resp.job_definitions[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.fs_group #=> Integer
2615
2633
  # resp.job_definitions[0].node_properties.node_range_properties[0].consumable_resource_properties.consumable_resource_list #=> Array
2616
2634
  # resp.job_definitions[0].node_properties.node_range_properties[0].consumable_resource_properties.consumable_resource_list[0].consumable_resource #=> String
2617
2635
  # resp.job_definitions[0].node_properties.node_range_properties[0].consumable_resource_properties.consumable_resource_list[0].quantity #=> Integer
@@ -2731,6 +2749,12 @@ module Aws::Batch
2731
2749
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
2732
2750
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
2733
2751
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
2752
+ # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.capabilities.add #=> Array
2753
+ # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.capabilities.add[0] #=> String
2754
+ # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.capabilities.drop #=> Array
2755
+ # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.capabilities.drop[0] #=> String
2756
+ # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
2757
+ # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.seccomp_profile.localhost_profile #=> String
2734
2758
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers #=> Array
2735
2759
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].name #=> String
2736
2760
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].image #=> String
@@ -2757,6 +2781,12 @@ module Aws::Batch
2757
2781
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
2758
2782
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
2759
2783
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
2784
+ # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.add #=> Array
2785
+ # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.add[0] #=> String
2786
+ # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.drop #=> Array
2787
+ # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.drop[0] #=> String
2788
+ # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
2789
+ # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.seccomp_profile.localhost_profile #=> String
2760
2790
  # resp.job_definitions[0].eks_properties.pod_properties.volumes #=> Array
2761
2791
  # resp.job_definitions[0].eks_properties.pod_properties.volumes[0].name #=> String
2762
2792
  # resp.job_definitions[0].eks_properties.pod_properties.volumes[0].host_path.path #=> String
@@ -2772,6 +2802,12 @@ module Aws::Batch
2772
2802
  # resp.job_definitions[0].eks_properties.pod_properties.metadata.annotations["String"] #=> String
2773
2803
  # resp.job_definitions[0].eks_properties.pod_properties.metadata.namespace #=> String
2774
2804
  # resp.job_definitions[0].eks_properties.pod_properties.share_process_namespace #=> Boolean
2805
+ # resp.job_definitions[0].eks_properties.pod_properties.security_context.run_as_user #=> Integer
2806
+ # resp.job_definitions[0].eks_properties.pod_properties.security_context.run_as_group #=> Integer
2807
+ # resp.job_definitions[0].eks_properties.pod_properties.security_context.run_as_non_root #=> Boolean
2808
+ # resp.job_definitions[0].eks_properties.pod_properties.security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
2809
+ # resp.job_definitions[0].eks_properties.pod_properties.security_context.seccomp_profile.localhost_profile #=> String
2810
+ # resp.job_definitions[0].eks_properties.pod_properties.security_context.fs_group #=> Integer
2775
2811
  # resp.job_definitions[0].container_orchestration_type #=> String, one of "ECS", "EKS"
2776
2812
  # resp.job_definitions[0].consumable_resource_properties.consumable_resource_list #=> Array
2777
2813
  # resp.job_definitions[0].consumable_resource_properties.consumable_resource_list[0].consumable_resource #=> String
@@ -3276,6 +3312,12 @@ module Aws::Batch
3276
3312
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
3277
3313
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
3278
3314
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
3315
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.capabilities.add #=> Array
3316
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.capabilities.add[0] #=> String
3317
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.capabilities.drop #=> Array
3318
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.capabilities.drop[0] #=> String
3319
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
3320
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.containers[0].security_context.seccomp_profile.localhost_profile #=> String
3279
3321
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers #=> Array
3280
3322
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].name #=> String
3281
3323
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].image #=> String
@@ -3302,6 +3344,12 @@ module Aws::Batch
3302
3344
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
3303
3345
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
3304
3346
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
3347
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.add #=> Array
3348
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.add[0] #=> String
3349
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.drop #=> Array
3350
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.drop[0] #=> String
3351
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
3352
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.init_containers[0].security_context.seccomp_profile.localhost_profile #=> String
3305
3353
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.volumes #=> Array
3306
3354
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.volumes[0].name #=> String
3307
3355
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.volumes[0].host_path.path #=> String
@@ -3317,6 +3365,12 @@ module Aws::Batch
3317
3365
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.metadata.annotations["String"] #=> String
3318
3366
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.metadata.namespace #=> String
3319
3367
  # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.share_process_namespace #=> Boolean
3368
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.run_as_user #=> Integer
3369
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.run_as_group #=> Integer
3370
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.run_as_non_root #=> Boolean
3371
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
3372
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.seccomp_profile.localhost_profile #=> String
3373
+ # resp.jobs[0].node_properties.node_range_properties[0].eks_properties.pod_properties.security_context.fs_group #=> Integer
3320
3374
  # resp.jobs[0].node_properties.node_range_properties[0].consumable_resource_properties.consumable_resource_list #=> Array
3321
3375
  # resp.jobs[0].node_properties.node_range_properties[0].consumable_resource_properties.consumable_resource_list[0].consumable_resource #=> String
3322
3376
  # resp.jobs[0].node_properties.node_range_properties[0].consumable_resource_properties.consumable_resource_list[0].quantity #=> Integer
@@ -3364,6 +3418,12 @@ module Aws::Batch
3364
3418
  # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
3365
3419
  # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
3366
3420
  # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
3421
+ # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.capabilities.add #=> Array
3422
+ # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.capabilities.add[0] #=> String
3423
+ # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.capabilities.drop #=> Array
3424
+ # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.capabilities.drop[0] #=> String
3425
+ # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
3426
+ # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.seccomp_profile.localhost_profile #=> String
3367
3427
  # resp.jobs[0].eks_properties.pod_properties.init_containers #=> Array
3368
3428
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].name #=> String
3369
3429
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].image #=> String
@@ -3392,6 +3452,12 @@ module Aws::Batch
3392
3452
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
3393
3453
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
3394
3454
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
3455
+ # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.add #=> Array
3456
+ # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.add[0] #=> String
3457
+ # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.drop #=> Array
3458
+ # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.capabilities.drop[0] #=> String
3459
+ # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
3460
+ # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.seccomp_profile.localhost_profile #=> String
3395
3461
  # resp.jobs[0].eks_properties.pod_properties.volumes #=> Array
3396
3462
  # resp.jobs[0].eks_properties.pod_properties.volumes[0].name #=> String
3397
3463
  # resp.jobs[0].eks_properties.pod_properties.volumes[0].host_path.path #=> String
@@ -3409,6 +3475,12 @@ module Aws::Batch
3409
3475
  # resp.jobs[0].eks_properties.pod_properties.metadata.annotations["String"] #=> String
3410
3476
  # resp.jobs[0].eks_properties.pod_properties.metadata.namespace #=> String
3411
3477
  # resp.jobs[0].eks_properties.pod_properties.share_process_namespace #=> Boolean
3478
+ # resp.jobs[0].eks_properties.pod_properties.security_context.run_as_user #=> Integer
3479
+ # resp.jobs[0].eks_properties.pod_properties.security_context.run_as_group #=> Integer
3480
+ # resp.jobs[0].eks_properties.pod_properties.security_context.run_as_non_root #=> Boolean
3481
+ # resp.jobs[0].eks_properties.pod_properties.security_context.seccomp_profile.type #=> String, one of "RuntimeDefault", "Localhost", "Unconfined"
3482
+ # resp.jobs[0].eks_properties.pod_properties.security_context.seccomp_profile.localhost_profile #=> String
3483
+ # resp.jobs[0].eks_properties.pod_properties.security_context.fs_group #=> Integer
3412
3484
  # resp.jobs[0].eks_attempts #=> Array
3413
3485
  # resp.jobs[0].eks_attempts[0].containers #=> Array
3414
3486
  # resp.jobs[0].eks_attempts[0].containers[0].name #=> String
@@ -4672,10 +4744,17 @@ module Aws::Batch
4672
4744
  # definitions.
4673
4745
  #
4674
4746
  # <note markdown="1"> If the job runs on Fargate resources, then you must not specify
4675
- # `nodeProperties`; use only `containerProperties`.
4747
+ # `nodeProperties`. We recommend `ecsProperties`, which supports both
4748
+ # single-container and multi-container jobs. `containerProperties` is
4749
+ # also supported for single-container jobs. For more information, see
4750
+ # [Multi-container jobs][1] in the *Batch User Guide*.
4676
4751
  #
4677
4752
  # </note>
4678
4753
  #
4754
+ #
4755
+ #
4756
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/multi-container-jobs.html
4757
+ #
4679
4758
  # @option params [Types::NodeProperties] :node_properties
4680
4759
  # An object with properties specific to multi-node parallel jobs. If you
4681
4760
  # specify node properties for a job, it becomes a multi-node parallel
@@ -4683,7 +4762,9 @@ module Aws::Batch
4683
4762
  # *Batch User Guide*.
4684
4763
  #
4685
4764
  # <note markdown="1"> If the job runs on Fargate resources, then you must not specify
4686
- # `nodeProperties`; use `containerProperties` instead.
4765
+ # `nodeProperties`. We recommend `ecsProperties`, which supports both
4766
+ # single-container and multi-container jobs. `containerProperties` is
4767
+ # also supported for single-container jobs.
4687
4768
  #
4688
4769
  # </note>
4689
4770
  #
@@ -5439,6 +5520,14 @@ module Aws::Batch
5439
5520
  # allow_privilege_escalation: false,
5440
5521
  # read_only_root_filesystem: false,
5441
5522
  # run_as_non_root: false,
5523
+ # capabilities: {
5524
+ # add: ["EksContainerLinuxCapability"],
5525
+ # drop: ["EksContainerLinuxCapability"],
5526
+ # },
5527
+ # seccomp_profile: {
5528
+ # type: "RuntimeDefault", # required, accepts RuntimeDefault, Localhost, Unconfined
5529
+ # localhost_profile: "EksSeccompLocalhostProfile",
5530
+ # },
5442
5531
  # },
5443
5532
  # },
5444
5533
  # ],
@@ -5478,6 +5567,14 @@ module Aws::Batch
5478
5567
  # allow_privilege_escalation: false,
5479
5568
  # read_only_root_filesystem: false,
5480
5569
  # run_as_non_root: false,
5570
+ # capabilities: {
5571
+ # add: ["EksContainerLinuxCapability"],
5572
+ # drop: ["EksContainerLinuxCapability"],
5573
+ # },
5574
+ # seccomp_profile: {
5575
+ # type: "RuntimeDefault", # required, accepts RuntimeDefault, Localhost, Unconfined
5576
+ # localhost_profile: "EksSeccompLocalhostProfile",
5577
+ # },
5481
5578
  # },
5482
5579
  # },
5483
5580
  # ],
@@ -5511,6 +5608,16 @@ module Aws::Batch
5511
5608
  # namespace: "String",
5512
5609
  # },
5513
5610
  # share_process_namespace: false,
5611
+ # security_context: {
5612
+ # run_as_user: 1,
5613
+ # run_as_group: 1,
5614
+ # run_as_non_root: false,
5615
+ # seccomp_profile: {
5616
+ # type: "RuntimeDefault", # required, accepts RuntimeDefault, Localhost, Unconfined
5617
+ # localhost_profile: "EksSeccompLocalhostProfile",
5618
+ # },
5619
+ # fs_group: 1,
5620
+ # },
5514
5621
  # },
5515
5622
  # },
5516
5623
  # consumable_resource_properties: {
@@ -5589,6 +5696,14 @@ module Aws::Batch
5589
5696
  # allow_privilege_escalation: false,
5590
5697
  # read_only_root_filesystem: false,
5591
5698
  # run_as_non_root: false,
5699
+ # capabilities: {
5700
+ # add: ["EksContainerLinuxCapability"],
5701
+ # drop: ["EksContainerLinuxCapability"],
5702
+ # },
5703
+ # seccomp_profile: {
5704
+ # type: "RuntimeDefault", # required, accepts RuntimeDefault, Localhost, Unconfined
5705
+ # localhost_profile: "EksSeccompLocalhostProfile",
5706
+ # },
5592
5707
  # },
5593
5708
  # },
5594
5709
  # ],
@@ -5628,6 +5743,14 @@ module Aws::Batch
5628
5743
  # allow_privilege_escalation: false,
5629
5744
  # read_only_root_filesystem: false,
5630
5745
  # run_as_non_root: false,
5746
+ # capabilities: {
5747
+ # add: ["EksContainerLinuxCapability"],
5748
+ # drop: ["EksContainerLinuxCapability"],
5749
+ # },
5750
+ # seccomp_profile: {
5751
+ # type: "RuntimeDefault", # required, accepts RuntimeDefault, Localhost, Unconfined
5752
+ # localhost_profile: "EksSeccompLocalhostProfile",
5753
+ # },
5631
5754
  # },
5632
5755
  # },
5633
5756
  # ],
@@ -5661,6 +5784,16 @@ module Aws::Batch
5661
5784
  # namespace: "String",
5662
5785
  # },
5663
5786
  # share_process_namespace: false,
5787
+ # security_context: {
5788
+ # run_as_user: 1,
5789
+ # run_as_group: 1,
5790
+ # run_as_non_root: false,
5791
+ # seccomp_profile: {
5792
+ # type: "RuntimeDefault", # required, accepts RuntimeDefault, Localhost, Unconfined
5793
+ # localhost_profile: "EksSeccompLocalhostProfile",
5794
+ # },
5795
+ # fs_group: 1,
5796
+ # },
5664
5797
  # },
5665
5798
  # },
5666
5799
  # ecs_properties: {
@@ -7418,7 +7551,7 @@ module Aws::Batch
7418
7551
  tracer: tracer
7419
7552
  )
7420
7553
  context[:gem_name] = 'aws-sdk-batch'
7421
- context[:gem_version] = '1.161.0'
7554
+ context[:gem_version] = '1.162.0'
7422
7555
  Seahorse::Client::Request.new(handlers, context)
7423
7556
  end
7424
7557
 
@@ -136,6 +136,9 @@ module Aws::Batch
136
136
  EksContainerDetails = Shapes::ListShape.new(name: 'EksContainerDetails')
137
137
  EksContainerEnvironmentVariable = Shapes::StructureShape.new(name: 'EksContainerEnvironmentVariable')
138
138
  EksContainerEnvironmentVariables = Shapes::ListShape.new(name: 'EksContainerEnvironmentVariables')
139
+ EksContainerLinuxCapabilities = Shapes::StructureShape.new(name: 'EksContainerLinuxCapabilities')
140
+ EksContainerLinuxCapability = Shapes::StringShape.new(name: 'EksContainerLinuxCapability')
141
+ EksContainerLinuxCapabilityList = Shapes::ListShape.new(name: 'EksContainerLinuxCapabilityList')
139
142
  EksContainerOverride = Shapes::StructureShape.new(name: 'EksContainerOverride')
140
143
  EksContainerOverrideList = Shapes::ListShape.new(name: 'EksContainerOverrideList')
141
144
  EksContainerResourceRequirements = Shapes::StructureShape.new(name: 'EksContainerResourceRequirements')
@@ -152,10 +155,14 @@ module Aws::Batch
152
155
  EksPodProperties = Shapes::StructureShape.new(name: 'EksPodProperties')
153
156
  EksPodPropertiesDetail = Shapes::StructureShape.new(name: 'EksPodPropertiesDetail')
154
157
  EksPodPropertiesOverride = Shapes::StructureShape.new(name: 'EksPodPropertiesOverride')
158
+ EksPodSecurityContext = Shapes::StructureShape.new(name: 'EksPodSecurityContext')
155
159
  EksProperties = Shapes::StructureShape.new(name: 'EksProperties')
156
160
  EksPropertiesDetail = Shapes::StructureShape.new(name: 'EksPropertiesDetail')
157
161
  EksPropertiesOverride = Shapes::StructureShape.new(name: 'EksPropertiesOverride')
158
162
  EksRequests = Shapes::MapShape.new(name: 'EksRequests')
163
+ EksSeccompLocalhostProfile = Shapes::StringShape.new(name: 'EksSeccompLocalhostProfile')
164
+ EksSeccompProfile = Shapes::StructureShape.new(name: 'EksSeccompProfile')
165
+ EksSeccompProfileType = Shapes::StringShape.new(name: 'EksSeccompProfileType')
159
166
  EksSecret = Shapes::StructureShape.new(name: 'EksSecret')
160
167
  EksVolume = Shapes::StructureShape.new(name: 'EksVolume')
161
168
  EksVolumes = Shapes::ListShape.new(name: 'EksVolumes')
@@ -998,6 +1005,12 @@ module Aws::Batch
998
1005
 
999
1006
  EksContainerEnvironmentVariables.member = Shapes::ShapeRef.new(shape: EksContainerEnvironmentVariable)
1000
1007
 
1008
+ EksContainerLinuxCapabilities.add_member(:add, Shapes::ShapeRef.new(shape: EksContainerLinuxCapabilityList, location_name: "add"))
1009
+ EksContainerLinuxCapabilities.add_member(:drop, Shapes::ShapeRef.new(shape: EksContainerLinuxCapabilityList, location_name: "drop"))
1010
+ EksContainerLinuxCapabilities.struct_class = Types::EksContainerLinuxCapabilities
1011
+
1012
+ EksContainerLinuxCapabilityList.member = Shapes::ShapeRef.new(shape: EksContainerLinuxCapability)
1013
+
1001
1014
  EksContainerOverride.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
1002
1015
  EksContainerOverride.add_member(:image, Shapes::ShapeRef.new(shape: String, location_name: "image"))
1003
1016
  EksContainerOverride.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
@@ -1018,6 +1031,8 @@ module Aws::Batch
1018
1031
  EksContainerSecurityContext.add_member(:allow_privilege_escalation, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowPrivilegeEscalation"))
1019
1032
  EksContainerSecurityContext.add_member(:read_only_root_filesystem, Shapes::ShapeRef.new(shape: Boolean, location_name: "readOnlyRootFilesystem"))
1020
1033
  EksContainerSecurityContext.add_member(:run_as_non_root, Shapes::ShapeRef.new(shape: Boolean, location_name: "runAsNonRoot"))
1034
+ EksContainerSecurityContext.add_member(:capabilities, Shapes::ShapeRef.new(shape: EksContainerLinuxCapabilities, location_name: "capabilities"))
1035
+ EksContainerSecurityContext.add_member(:seccomp_profile, Shapes::ShapeRef.new(shape: EksSeccompProfile, location_name: "seccompProfile"))
1021
1036
  EksContainerSecurityContext.struct_class = Types::EksContainerSecurityContext
1022
1037
 
1023
1038
  EksContainerVolumeMount.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
@@ -1061,6 +1076,7 @@ module Aws::Batch
1061
1076
  EksPodProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
1062
1077
  EksPodProperties.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
1063
1078
  EksPodProperties.add_member(:share_process_namespace, Shapes::ShapeRef.new(shape: Boolean, location_name: "shareProcessNamespace"))
1079
+ EksPodProperties.add_member(:security_context, Shapes::ShapeRef.new(shape: EksPodSecurityContext, location_name: "securityContext"))
1064
1080
  EksPodProperties.struct_class = Types::EksPodProperties
1065
1081
 
1066
1082
  EksPodPropertiesDetail.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
@@ -1074,6 +1090,7 @@ module Aws::Batch
1074
1090
  EksPodPropertiesDetail.add_member(:node_name, Shapes::ShapeRef.new(shape: String, location_name: "nodeName"))
1075
1091
  EksPodPropertiesDetail.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
1076
1092
  EksPodPropertiesDetail.add_member(:share_process_namespace, Shapes::ShapeRef.new(shape: Boolean, location_name: "shareProcessNamespace"))
1093
+ EksPodPropertiesDetail.add_member(:security_context, Shapes::ShapeRef.new(shape: EksPodSecurityContext, location_name: "securityContext"))
1077
1094
  EksPodPropertiesDetail.struct_class = Types::EksPodPropertiesDetail
1078
1095
 
1079
1096
  EksPodPropertiesOverride.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainerOverrideList, location_name: "containers"))
@@ -1081,6 +1098,13 @@ module Aws::Batch
1081
1098
  EksPodPropertiesOverride.add_member(:metadata, Shapes::ShapeRef.new(shape: EksMetadata, location_name: "metadata"))
1082
1099
  EksPodPropertiesOverride.struct_class = Types::EksPodPropertiesOverride
1083
1100
 
1101
+ EksPodSecurityContext.add_member(:run_as_user, Shapes::ShapeRef.new(shape: Long, location_name: "runAsUser"))
1102
+ EksPodSecurityContext.add_member(:run_as_group, Shapes::ShapeRef.new(shape: Long, location_name: "runAsGroup"))
1103
+ EksPodSecurityContext.add_member(:run_as_non_root, Shapes::ShapeRef.new(shape: Boolean, location_name: "runAsNonRoot"))
1104
+ EksPodSecurityContext.add_member(:seccomp_profile, Shapes::ShapeRef.new(shape: EksSeccompProfile, location_name: "seccompProfile"))
1105
+ EksPodSecurityContext.add_member(:fs_group, Shapes::ShapeRef.new(shape: Long, location_name: "fsGroup"))
1106
+ EksPodSecurityContext.struct_class = Types::EksPodSecurityContext
1107
+
1084
1108
  EksProperties.add_member(:pod_properties, Shapes::ShapeRef.new(shape: EksPodProperties, location_name: "podProperties"))
1085
1109
  EksProperties.struct_class = Types::EksProperties
1086
1110
 
@@ -1093,6 +1117,10 @@ module Aws::Batch
1093
1117
  EksRequests.key = Shapes::ShapeRef.new(shape: String)
1094
1118
  EksRequests.value = Shapes::ShapeRef.new(shape: Quantity)
1095
1119
 
1120
+ EksSeccompProfile.add_member(:type, Shapes::ShapeRef.new(shape: EksSeccompProfileType, required: true, location_name: "type"))
1121
+ EksSeccompProfile.add_member(:localhost_profile, Shapes::ShapeRef.new(shape: EksSeccompLocalhostProfile, location_name: "localhostProfile"))
1122
+ EksSeccompProfile.struct_class = Types::EksSeccompProfile
1123
+
1096
1124
  EksSecret.add_member(:secret_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "secretName"))
1097
1125
  EksSecret.add_member(:optional, Shapes::ShapeRef.new(shape: Boolean, location_name: "optional"))
1098
1126
  EksSecret.struct_class = Types::EksSecret
@@ -5215,6 +5215,35 @@ module Aws::Batch
5215
5215
  include Aws::Structure
5216
5216
  end
5217
5217
 
5218
+ # The Linux capabilities for the container. For more information, see
5219
+ # [Set capabilities for a container][1] in the *Kubernetes
5220
+ # documentation*.
5221
+ #
5222
+ #
5223
+ #
5224
+ # [1]: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-capabilities-for-a-container
5225
+ #
5226
+ # @!attribute [rw] add
5227
+ # The Linux capabilities to add to the default capability set for the
5228
+ # container. This parameter contains up to 64 values. Specify
5229
+ # capability names without the `CAP_` prefix.
5230
+ # @return [Array<String>]
5231
+ #
5232
+ # @!attribute [rw] drop
5233
+ # The Linux capabilities to remove from the default capability set for
5234
+ # the container. This parameter contains up to 64 values. Specify
5235
+ # capability names without the `CAP_` prefix.
5236
+ # @return [Array<String>]
5237
+ #
5238
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksContainerLinuxCapabilities AWS API Documentation
5239
+ #
5240
+ class EksContainerLinuxCapabilities < Struct.new(
5241
+ :add,
5242
+ :drop)
5243
+ SENSITIVE = []
5244
+ include Aws::Structure
5245
+ end
5246
+
5218
5247
  # Object representing any Kubernetes overrides to a job definition
5219
5248
  # that's used in a [SubmitJob][1] API operation.
5220
5249
  #
@@ -5403,10 +5432,10 @@ module Aws::Batch
5403
5432
  # @!attribute [rw] run_as_user
5404
5433
  # When this parameter is specified, the container is run as the
5405
5434
  # specified user ID (`uid`). If this parameter isn't specified, the
5406
- # default is the user that's specified in the image metadata. This
5407
- # parameter maps to `RunAsUser` and `MustRanAs` policy in the [Users
5408
- # and groups pod security policies][1] in the *Kubernetes
5409
- # documentation*.
5435
+ # default is the user that's specified in the image metadata. The
5436
+ # supported value range is `0` through `2147483647`. This parameter
5437
+ # maps to `RunAsUser` and `MustRunAs` policy in the [Users and groups
5438
+ # pod security policies][1] in the *Kubernetes documentation*.
5410
5439
  #
5411
5440
  #
5412
5441
  #
@@ -5416,10 +5445,10 @@ module Aws::Batch
5416
5445
  # @!attribute [rw] run_as_group
5417
5446
  # When this parameter is specified, the container is run as the
5418
5447
  # specified group ID (`gid`). If this parameter isn't specified, the
5419
- # default is the group that's specified in the image metadata. This
5420
- # parameter maps to `RunAsGroup` and `MustRunAs` policy in the [Users
5421
- # and groups pod security policies][1] in the *Kubernetes
5422
- # documentation*.
5448
+ # default is the group that's specified in the image metadata. The
5449
+ # supported value range is `0` through `2147483647`. This parameter
5450
+ # maps to `RunAsGroup` and `MustRunAs` policy in the [Users and groups
5451
+ # pod security policies][1] in the *Kubernetes documentation*.
5423
5452
  #
5424
5453
  #
5425
5454
  #
@@ -5469,6 +5498,21 @@ module Aws::Batch
5469
5498
  # [1]: https://kubernetes.io/docs/concepts/security/pod-security-policy/#users-and-groups
5470
5499
  # @return [Boolean]
5471
5500
  #
5501
+ # @!attribute [rw] capabilities
5502
+ # Adds or removes Linux capabilities from the container's default
5503
+ # capability set. With Linux capabilities, you can grant specific
5504
+ # privileges without granting full root permissions.
5505
+ # @return [Types::EksContainerLinuxCapabilities]
5506
+ #
5507
+ # @!attribute [rw] seccomp_profile
5508
+ # The seccomp profile for the container. A container-level seccomp
5509
+ # profile overrides the profile in the pod security context, which
5510
+ # defines security settings that apply to all containers in the pod
5511
+ # unless a container overrides them. If this parameter isn't
5512
+ # specified, the container uses the pod security context's seccomp
5513
+ # profile when one is specified.
5514
+ # @return [Types::EksSeccompProfile]
5515
+ #
5472
5516
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksContainerSecurityContext AWS API Documentation
5473
5517
  #
5474
5518
  class EksContainerSecurityContext < Struct.new(
@@ -5477,7 +5521,9 @@ module Aws::Batch
5477
5521
  :privileged,
5478
5522
  :allow_privilege_escalation,
5479
5523
  :read_only_root_filesystem,
5480
- :run_as_non_root)
5524
+ :run_as_non_root,
5525
+ :capabilities,
5526
+ :seccomp_profile)
5481
5527
  SENSITIVE = []
5482
5528
  include Aws::Structure
5483
5529
  end
@@ -5810,6 +5856,12 @@ module Aws::Batch
5810
5856
  # [1]: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
5811
5857
  # @return [Boolean]
5812
5858
  #
5859
+ # @!attribute [rw] security_context
5860
+ # The security context to apply to the pod. The settings apply to all
5861
+ # containers in the pod unless an individual container specifies an
5862
+ # overriding value.
5863
+ # @return [Types::EksPodSecurityContext]
5864
+ #
5813
5865
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksPodProperties AWS API Documentation
5814
5866
  #
5815
5867
  class EksPodProperties < Struct.new(
@@ -5821,7 +5873,8 @@ module Aws::Batch
5821
5873
  :init_containers,
5822
5874
  :volumes,
5823
5875
  :metadata,
5824
- :share_process_namespace)
5876
+ :share_process_namespace,
5877
+ :security_context)
5825
5878
  SENSITIVE = []
5826
5879
  include Aws::Structure
5827
5880
  end
@@ -5932,6 +5985,12 @@ module Aws::Batch
5932
5985
  # [1]: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
5933
5986
  # @return [Boolean]
5934
5987
  #
5988
+ # @!attribute [rw] security_context
5989
+ # The security context applied to the pod. The settings apply to all
5990
+ # containers in the pod unless an individual container specifies an
5991
+ # overriding value.
5992
+ # @return [Types::EksPodSecurityContext]
5993
+ #
5935
5994
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksPodPropertiesDetail AWS API Documentation
5936
5995
  #
5937
5996
  class EksPodPropertiesDetail < Struct.new(
@@ -5945,7 +6004,8 @@ module Aws::Batch
5945
6004
  :pod_name,
5946
6005
  :node_name,
5947
6006
  :metadata,
5948
- :share_process_namespace)
6007
+ :share_process_namespace,
6008
+ :security_context)
5949
6009
  SENSITIVE = []
5950
6010
  include Aws::Structure
5951
6011
  end
@@ -5986,6 +6046,57 @@ module Aws::Batch
5986
6046
  include Aws::Structure
5987
6047
  end
5988
6048
 
6049
+ # The security context for the pod. The settings apply to all containers
6050
+ # in the pod when the container does not specify an overriding value.
6051
+ # For more information, see [Set the security context for a Pod][1] in
6052
+ # the *Kubernetes documentation*.
6053
+ #
6054
+ #
6055
+ #
6056
+ # [1]: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
6057
+ #
6058
+ # @!attribute [rw] run_as_user
6059
+ # The user ID that runs containers in the pod when a container does
6060
+ # not specify its own user ID. The supported value range is `0`
6061
+ # through `2147483647`.
6062
+ # @return [Integer]
6063
+ #
6064
+ # @!attribute [rw] run_as_group
6065
+ # The primary group ID that runs containers in the pod when a
6066
+ # container does not specify its own group ID. The supported value
6067
+ # range is `0` through `2147483647`.
6068
+ # @return [Integer]
6069
+ #
6070
+ # @!attribute [rw] run_as_non_root
6071
+ # Specifies whether Kubernetes validates that containers in the pod
6072
+ # don't run as the root user unless a container specifies an
6073
+ # overriding value.
6074
+ # @return [Boolean]
6075
+ #
6076
+ # @!attribute [rw] seccomp_profile
6077
+ # The default seccomp profile for containers in the pod. A
6078
+ # container-level seccomp profile overrides this value.
6079
+ # @return [Types::EksSeccompProfile]
6080
+ #
6081
+ # @!attribute [rw] fs_group
6082
+ # A special supplemental group that is applied to all containers in
6083
+ # the pod. Some volume types allow Kubernetes to change the ownership
6084
+ # and permissions of the volume contents to this group when the volume
6085
+ # is mounted. The supported value range is `0` through `2147483647`.
6086
+ # @return [Integer]
6087
+ #
6088
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksPodSecurityContext AWS API Documentation
6089
+ #
6090
+ class EksPodSecurityContext < Struct.new(
6091
+ :run_as_user,
6092
+ :run_as_group,
6093
+ :run_as_non_root,
6094
+ :seccomp_profile,
6095
+ :fs_group)
6096
+ SENSITIVE = []
6097
+ include Aws::Structure
6098
+ end
6099
+
5989
6100
  # An object that contains the properties for the Kubernetes resources of
5990
6101
  # a job.
5991
6102
  #
@@ -6031,6 +6142,55 @@ module Aws::Batch
6031
6142
  include Aws::Structure
6032
6143
  end
6033
6144
 
6145
+ # The Linux seccomp profile for a pod or container. For more
6146
+ # information, see [Restrict a Container's Syscalls with seccomp][1] in
6147
+ # the *Kubernetes documentation*.
6148
+ #
6149
+ #
6150
+ #
6151
+ # [1]: https://kubernetes.io/docs/tutorials/security/seccomp/
6152
+ #
6153
+ # @!attribute [rw] type
6154
+ # The seccomp profile type can be one of the following values:
6155
+ #
6156
+ # RuntimeDefault
6157
+ #
6158
+ # : The `RuntimeDefault` value uses the container runtime's default
6159
+ # seccomp profile.
6160
+ #
6161
+ # Unconfined
6162
+ #
6163
+ # : The `Unconfined` value doesn't filter the container with seccomp.
6164
+ #
6165
+ # Localhost
6166
+ #
6167
+ # : The `Localhost` value uses a custom profile at the path specified
6168
+ # by `localhostProfile`.
6169
+ # @return [String]
6170
+ #
6171
+ # @!attribute [rw] localhost_profile
6172
+ # The path of the profile on the node, relative to the configured
6173
+ # seccomp profile location. You must specify this parameter when
6174
+ # `type` is `Localhost`. Don't set this parameter for any other type.
6175
+ # You are responsible for ensuring that the profile exists on every
6176
+ # eligible worker node. For information about providing files to
6177
+ # Amazon EKS nodes, see [Use a launch template with Batch on Amazon
6178
+ # EKS][1] in the *Batch User Guide*.
6179
+ #
6180
+ #
6181
+ #
6182
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/eks-launch-templates.html
6183
+ # @return [String]
6184
+ #
6185
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksSeccompProfile AWS API Documentation
6186
+ #
6187
+ class EksSeccompProfile < Struct.new(
6188
+ :type,
6189
+ :localhost_profile)
6190
+ SENSITIVE = []
6191
+ include Aws::Structure
6192
+ end
6193
+
6034
6194
  # Specifies the configuration of a Kubernetes `secret` volume. For more
6035
6195
  # information, see [secret][1] in the *Kubernetes documentation*.
6036
6196
  #
@@ -6822,7 +6982,9 @@ module Aws::Batch
6822
6982
  # `eksProperties`.
6823
6983
  #
6824
6984
  # <note markdown="1"> If the job runs on Fargate resources, don't specify
6825
- # `nodeProperties`. Use `containerProperties` instead.
6985
+ # `nodeProperties`. We recommend `ecsProperties`, which supports both
6986
+ # single-container and multi-container jobs. `containerProperties` is
6987
+ # also supported for single-container jobs.
6826
6988
  #
6827
6989
  # </note>
6828
6990
  # @return [Types::NodeProperties]
@@ -9394,9 +9556,16 @@ module Aws::Batch
9394
9556
  # job definitions.
9395
9557
  #
9396
9558
  # <note markdown="1"> If the job runs on Fargate resources, then you must not specify
9397
- # `nodeProperties`; use only `containerProperties`.
9559
+ # `nodeProperties`. We recommend `ecsProperties`, which supports both
9560
+ # single-container and multi-container jobs. `containerProperties` is
9561
+ # also supported for single-container jobs. For more information, see
9562
+ # [Multi-container jobs][1] in the *Batch User Guide*.
9398
9563
  #
9399
9564
  # </note>
9565
+ #
9566
+ #
9567
+ #
9568
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/multi-container-jobs.html
9400
9569
  # @return [Types::ContainerProperties]
9401
9570
  #
9402
9571
  # @!attribute [rw] node_properties
@@ -9406,7 +9575,9 @@ module Aws::Batch
9406
9575
  # Jobs][1] in the *Batch User Guide*.
9407
9576
  #
9408
9577
  # <note markdown="1"> If the job runs on Fargate resources, then you must not specify
9409
- # `nodeProperties`; use `containerProperties` instead.
9578
+ # `nodeProperties`. We recommend `ecsProperties`, which supports both
9579
+ # single-container and multi-container jobs. `containerProperties` is
9580
+ # also supported for single-container jobs.
9410
9581
  #
9411
9582
  # </note>
9412
9583
  #
data/lib/aws-sdk-batch.rb CHANGED
@@ -54,7 +54,7 @@ module Aws::Batch
54
54
  autoload :EndpointProvider, 'aws-sdk-batch/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-batch/endpoints'
56
56
 
57
- GEM_VERSION = '1.161.0'
57
+ GEM_VERSION = '1.162.0'
58
58
 
59
59
  end
60
60
 
data/sig/params.rbs CHANGED
@@ -250,6 +250,17 @@ module Aws
250
250
  stop_timeout: ::Integer?
251
251
  }
252
252
 
253
+ type eks_pod_security_context = {
254
+ run_as_user: ::Integer?,
255
+ run_as_group: ::Integer?,
256
+ run_as_non_root: bool?,
257
+ seccomp_profile: {
258
+ type: ("RuntimeDefault" | "Localhost" | "Unconfined"),
259
+ localhost_profile: ::String?
260
+ }?,
261
+ fs_group: ::Integer?
262
+ }
263
+
253
264
  type eks_pod_properties = {
254
265
  service_account_name: ::String?,
255
266
  host_network: bool?,
@@ -273,7 +284,8 @@ module Aws
273
284
  annotations: Hash[::String, ::String]?,
274
285
  namespace: ::String?
275
286
  }?,
276
- share_process_namespace: bool?
287
+ share_process_namespace: bool?,
288
+ security_context: Params::eks_pod_security_context?
277
289
  }
278
290
 
279
291
  type eks_properties = {
@@ -286,7 +298,15 @@ module Aws
286
298
  privileged: bool?,
287
299
  allow_privilege_escalation: bool?,
288
300
  read_only_root_filesystem: bool?,
289
- run_as_non_root: bool?
301
+ run_as_non_root: bool?,
302
+ capabilities: {
303
+ add: Array[::String]?,
304
+ drop: Array[::String]?
305
+ }?,
306
+ seccomp_profile: {
307
+ type: ("RuntimeDefault" | "Localhost" | "Unconfined"),
308
+ localhost_profile: ::String?
309
+ }?
290
310
  }
291
311
 
292
312
  type eks_container = {
data/sig/types.rbs CHANGED
@@ -741,6 +741,12 @@ module Aws::Batch
741
741
  SENSITIVE: []
742
742
  end
743
743
 
744
+ class EksContainerLinuxCapabilities
745
+ attr_accessor add: ::Array[::String]
746
+ attr_accessor drop: ::Array[::String]
747
+ SENSITIVE: []
748
+ end
749
+
744
750
  class EksContainerOverride
745
751
  attr_accessor name: ::String
746
752
  attr_accessor image: ::String
@@ -764,6 +770,8 @@ module Aws::Batch
764
770
  attr_accessor allow_privilege_escalation: bool
765
771
  attr_accessor read_only_root_filesystem: bool
766
772
  attr_accessor run_as_non_root: bool
773
+ attr_accessor capabilities: Types::EksContainerLinuxCapabilities
774
+ attr_accessor seccomp_profile: Types::EksSeccompProfile
767
775
  SENSITIVE: []
768
776
  end
769
777
 
@@ -809,6 +817,7 @@ module Aws::Batch
809
817
  attr_accessor volumes: ::Array[Types::EksVolume]
810
818
  attr_accessor metadata: Types::EksMetadata
811
819
  attr_accessor share_process_namespace: bool
820
+ attr_accessor security_context: Types::EksPodSecurityContext
812
821
  SENSITIVE: []
813
822
  end
814
823
 
@@ -824,6 +833,7 @@ module Aws::Batch
824
833
  attr_accessor node_name: ::String
825
834
  attr_accessor metadata: Types::EksMetadata
826
835
  attr_accessor share_process_namespace: bool
836
+ attr_accessor security_context: Types::EksPodSecurityContext
827
837
  SENSITIVE: []
828
838
  end
829
839
 
@@ -834,6 +844,15 @@ module Aws::Batch
834
844
  SENSITIVE: []
835
845
  end
836
846
 
847
+ class EksPodSecurityContext
848
+ attr_accessor run_as_user: ::Integer
849
+ attr_accessor run_as_group: ::Integer
850
+ attr_accessor run_as_non_root: bool
851
+ attr_accessor seccomp_profile: Types::EksSeccompProfile
852
+ attr_accessor fs_group: ::Integer
853
+ SENSITIVE: []
854
+ end
855
+
837
856
  class EksProperties
838
857
  attr_accessor pod_properties: Types::EksPodProperties
839
858
  SENSITIVE: []
@@ -849,6 +868,12 @@ module Aws::Batch
849
868
  SENSITIVE: []
850
869
  end
851
870
 
871
+ class EksSeccompProfile
872
+ attr_accessor type: ("RuntimeDefault" | "Localhost" | "Unconfined")
873
+ attr_accessor localhost_profile: ::String
874
+ SENSITIVE: []
875
+ end
876
+
852
877
  class EksSecret
853
878
  attr_accessor secret_name: ::String
854
879
  attr_accessor optional: bool
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-batch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.161.0
4
+ version: 1.162.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.265.0
21
+ version: 3.266.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.265.0
31
+ version: 3.266.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement