aws-sdk-batch 1.9.0 → 1.10.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 +4 -4
- data/lib/aws-sdk-batch.rb +1 -1
- data/lib/aws-sdk-batch/client.rb +80 -20
- data/lib/aws-sdk-batch/client_api.rb +8 -1
- data/lib/aws-sdk-batch/types.rb +99 -14
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: eba96dbbc913c50a87d5917a7870a3815f3e69dc
         | 
| 4 | 
            +
              data.tar.gz: 8a1c09bc47ae9ff5b4f5f6489476fe6df5ff1514
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5601ea79b2b8ee987e19d8d8d06e7bf521a9f882d51d50a29506a8178e5fc3b1f191aaddeb8d5aa62e2fe168a14e3cbc1c7a227a2053dd69c0ecbc850dc0cded
         | 
| 7 | 
            +
              data.tar.gz: 2144ea53d25cb433412f4ed2fb5298d44b718c712893848a7770b0a43325c3d7e492018cd76016110dfcb5eabfe41add16fa0e541a551778c13907eabe707b8c
         | 
    
        data/lib/aws-sdk-batch.rb
    CHANGED
    
    
    
        data/lib/aws-sdk-batch/client.rb
    CHANGED
    
    | @@ -15,6 +15,7 @@ require 'aws-sdk-core/plugins/helpful_socket_errors.rb' | |
| 15 15 | 
             
            require 'aws-sdk-core/plugins/retry_errors.rb'
         | 
| 16 16 | 
             
            require 'aws-sdk-core/plugins/global_configuration.rb'
         | 
| 17 17 | 
             
            require 'aws-sdk-core/plugins/regional_endpoint.rb'
         | 
| 18 | 
            +
            require 'aws-sdk-core/plugins/endpoint_discovery.rb'
         | 
| 18 19 | 
             
            require 'aws-sdk-core/plugins/response_paging.rb'
         | 
| 19 20 | 
             
            require 'aws-sdk-core/plugins/stub_responses.rb'
         | 
| 20 21 | 
             
            require 'aws-sdk-core/plugins/idempotency_token.rb'
         | 
| @@ -45,6 +46,7 @@ module Aws::Batch | |
| 45 46 | 
             
                add_plugin(Aws::Plugins::RetryErrors)
         | 
| 46 47 | 
             
                add_plugin(Aws::Plugins::GlobalConfiguration)
         | 
| 47 48 | 
             
                add_plugin(Aws::Plugins::RegionalEndpoint)
         | 
| 49 | 
            +
                add_plugin(Aws::Plugins::EndpointDiscovery)
         | 
| 48 50 | 
             
                add_plugin(Aws::Plugins::ResponsePaging)
         | 
| 49 51 | 
             
                add_plugin(Aws::Plugins::StubResponses)
         | 
| 50 52 | 
             
                add_plugin(Aws::Plugins::IdempotencyToken)
         | 
| @@ -98,6 +100,10 @@ module Aws::Batch | |
| 98 100 | 
             
                #
         | 
| 99 101 | 
             
                #   @option options [String] :access_key_id
         | 
| 100 102 | 
             
                #
         | 
| 103 | 
            +
                #   @option options [Boolean] :active_endpoint_cache (false)
         | 
| 104 | 
            +
                #     When set to `true`, a thread polling for endpoints will be running in
         | 
| 105 | 
            +
                #     the background every 60 secs (default). Defaults to `false`.
         | 
| 106 | 
            +
                #
         | 
| 101 107 | 
             
                #   @option options [Boolean] :client_side_monitoring (false)
         | 
| 102 108 | 
             
                #     When `true`, client-side metrics will be collected for all API requests from
         | 
| 103 109 | 
             
                #     this client.
         | 
| @@ -123,6 +129,21 @@ module Aws::Batch | |
| 123 129 | 
             
                #     option. You should only configure an `:endpoint` when connecting
         | 
| 124 130 | 
             
                #     to test endpoints. This should be avalid HTTP(S) URI.
         | 
| 125 131 | 
             
                #
         | 
| 132 | 
            +
                #   @option options [Integer] :endpoint_cache_max_entries (1000)
         | 
| 133 | 
            +
                #     Used for the maximum size limit of the LRU cache storing endpoints data
         | 
| 134 | 
            +
                #     for endpoint discovery enabled operations. Defaults to 1000.
         | 
