aws-sdk-batch 1.83.0 → 1.84.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 654afc632bf18f8dedf03e4ff615f316ae0efe3155596716fc222f619d6193cb
4
- data.tar.gz: 5bf3361f366a51789403aedfb2a18a6ec52f8fac83f87a64b9f238bb54e420b2
3
+ metadata.gz: 8a0613ac3ac932d3b66d0d88a70bfde8e7afdebfbd5e6e7e2d609961334a2c89
4
+ data.tar.gz: af5e559e54d4b00cc5ee5cbbd18280eae9618f3e77524e1f05723055647d58d1
5
5
  SHA512:
6
- metadata.gz: ceae264195f2513c9949279fa79df0b1b713f4113a0f93c73d308901a869eaae07b9dc5e4ba0184018860dace375e139f791340e7b325467fe2220c331844796
7
- data.tar.gz: dcc23cda6e64b24e5bcb7523afec050aab42a25148738d8190e63a4320be94cdbb6907c9ab3c1e7d3e1de03805209f5304879c91cc6cda4b6c36e2fe6a0a2054
6
+ metadata.gz: 4b79c8c00c44cf4352593da80c3086ff301c745481b25cccdfb90ce57c97598593ab9c99f27b18e8ed354d1bc3d79dede33a1cd8fee1cc6bc0385c3fe7df0b95
7
+ data.tar.gz: 69dcb497c172dc0d10df4c03d06db28fb11a3f62ac08ebe35899bbdb69a9447106dbdd7c9cfe920cb954bf39483acbc4dd6b8a23bcabd7747e1662c7077e5f2e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.84.0 (2024-03-27)
5
+ ------------------
6
+
7
+ * Feature - This feature allows AWS Batch to support configuration of imagePullSecrets and allowPrivilegeEscalation for jobs running on EKS
8
+
4
9
  1.83.0 (2024-03-08)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.83.0
1
+ 1.84.0
@@ -1762,6 +1762,8 @@ module Aws::Batch
1762
1762
  # resp.job_definitions[0].eks_properties.pod_properties.service_account_name #=> String
1763
1763
  # resp.job_definitions[0].eks_properties.pod_properties.host_network #=> Boolean
1764
1764
  # resp.job_definitions[0].eks_properties.pod_properties.dns_policy #=> String
1765
+ # resp.job_definitions[0].eks_properties.pod_properties.image_pull_secrets #=> Array
1766
+ # resp.job_definitions[0].eks_properties.pod_properties.image_pull_secrets[0].name #=> String
1765
1767
  # resp.job_definitions[0].eks_properties.pod_properties.containers #=> Array
1766
1768
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].name #=> String
1767
1769
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].image #=> String
@@ -1784,6 +1786,7 @@ module Aws::Batch
1784
1786
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_user #=> Integer
1785
1787
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_group #=> Integer
1786
1788
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.privileged #=> Boolean
1789
+ # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
1787
1790
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
1788
1791
  # resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
1789
1792
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers #=> Array
@@ -1808,6 +1811,7 @@ module Aws::Batch
1808
1811
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_user #=> Integer
1809
1812
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_group #=> Integer
1810
1813
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.privileged #=> Boolean
1814
+ # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
1811
1815
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
1812
1816
  # resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
1813
1817
  # resp.job_definitions[0].eks_properties.pod_properties.volumes #=> Array
@@ -2266,6 +2270,8 @@ module Aws::Batch
2266
2270
  # resp.jobs[0].eks_properties.pod_properties.service_account_name #=> String
2267
2271
  # resp.jobs[0].eks_properties.pod_properties.host_network #=> Boolean
2268
2272
  # resp.jobs[0].eks_properties.pod_properties.dns_policy #=> String
2273
+ # resp.jobs[0].eks_properties.pod_properties.image_pull_secrets #=> Array
2274
+ # resp.jobs[0].eks_properties.pod_properties.image_pull_secrets[0].name #=> String
2269
2275
  # resp.jobs[0].eks_properties.pod_properties.containers #=> Array
2270
2276
  # resp.jobs[0].eks_properties.pod_properties.containers[0].name #=> String
2271
2277
  # resp.jobs[0].eks_properties.pod_properties.containers[0].image #=> String
@@ -2290,6 +2296,7 @@ module Aws::Batch
2290
2296
  # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_user #=> Integer
2291
2297
  # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_group #=> Integer
2292
2298
  # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.privileged #=> Boolean
2299
+ # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
2293
2300
  # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