| 135 | 
            +
                #
         | 
| 136 | 
            +
                #   @option options [Integer] :endpoint_cache_max_threads (10)
         | 
| 137 | 
            +
                #     Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
         | 
| 138 | 
            +
                #
         | 
| 139 | 
            +
                #   @option options [Integer] :endpoint_cache_poll_interval (60)
         | 
| 140 | 
            +
                #     When :endpoint_discovery and :active_endpoint_cache is enabled,
         | 
| 141 | 
            +
                #     Use this option to config the time interval in seconds for making
         | 
| 142 | 
            +
                #     requests fetching endpoints information. Defaults to 60 sec.
         | 
| 143 | 
            +
                #
         | 
| 144 | 
            +
                #   @option options [Boolean] :endpoint_discovery (false)
         | 
| 145 | 
            +
                #     When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
         | 
| 146 | 
            +
                #
         | 
| 126 147 | 
             
                #   @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
         | 
| 127 148 | 
             
                #     The log formatter.
         | 
| 128 149 | 
             
                #
         | 
| @@ -227,39 +248,63 @@ module Aws::Batch | |
| 227 248 | 
             
                # Creates an AWS Batch compute environment. You can create `MANAGED` or
         | 
| 228 249 | 
             
                # `UNMANAGED` compute environments.
         | 
| 229 250 | 
             
                #
         | 
| 230 | 
            -
                # In a managed compute environment, AWS Batch manages the  | 
| 231 | 
            -
                # resources within the environment, based | 
| 232 | 
            -
                #  | 
| 233 | 
            -
                #  | 
| 234 | 
            -
                # choose to use Amazon EC2 On-Demand Instances  | 
| 235 | 
            -
                #  | 
| 236 | 
            -
                #  | 
| 237 | 
            -
                # On-Demand price.
         | 
| 251 | 
            +
                # In a managed compute environment, AWS Batch manages the capacity and
         | 
| 252 | 
            +
                # instance types of the compute resources within the environment, based
         | 
| 253 | 
            +
                # on the compute resource specification that you define or [launch
         | 
| 254 | 
            +
                # template][1] that you specify when you create the compute environment.
         | 
| 255 | 
            +
                # You can choose to use Amazon EC2 On-Demand Instances or Spot Instances
         | 
| 256 | 
            +
                # in your managed compute environment. You can optionally set a maximum
         | 
| 257 | 
            +
                # price so that Spot Instances only launch when the Spot Instance price
         | 
| 258 | 
            +
                # is below a specified percentage of the On-Demand price.
         | 
| 238 259 | 
             
                #
         | 
| 239 260 | 
             
                # In an unmanaged compute environment, you can manage your own compute
         | 
| 240 261 | 
             
                # resources. This provides more compute resource configuration options,
         | 
| 241 262 | 
             
                # such as using a custom AMI, but you must ensure that your AMI meets
         | 
| 242 263 | 
             
                # the Amazon ECS container instance AMI specification. For more
         | 
| 243 | 
            -
                # information, see [Container Instance AMIs][ | 
| 264 | 
            +
                # information, see [Container Instance AMIs][2] in the *Amazon Elastic
         | 
| 244 265 | 
             
                # Container Service Developer Guide*. After you have created your
         | 
| 245 266 | 
             
                # unmanaged compute environment, you can use the
         | 
| 246 267 | 
             
                # DescribeComputeEnvironments operation to find the Amazon ECS cluster
         | 
| 247 268 | 
             
                # that is associated with it and then manually launch your container
         | 
| 248 269 | 
             
                # instances into that Amazon ECS cluster. For more information, see
         | 
| 249 | 
            -
                # [Launching an Amazon ECS Container Instance][ | 
| 270 | 
            +
                # [Launching an Amazon ECS Container Instance][3] in the *Amazon Elastic
         | 
| 250 271 | 
             
                # Container Service Developer Guide*.
         | 
| 251 272 | 
             
                #
         | 
| 273 | 
            +
                # <note markdown="1"> AWS Batch does not upgrade the AMIs in a compute environment after it
         | 
| 274 | 
            +
                # is created (for example, when a newer version of the Amazon
         | 
| 275 | 
            +
                # ECS-optimized AMI is available). You are responsible for the
         | 
| 276 | 
            +
                # management of the guest operating system (including updates and
         | 
| 277 | 
            +
                # security patches) and any additional application software or utilities
         | 
| 278 | 
            +
                # that you install on the compute resources. To use a new AMI for your
         | 
| 279 | 
            +
                # AWS Batch jobs:
         | 
| 280 | 
            +
                #
         | 
| 281 | 
            +
                #  1.  Create a new compute environment with the new AMI.
         | 
| 282 | 
            +
                #
         | 
| 283 | 
            +
                # 2.  Add the compute environment to an existing job queue.
         | 
| 284 | 
            +
                #
         | 
| 285 | 
            +
                # 3.  Remove the old compute environment from your job queue.
         | 
| 252 286 | 
             
                #
         | 
| 287 | 
            +
                # 4.  Delete the old compute environment.
         | 
| 253 288 | 
             
                #
         | 
| 254 | 
            -
                # | 
| 255 | 
            -
                # | 
| 289 | 
            +
                #  </note>
         | 
| 290 | 
            +
                #
         | 
| 291 | 
            +
                #
         | 
| 292 | 
            +
                #
         | 
| 293 | 
            +
                # [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html
         | 
| 294 | 
            +
                # [2]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html
         | 
| 295 | 
            +
                # [3]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
         | 
| 256 296 | 
             
                #
         | 
| 257 297 | 
             
                # @option params [required, String] :compute_environment_name
         | 
| 258 298 | 
             
                #   The name for your compute environment. Up to 128 letters (uppercase
         | 
| 259 299 | 
             
                #   and lowercase), numbers, hyphens, and underscores are allowed.
         | 
| 260 300 | 
             
                #
         | 
| 261 301 | 
             
                # @option params [required, String] :type
         | 
| 262 | 
            -
                #   The type of the compute environment.
         | 
| 302 | 
            +
                #   The type of the compute environment. For more information, see
         | 
| 303 | 
            +
                #   [Compute Environments][1] in the *AWS Batch User Guide*.
         | 
| 304 | 
            +
                #
         | 
| 305 | 
            +
                #
         | 
| 306 | 
            +
                #
         | 
| 307 | 
            +
                #   [1]: http://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html
         | 
| 263 308 | 
             
                #
         | 
| 264 309 | 
             
                # @option params [String] :state
         | 
| 265 310 | 
             
                #   The state of the compute environment. If the state is `ENABLED`, then
         | 
| @@ -393,7 +438,7 @@ module Aws::Batch | |
| 393 438 | 
             
                #       instance_types: ["String"], # required
         | 
| 394 439 | 
             
                #       image_id: "String",
         | 
| 395 440 | 
             
                #       subnets: ["String"], # required
         | 
| 396 | 
            -
                #       security_group_ids: ["String"], | 
| 441 | 
            +
                #       security_group_ids: ["String"],
         | 
| 397 442 | 
             
                #       ec2_key_pair: "String",
         | 
| 398 443 | 
             
                #       instance_role: "String", # required
         | 
| 399 444 | 
             
                #       tags: {
         | 
| @@ -401,6 +446,11 @@ module Aws::Batch | |
| 401 446 | 
             
                #       },
         | 
| 402 447 | 
             
                #       bid_percentage: 1,
         | 
| 403 448 | 
             
                #       spot_iam_fleet_role: "String",
         | 
| 449 | 
            +
                #       launch_template: {
         | 
| 450 | 
            +
                #         launch_template_id: "String",
         | 
| 451 | 
            +
                #         launch_template_name: "String",
         | 
| 452 | 
            +
                #         version: "String",
         | 
| 453 | 
            +
                #       },
         | 
| 404 454 | 
             
                #     },
         | 
| 405 455 | 
             
                #     service_role: "String", # required
         | 
| 406 456 | 
             
                #   })
         | 
| @@ -777,6 +827,9 @@ module Aws::Batch | |
| 777 827 | 
             
                #   resp.compute_environments[0].compute_resources.tags["String"] #=> String
         | 
| 778 828 | 
             
                #   resp.compute_environments[0].compute_resources.bid_percentage #=> Integer
         | 
| 779 829 | 
             
                #   resp.compute_environments[0].compute_resources.spot_iam_fleet_role #=> String
         | 
| 830 | 
            +
                #   resp.compute_environments[0].compute_resources.launch_template.launch_template_id #=> String
         | 