2294
2301
  # resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
2295
2302
  # resp.jobs[0].eks_properties.pod_properties.init_containers #=> Array
@@ -2316,6 +2323,7 @@ module Aws::Batch
2316
2323
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_user #=> Integer
2317
2324
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_group #=> Integer
2318
2325
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.privileged #=> Boolean
2326
+ # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
2319
2327
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
2320
2328
  # resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
2321
2329
  # resp.jobs[0].eks_properties.pod_properties.volumes #=> Array
@@ -3370,6 +3378,11 @@ module Aws::Batch
3370
3378
  # service_account_name: "String",
3371
3379
  # host_network: false,
3372
3380
  # dns_policy: "String",
3381
+ # image_pull_secrets: [
3382
+ # {
3383
+ # name: "String", # required
3384
+ # },
3385
+ # ],
3373
3386
  # containers: [
3374
3387
  # {
3375
3388
  # name: "String",
@@ -3402,6 +3415,7 @@ module Aws::Batch
3402
3415
  # run_as_user: 1,
3403
3416
  # run_as_group: 1,
3404
3417
  # privileged: false,
3418
+ # allow_privilege_escalation: false,
3405
3419
  # read_only_root_filesystem: false,
3406
3420
  # run_as_non_root: false,
3407
3421
  # },
@@ -3439,6 +3453,7 @@ module Aws::Batch
3439
3453
  # run_as_user: 1,
3440
3454
  # run_as_group: 1,
3441
3455
  # privileged: false,
3456
+ # allow_privilege_escalation: false,
3442
3457
  # read_only_root_filesystem: false,
3443
3458
  # run_as_non_root: false,
3444
3459
  # },
@@ -4465,7 +4480,7 @@ module Aws::Batch
4465
4480
  params: params,
4466
4481
  config: config)
4467
4482
  context[:gem_name] = 'aws-sdk-batch'
4468
- context[:gem_version] = '1.83.0'
4483
+ context[:gem_version] = '1.84.0'
4469
4484
  Seahorse::Client::Request.new(handlers, context)
4470
4485
  end
4471
4486
 
@@ -122,6 +122,8 @@ module Aws::Batch
122
122
  Float = Shapes::FloatShape.new(name: 'Float')
123
123
  Host = Shapes::StructureShape.new(name: 'Host')
124
124
  ImageIdOverride = Shapes::StringShape.new(name: 'ImageIdOverride')
125
+ ImagePullSecret = Shapes::StructureShape.new(name: 'ImagePullSecret')
126
+ ImagePullSecrets = Shapes::ListShape.new(name: 'ImagePullSecrets')
125
127
  ImageType = Shapes::StringShape.new(name: 'ImageType')
126
128
  Integer = Shapes::IntegerShape.new(name: 'Integer')
127
129
  JQState = Shapes::StringShape.new(name: 'JQState')
@@ -637,6 +639,7 @@ module Aws::Batch
637
639
  EksContainerSecurityContext.add_member(:run_as_user, Shapes::ShapeRef.new(shape: Long, location_name: "runAsUser"))
638
640
  EksContainerSecurityContext.add_member(:run_as_group, Shapes::ShapeRef.new(shape: Long, location_name: "runAsGroup"))
639
641
  EksContainerSecurityContext.add_member(:privileged, Shapes::ShapeRef.new(shape: Boolean, location_name: "privileged"))
642
+ EksContainerSecurityContext.add_member(:allow_privilege_escalation, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowPrivilegeEscalation"))
640
643
  EksContainerSecurityContext.add_member(:read_only_root_filesystem, Shapes::ShapeRef.new(shape: Boolean, location_name: "readOnlyRootFilesystem"))
641
644
  EksContainerSecurityContext.add_member(:run_as_non_root, Shapes::ShapeRef.new(shape: Boolean, location_name: "runAsNonRoot"))
642
645
  EksContainerSecurityContext.struct_class = Types::EksContainerSecurityContext
@@ -669,6 +672,7 @@ module Aws::Batch
669
672
  EksPodProperties.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
670
673
  EksPodProperties.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
671
674
  EksPodProperties.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
675
+ EksPodProperties.add_member(:image_pull_secrets, Shapes::ShapeRef.new(shape: ImagePullSecrets, location_name: "imagePullSecrets"))
672
676
  EksPodProperties.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainers, location_name: "containers"))
673
677
  EksPodProperties.add_member(:init_containers, Shapes::ShapeRef.new(shape: EksContainers, location_name: "initContainers"))