| 831 | 
            +
                #   resp.compute_environments[0].compute_resources.launch_template.launch_template_name #=> String
         | 
| 832 | 
            +
                #   resp.compute_environments[0].compute_resources.launch_template.version #=> String
         | 
| 780 833 | 
             
                #   resp.compute_environments[0].service_role #=> String
         | 
| 781 834 | 
             
                #   resp.next_token #=> String
         | 
| 782 835 | 
             
                #
         | 
| @@ -1157,17 +1210,24 @@ module Aws::Batch | |
| 1157 1210 | 
             
                  req.send_request(options)
         | 
| 1158 1211 | 
             
                end
         | 
| 1159 1212 |  | 
| 1160 | 
            -
                # Returns a list of  | 
| 1161 | 
            -
                #  | 
| 1162 | 
            -
                #  | 
| 1213 | 
            +
                # Returns a list of AWS Batch jobs. You must specify either a job queue
         | 
| 1214 | 
            +
                # to return a list of jobs in that job queue, or an array job ID to
         | 
| 1215 | 
            +
                # return a list of that job's children. You cannot specify both a job
         | 
| 1216 | 
            +
                # queue and an array job ID.
         | 
| 1217 | 
            +
                #
         | 
| 1218 | 
            +
                # You can filter the results by job status with the `jobStatus`
         | 
| 1219 | 
            +
                # parameter. If you do not specify a status, only `RUNNING` jobs are
         | 
| 1220 | 
            +
                # returned.
         | 
| 1163 1221 | 
             
                #
         | 
| 1164 1222 | 
             
                # @option params [String] :job_queue
         | 
| 1165 1223 | 
             
                #   The name or full Amazon Resource Name (ARN) of the job queue with
         | 
| 1166 | 
            -
                #   which to list jobs.
         | 
| 1224 | 
            +
                #   which to list jobs. You must specify either a job queue or an array
         | 
| 1225 | 
            +
                #   job ID.
         | 
| 1167 1226 | 
             
                #
         | 
| 1168 1227 | 
             
                # @option params [String] :array_job_id
         | 
| 1169 1228 | 
             
                #   The job ID for an array job. Specifying an array job ID with this
         | 
| 1170 | 
            -
                #   parameter lists all child jobs from within the specified array.
         | 
| 1229 | 
            +
                #   parameter lists all child jobs from within the specified array. You
         | 
| 1230 | 
            +
                #   must specify either a job queue or an array job ID.
         | 
| 1171 1231 | 
             
                #
         | 
| 1172 1232 | 
             
                # @option params [String] :job_status
         | 
| 1173 1233 | 
             
                #   The job status with which to filter jobs in the specified queue. If
         | 
| @@ -1770,7 +1830,7 @@ module Aws::Batch | |
| 1770 1830 | 
             
                    params: params,
         | 
| 1771 1831 | 
             
                    config: config)
         | 
| 1772 1832 | 
             
                  context[:gem_name] = 'aws-sdk-batch'
         | 
| 1773 | 
            -
                  context[:gem_version] = '1. | 
| 1833 | 
            +
                  context[:gem_version] = '1.10.0'
         | 
| 1774 1834 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 1775 1835 | 
             
                end
         | 
| 1776 1836 |  | 
| @@ -74,6 +74,7 @@ module Aws::Batch | |
| 74 74 | 
             
                JobSummaryList = Shapes::ListShape.new(name: 'JobSummaryList')
         | 
| 75 75 | 
             
                JobTimeout = Shapes::StructureShape.new(name: 'JobTimeout')
         | 
| 76 76 | 
             
                KeyValuePair = Shapes::StructureShape.new(name: 'KeyValuePair')
         | 
| 77 | 
            +
                LaunchTemplateSpecification = Shapes::StructureShape.new(name: 'LaunchTemplateSpecification')
         | 
| 77 78 | 
             
                ListJobsRequest = Shapes::StructureShape.new(name: 'ListJobsRequest')
         | 
| 78 79 | 
             
                ListJobsResponse = Shapes::StructureShape.new(name: 'ListJobsResponse')
         | 
| 79 80 | 
             
                Long = Shapes::IntegerShape.new(name: 'Long')
         | 
| @@ -162,12 +163,13 @@ module Aws::Batch | |
| 162 163 | 
             
                ComputeResource.add_member(:instance_types, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "instanceTypes"))
         | 
| 163 164 | 
             
                ComputeResource.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
         | 
| 164 165 | 
             
                ComputeResource.add_member(:subnets, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "subnets"))
         | 
| 165 | 
            -
                ComputeResource.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: StringList,  | 
| 166 | 
            +
                ComputeResource.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "securityGroupIds"))
         | 
| 166 167 | 
             
                ComputeResource.add_member(:ec2_key_pair, Shapes::ShapeRef.new(shape: String, location_name: "ec2KeyPair"))
         | 
| 167 168 | 
             
                ComputeResource.add_member(:instance_role, Shapes::ShapeRef.new(shape: String, required: true, location_name: "instanceRole"))
         | 
| 168 169 | 
             
                ComputeResource.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
         | 
| 169 170 | 
             
                ComputeResource.add_member(:bid_percentage, Shapes::ShapeRef.new(shape: Integer, location_name: "bidPercentage"))
         | 
| 170 171 | 
             
                ComputeResource.add_member(:spot_iam_fleet_role, Shapes::ShapeRef.new(shape: String, location_name: "spotIamFleetRole"))
         | 
| 172 | 
            +
                ComputeResource.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
         | 
| 171 173 | 
             
                ComputeResource.struct_class = Types::ComputeResource
         | 
| 172 174 |  | 
| 173 175 | 
             
                ComputeResourceUpdate.add_member(:minv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "minvCpus"))
         | 
| @@ -364,6 +366,11 @@ module Aws::Batch | |
| 364 366 | 
             
                KeyValuePair.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
         | 
| 365 367 | 
             
                KeyValuePair.struct_class = Types::KeyValuePair
         | 
| 366 368 |  | 
| 369 | 
            +
                LaunchTemplateSpecification.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: String, location_name: "launchTemplateId"))
         | 
| 370 | 
            +
                LaunchTemplateSpecification.add_member(:launch_template_name, Shapes::ShapeRef.new(shape: String, location_name: "launchTemplateName"))
         | 
| 371 | 
            +
                LaunchTemplateSpecification.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
         | 
| 372 | 
            +
                LaunchTemplateSpecification.struct_class = Types::LaunchTemplateSpecification
         | 
| 373 | 
            +
             | 
| 367 374 | 
             
                ListJobsRequest.add_member(:job_queue, Shapes::ShapeRef.new(shape: String, location_name: "jobQueue"))
         | 
| 368 375 | 
             
                ListJobsRequest.add_member(:array_job_id, Shapes::ShapeRef.new(shape: String, location_name: "arrayJobId"))
         | 
| 369 376 | 
             
                ListJobsRequest.add_member(:job_status, Shapes::ShapeRef.new(shape: JobStatus, location_name: "jobStatus"))
         | 
    
        data/lib/aws-sdk-batch/types.rb
    CHANGED
    
    | @@ -202,9 +202,19 @@ module Aws::Batch | |
| 202 202 | 
             
                #
         | 
| 203 203 | 
             
                # @!attribute [rw] state
         | 
| 204 204 | 
             
                #   The state of the compute environment. The valid values are `ENABLED`
         | 
| 205 | 
            -
                #   or `DISABLED`. | 
| 206 | 
            -
                # | 
| 207 | 
            -
                #    | 
| 205 | 
            +
                #   or `DISABLED`.
         | 
| 206 | 
            +
                #
         | 
| 207 | 
            +
                #   If the state is `ENABLED`, then the AWS Batch scheduler can attempt
         | 
| 208 | 
            +
                #   to place jobs from an associated job queue on the compute resources
         | 
| 209 | 
            +
                #   within the environment. If the compute environment is managed, then
         | 
| 210 | 
            +
                #   it can scale its instances out or in automatically, based on job
         | 
| 211 | 
            +
                #   queue demand.
         | 
| 212 | 
            +
                #
         | 
| 213 | 
            +
                #   If the state is `DISABLED`, then the AWS Batch scheduler does not
         | 
| 214 | 
            +
                #   attempt to place jobs within the environment. Jobs in a `STARTING`
         | 
| 215 | 
            +
                #   or `RUNNING` state continue to progress normally. Managed compute
         | 
| 216 | 
            +
                #   environments in the `DISABLED` state do not scale out; however, they
         | 
| 217 | 
            +
                #   scale in to `minvCpus` value once instances become idle.
         | 