674
678
  EksPodProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
@@ -679,6 +683,7 @@ module Aws::Batch
679
683
  EksPodPropertiesDetail.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
680
684
  EksPodPropertiesDetail.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
681
685
  EksPodPropertiesDetail.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
686
+ EksPodPropertiesDetail.add_member(:image_pull_secrets, Shapes::ShapeRef.new(shape: ImagePullSecrets, location_name: "imagePullSecrets"))
682
687
  EksPodPropertiesDetail.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainerDetails, location_name: "containers"))
683
688
  EksPodPropertiesDetail.add_member(:init_containers, Shapes::ShapeRef.new(shape: EksContainerDetails, location_name: "initContainers"))
684
689
  EksPodPropertiesDetail.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
@@ -741,6 +746,11 @@ module Aws::Batch
741
746
  Host.add_member(:source_path, Shapes::ShapeRef.new(shape: String, location_name: "sourcePath"))
742
747
  Host.struct_class = Types::Host
743
748
 
749
+ ImagePullSecret.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
750
+ ImagePullSecret.struct_class = Types::ImagePullSecret
751
+
752
+ ImagePullSecrets.member = Shapes::ShapeRef.new(shape: ImagePullSecret)
753
+
744
754
  JobDefinition.add_member(:job_definition_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinitionName"))
745
755
  JobDefinition.add_member(:job_definition_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinitionArn"))
746
756
  JobDefinition.add_member(:revision, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "revision"))
@@ -3817,6 +3817,12 @@ module Aws::Batch
3817
3817
  # [1]: https://kubernetes.io/docs/concepts/security/pod-security-policy/#privileged
3818
3818
  # @return [Boolean]
3819
3819
  #
3820
+ # @!attribute [rw] allow_privilege_escalation
3821
+ # Whether or not a container or a Kubernetes pod is allowed to gain
3822
+ # more privileges than its parent process. The default value is
3823
+ # `false`.
3824
+ # @return [Boolean]
3825
+ #
3820
3826
  # @!attribute [rw] read_only_root_filesystem
3821
3827
  # When this parameter is `true`, the container is given read-only
3822
3828
  # access to its root file system. The default value is `false`. This
@@ -3847,6 +3853,7 @@ module Aws::Batch
3847
3853
  :run_as_user,
3848
3854
  :run_as_group,
3849
3855
  :privileged,
3856
+ :allow_privilege_escalation,
3850
3857
  :read_only_root_filesystem,
3851
3858
  :run_as_non_root)
3852
3859
  SENSITIVE = []
@@ -4025,6 +4032,15 @@ module Aws::Batch
4025
4032
  # [1]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
4026
4033
  # @return [String]
4027
4034
  #
4035
+ # @!attribute [rw] image_pull_secrets
4036
+ # References a Kubernetes secret resource. This object must start and
4037
+ # end with an alphanumeric character, is required to be lowercase, can
4038
+ # include periods (.) and hyphens (-), and can't contain more than
4039
+ # 253 characters.
4040
+ #
4041
+ # `ImagePullSecret$name` is required when this object is used.
4042
+ # @return [Array<Types::ImagePullSecret>]
4043
+ #
4028
4044
  # @!attribute [rw] containers
4029
4045
  # The properties of the container that's used on the Amazon EKS pod.
4030
4046
  # @return [Array<Types::EksContainer>]
@@ -4077,6 +4093,7 @@ module Aws::Batch
4077
4093
  :service_account_name,
4078
4094
  :host_network,
4079
4095
  :dns_policy,
4096
+ :image_pull_secrets,
4080
4097
  :containers,
4081
4098
  :init_containers,
4082
4099
  :volumes,
@@ -4142,6 +4159,10 @@ module Aws::Batch
4142
4159
  # [4]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
4143
4160
  # @return [String]
4144
4161
  #
4162
+ # @!attribute [rw] image_pull_secrets
4163
+ # Displays the reference pointer to the Kubernetes secret resource.
4164
+ # @return [Array<Types::ImagePullSecret>]
4165
+ #
4145
4166
  # @!attribute [rw] containers
4146
4167
  # The properties of the container that's used on the Amazon EKS pod.
4147
4168
  # @return [Array<Types::EksContainerDetail>]
@@ -4192,6 +4213,7 @@ module Aws::Batch
4192
4213
  :service_account_name,
4193
4214
  :host_network,
4194
4215
  :dns_policy,
4216
+ :image_pull_secrets,
4195
4217
  :containers,