| 208 218 | 
             
                #   @return [String]
         | 
| 209 219 | 
             
                #
         | 
| 210 220 | 
             
                # @!attribute [rw] status
         | 
| @@ -284,7 +294,7 @@ module Aws::Batch | |
| 284 294 | 
             
                #         instance_types: ["String"], # required
         | 
| 285 295 | 
             
                #         image_id: "String",
         | 
| 286 296 | 
             
                #         subnets: ["String"], # required
         | 
| 287 | 
            -
                #         security_group_ids: ["String"], | 
| 297 | 
            +
                #         security_group_ids: ["String"],
         | 
| 288 298 | 
             
                #         ec2_key_pair: "String",
         | 
| 289 299 | 
             
                #         instance_role: "String", # required
         | 
| 290 300 | 
             
                #         tags: {
         | 
| @@ -292,6 +302,11 @@ module Aws::Batch | |
| 292 302 | 
             
                #         },
         | 
| 293 303 | 
             
                #         bid_percentage: 1,
         | 
| 294 304 | 
             
                #         spot_iam_fleet_role: "String",
         | 
| 305 | 
            +
                #         launch_template: {
         | 
| 306 | 
            +
                #           launch_template_id: "String",
         | 
| 307 | 
            +
                #           launch_template_name: "String",
         | 
| 308 | 
            +
                #           version: "String",
         | 
| 309 | 
            +
                #         },
         | 
| 295 310 | 
             
                #       }
         | 
| 296 311 | 
             
                #
         | 
| 297 312 | 
             
                # @!attribute [rw] type
         | 
| @@ -299,7 +314,8 @@ module Aws::Batch | |
| 299 314 | 
             
                #   @return [String]
         | 
| 300 315 | 
             
                #
         | 
| 301 316 | 
             
                # @!attribute [rw] minv_cpus
         | 
| 302 | 
            -
                #   The minimum number of EC2 vCPUs that an environment should maintain | 
| 317 | 
            +
                #   The minimum number of EC2 vCPUs that an environment should maintain
         | 
| 318 | 
            +
                #   (even if the compute environment is `DISABLED`).
         | 
| 303 319 | 
             
                #   @return [Integer]
         | 
| 304 320 | 
             
                #
         | 
| 305 321 | 
             
                # @!attribute [rw] maxv_cpus
         | 
| @@ -358,11 +374,13 @@ module Aws::Batch | |
| 358 374 | 
             
                #   @return [Hash<String,String>]
         | 
| 359 375 | 
             
                #
         | 
| 360 376 | 
             
                # @!attribute [rw] bid_percentage
         | 
| 361 | 
            -
                #   The  | 
| 377 | 
            +
                #   The maximum percentage that a Spot Instance price can be when
         | 
| 362 378 | 
             
                #   compared with the On-Demand price for that instance type before
         | 
| 363 | 
            -
                #   instances are launched. For example, if your  | 
| 364 | 
            -
                #   then the Spot price must be below 20% of the current On-Demand | 
| 365 | 
            -
                #   for that EC2 instance.
         | 
| 379 | 
            +
                #   instances are launched. For example, if your maximum percentage is
         | 
| 380 | 
            +
                #   20%, then the Spot price must be below 20% of the current On-Demand
         | 
| 381 | 
            +
                #   price for that EC2 instance. You always pay the lowest (market)
         | 
| 382 | 
            +
                #   price and never more than your maximum percentage. If you leave this
         | 
| 383 | 
            +
                #   field empty, the default value is 100% of the On-Demand price.
         | 
| 366 384 | 
             
                #   @return [Integer]
         | 
| 367 385 | 
             
                #
         | 
| 368 386 | 
             
                # @!attribute [rw] spot_iam_fleet_role
         | 
| @@ -370,6 +388,14 @@ module Aws::Batch | |
| 370 388 | 
             
                #   applied to a `SPOT` compute environment.
         | 
| 371 389 | 
             
                #   @return [String]
         | 
| 372 390 | 
             
                #
         | 
| 391 | 
            +
                # @!attribute [rw] launch_template
         | 
| 392 | 
            +
                #   The launch template to use for your compute resources. Any other
         | 
| 393 | 
            +
                #   compute resource parameters that you specify in a
         | 
| 394 | 
            +
                #   CreateComputeEnvironment API operation override the same parameters
         | 
| 395 | 
            +
                #   in the launch template. You must specify either the launch template
         | 
| 396 | 
            +
                #   ID or launch template name in the request, but not both.
         | 
| 397 | 
            +
                #   @return [Types::LaunchTemplateSpecification]
         | 
| 398 | 
            +
                #
         | 
| 373 399 | 
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ComputeResource AWS API Documentation
         | 
| 374 400 | 
             
                #
         | 
| 375 401 | 
             
                class ComputeResource < Struct.new(
         | 
| @@ -385,7 +411,8 @@ module Aws::Batch | |
| 385 411 | 
             
                  :instance_role,
         | 
| 386 412 | 
             
                  :tags,
         | 
| 387 413 | 
             
                  :bid_percentage,
         | 
| 388 | 
            -
                  :spot_iam_fleet_role | 
| 414 | 
            +
                  :spot_iam_fleet_role,
         | 
| 415 | 
            +
                  :launch_template)
         | 
| 389 416 | 
             
                  include Aws::Structure
         | 
| 390 417 | 
             
                end
         | 
| 391 418 |  | 
| @@ -858,7 +885,7 @@ module Aws::Batch | |
| 858 885 | 
             
                #           instance_types: ["String"], # required
         | 
| 859 886 | 
             
                #           image_id: "String",
         | 
| 860 887 | 
             
                #           subnets: ["String"], # required
         | 
| 861 | 
            -
                #           security_group_ids: ["String"], | 
| 888 | 
            +
                #           security_group_ids: ["String"],
         | 
| 862 889 | 
             
                #           ec2_key_pair: "String",
         | 
| 863 890 | 
             
                #           instance_role: "String", # required
         | 
| 864 891 | 
             
                #           tags: {
         | 
| @@ -866,6 +893,11 @@ module Aws::Batch | |
| 866 893 | 
             
                #           },
         | 
| 867 894 | 
             
                #           bid_percentage: 1,
         | 
| 868 895 | 
             
                #           spot_iam_fleet_role: "String",
         | 
| 896 | 
            +
                #           launch_template: {
         | 
| 897 | 
            +
                #             launch_template_id: "String",
         | 
| 898 | 
            +
                #             launch_template_name: "String",
         | 
| 899 | 
            +
                #             version: "String",
         | 
| 900 | 
            +
                #           },
         | 
| 869 901 | 
             
                #         },
         | 
| 870 902 | 
             
                #         service_role: "String", # required
         | 
| 871 903 | 
             
                #       }
         | 
| @@ -876,7 +908,12 @@ module Aws::Batch | |
| 876 908 | 
             
                #   @return [String]
         | 
| 877 909 | 
             
                #
         | 
| 878 910 | 
             
                # @!attribute [rw] type
         | 
| 879 | 
            -
                #   The type of the compute environment.
         | 
| 911 | 
            +
                #   The type of the compute environment. For more information, see
         | 
| 912 | 
            +
                #   [Compute Environments][1] in the *AWS Batch User Guide*.
         | 
| 913 | 
            +
                #
         | 
| 914 | 
            +
                #
         | 
| 915 | 
            +
                #
         | 
| 916 | 
            +
                #   [1]: http://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html
         | 
| 880 917 | 
             
                #   @return [String]
         | 
| 881 918 | 
             
                #
         | 
| 882 919 | 
             
                # @!attribute [rw] state
         | 
| @@ -1456,6 +1493,16 @@ module Aws::Batch | |
| 1456 1493 | 
             
                #
         | 
| 1457 1494 | 
             
                # @!attribute [rw] status
         | 
| 1458 1495 | 
             
                #   The current status for the job.
         | 
| 1496 | 
            +
                #
         | 
| 1497 | 
            +
                #   <note markdown="1"> If your jobs do not progress to `STARTING`, see [Jobs Stuck in
         | 
| 1498 | 
            +
                #   `RUNNABLE` Status][1] in the troubleshooting section of the *AWS
         | 
| 1499 | 
            +
                #   Batch User Guide*.
         | 
| 1500 | 
            +
                #
         | 
| 1501 | 
            +
                #    </note>
         | 
| 1502 | 
            +
                #
         | 
| 1503 | 
            +
                #
         | 
| 1504 | 
            +
                #
         | 
| 1505 | 
            +
                #   [1]: http://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable
         | 
| 1459 1506 | 
             
                #   @return [String]
         | 