4196
4218
  :init_containers,
4197
4219
  :volumes,
@@ -4540,6 +4562,23 @@ module Aws::Batch
4540
4562
  include Aws::Structure
4541
4563
  end
4542
4564
 
4565
+ # References a Kubernetes configuration resource that holds a list of
4566
+ # secrets. These secrets help to gain access to pull an image from a
4567
+ # private registry.
4568
+ #
4569
+ # @!attribute [rw] name
4570
+ # Provides a unique identifier for the `ImagePullSecret`. This object
4571
+ # is required when `EksPodProperties$imagePullSecrets` is used.
4572
+ # @return [String]
4573
+ #
4574
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ImagePullSecret AWS API Documentation
4575
+ #
4576
+ class ImagePullSecret < Struct.new(
4577
+ :name)
4578
+ SENSITIVE = []
4579
+ include Aws::Structure
4580
+ end
4581
+
4543
4582
  # An object that represents an Batch job definition.
4544
4583
  #
4545
4584
  # @!attribute [rw] job_definition_name
data/lib/aws-sdk-batch.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-batch/customizations'
52
52
  # @!group service
53
53
  module Aws::Batch
54
54
 
55
- GEM_VERSION = '1.83.0'
55
+ GEM_VERSION = '1.84.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -704,6 +704,11 @@ module Aws
704
704
  service_account_name: ::String?,
705
705
  host_network: bool?,
706
706
  dns_policy: ::String?,
707
+ image_pull_secrets: Array[
708
+ {
709
+ name: ::String
710
+ },
711
+ ]?,
707
712
  containers: Array[
708
713
  {
709
714
  name: ::String?,
@@ -732,6 +737,7 @@ module Aws
732
737
  run_as_user: ::Integer?,
733
738
  run_as_group: ::Integer?,
734
739
  privileged: bool?,
740
+ allow_privilege_escalation: bool?,
735
741
  read_only_root_filesystem: bool?,
736
742
  run_as_non_root: bool?
737
743
  }?
@@ -765,6 +771,7 @@ module Aws
765
771
  run_as_user: ::Integer?,
766
772
  run_as_group: ::Integer?,
767
773
  privileged: bool?,
774
+ allow_privilege_escalation: bool?,
768
775
  read_only_root_filesystem: bool?,
769
776
  run_as_non_root: bool?
770
777
  }?
data/sig/types.rbs CHANGED
@@ -493,6 +493,7 @@ module Aws::Batch
493
493
  attr_accessor run_as_user: ::Integer
494
494
  attr_accessor run_as_group: ::Integer
495
495
  attr_accessor privileged: bool
496
+ attr_accessor allow_privilege_escalation: bool
496
497
  attr_accessor read_only_root_filesystem: bool
497
498
  attr_accessor run_as_non_root: bool
498
499
  SENSITIVE: []
@@ -525,6 +526,7 @@ module Aws::Batch
525
526
  attr_accessor service_account_name: ::String
526
527
  attr_accessor host_network: bool
527
528
  attr_accessor dns_policy: ::String
529
+ attr_accessor image_pull_secrets: ::Array[Types::ImagePullSecret]
528
530
  attr_accessor containers: ::Array[Types::EksContainer]
529
531
  attr_accessor init_containers: ::Array[Types::EksContainer]
530
532
  attr_accessor volumes: ::Array[Types::EksVolume]
@@ -537,6 +539,7 @@ module Aws::Batch
537
539
  attr_accessor service_account_name: ::String
538
540
  attr_accessor host_network: bool
539
541
  attr_accessor dns_policy: ::String
542
+ attr_accessor image_pull_secrets: ::Array[Types::ImagePullSecret]
540
543
  attr_accessor containers: ::Array[Types::EksContainerDetail]
541
544
  attr_accessor init_containers: ::Array[Types::EksContainerDetail]
542
545
  attr_accessor volumes: ::Array[Types::EksVolume]
@@ -613,6 +616,11 @@ module Aws::Batch
613
616
  SENSITIVE: []
614
617
  end
615
618
 
619
+ class ImagePullSecret
620
+ attr_accessor name: ::String
621
+ SENSITIVE: []
622
+ end
623
+
616
624
  class JobDefinition
617
625
  attr_accessor job_definition_name: ::String
618
626
  attr_accessor job_definition_arn: ::String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-batch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.83.0
4
+ version: 1.84.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-08 00:00:00.000000000 Z
11
+ date: 2024-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core