| 1460 1507 | 
             
                #
         | 
| 1461 1508 | 
             
                # @!attribute [rw] attempts
         | 
| @@ -1698,6 +1745,42 @@ module Aws::Batch | |
| 1698 1745 | 
             
                  include Aws::Structure
         | 
| 1699 1746 | 
             
                end
         | 
| 1700 1747 |  | 
| 1748 | 
            +
                # An object representing a launch template associated with a compute
         | 
| 1749 | 
            +
                # resource. You must specify either the launch template ID or launch
         | 
| 1750 | 
            +
                # template name in the request, but not both.
         | 
| 1751 | 
            +
                #
         | 
| 1752 | 
            +
                # @note When making an API call, you may pass LaunchTemplateSpecification
         | 
| 1753 | 
            +
                #   data as a hash:
         | 
| 1754 | 
            +
                #
         | 
| 1755 | 
            +
                #       {
         | 
| 1756 | 
            +
                #         launch_template_id: "String",
         | 
| 1757 | 
            +
                #         launch_template_name: "String",
         | 
| 1758 | 
            +
                #         version: "String",
         | 
| 1759 | 
            +
                #       }
         | 
| 1760 | 
            +
                #
         | 
| 1761 | 
            +
                # @!attribute [rw] launch_template_id
         | 
| 1762 | 
            +
                #   The ID of the launch template.
         | 
| 1763 | 
            +
                #   @return [String]
         | 
| 1764 | 
            +
                #
         | 
| 1765 | 
            +
                # @!attribute [rw] launch_template_name
         | 
| 1766 | 
            +
                #   The name of the launch template.
         | 
| 1767 | 
            +
                #   @return [String]
         | 
| 1768 | 
            +
                #
         | 
| 1769 | 
            +
                # @!attribute [rw] version
         | 
| 1770 | 
            +
                #   The version number of the launch template.
         | 
| 1771 | 
            +
                #
         | 
| 1772 | 
            +
                #   Default: The default version of the launch template.
         | 
| 1773 | 
            +
                #   @return [String]
         | 
| 1774 | 
            +
                #
         | 
| 1775 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/LaunchTemplateSpecification AWS API Documentation
         | 
| 1776 | 
            +
                #
         | 
| 1777 | 
            +
                class LaunchTemplateSpecification < Struct.new(
         | 
| 1778 | 
            +
                  :launch_template_id,
         | 
| 1779 | 
            +
                  :launch_template_name,
         | 
| 1780 | 
            +
                  :version)
         | 
| 1781 | 
            +
                  include Aws::Structure
         | 
| 1782 | 
            +
                end
         | 
| 1783 | 
            +
             | 
| 1701 1784 | 
             
                # @note When making an API call, you may pass ListJobsRequest
         | 
| 1702 1785 | 
             
                #   data as a hash:
         | 
| 1703 1786 | 
             
                #
         | 
| @@ -1711,12 +1794,14 @@ module Aws::Batch | |
| 1711 1794 | 
             
                #
         | 
| 1712 1795 | 
             
                # @!attribute [rw] job_queue
         | 
| 1713 1796 | 
             
                #   The name or full Amazon Resource Name (ARN) of the job queue with
         | 
| 1714 | 
            -
                #   which to list jobs.
         | 
| 1797 | 
            +
                #   which to list jobs. You must specify either a job queue or an array
         | 
| 1798 | 
            +
                #   job ID.
         | 
| 1715 1799 | 
             
                #   @return [String]
         | 
| 1716 1800 | 
             
                #
         | 
| 1717 1801 | 
             
                # @!attribute [rw] array_job_id
         | 
| 1718 1802 | 
             
                #   The job ID for an array job. Specifying an array job ID with this
         | 
| 1719 | 
            -
                #   parameter lists all child jobs from within the specified array.
         | 
| 1803 | 
            +
                #   parameter lists all child jobs from within the specified array. You
         | 
| 1804 | 
            +
                #   must specify either a job queue or an array job ID.
         | 
| 1720 1805 | 
             
                #   @return [String]
         | 
| 1721 1806 | 
             
                #
         | 
| 1722 1807 | 
             
                # @!attribute [rw] job_status
         | 
    
        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. | 
| 4 | 
            +
              version: 1.10.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: 2018- | 
| 11 | 
            +
            date: 2018-11-12 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-core
         |