aws-sdk-codedeploy 1.11.0 → 1.12.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
  SHA1:
3
- metadata.gz: 2624baeb4a5383a45c2e5b972a7daf94e9faf6c3
4
- data.tar.gz: c5bb2ddec0e29c06e98ffef20567fca51440aad9
3
+ metadata.gz: 20a18e68b2547dfef66e13bef6a10f30d52906e8
4
+ data.tar.gz: 5258fd807ac881cc5a4aba8086337469716595ef
5
5
  SHA512:
6
- metadata.gz: d6a5d43c27e6cb65e77fcd5159757dcabb5206d4c39094eb7fed47d49e0f7e3ba70983727411e97e9364467d9b0bcce9f476331e419385a5f1512683f4c651a0
7
- data.tar.gz: 11fb01dc154f6d2c60dfa574ea88df9d02ab4834d8d188c29c1fe34bcf2bcdbb10d3670de531ba32c57bc8874dcbbe32c706a4001186629f7129ace2fa7fffaf
6
+ metadata.gz: 5e9c3863652dbe650d9a37f0ac125c7b906166f28cccdc5b171835286c473a68b4b859135394d1e9660076e4cd1c13b88fde809b0c9e6814a0d55660ba7a0054
7
+ data.tar.gz: eb07a3290ef38a1bc4633d5ef071573acef226f4c438cad4cf7651373cd746d3d32c3ae47eb40a50d118f9fd6acb9b3fda255edaf27b1dc3bf8f4a67c95e4bcd
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-codedeploy/customizations'
43
43
  # @service
44
44
  module Aws::CodeDeploy
45
45
 
46
- GEM_VERSION = '1.11.0'
46
+ GEM_VERSION = '1.12.0'
47
47
 
48
48
  end
@@ -271,7 +271,7 @@ module Aws::CodeDeploy
271
271
  # application_name: "ApplicationName", # required
272
272
  # revisions: [ # required
273
273
  # {
274
- # revision_type: "S3", # accepts S3, GitHub, String
274
+ # revision_type: "S3", # accepts S3, GitHub, String, AppSpecContent
275
275
  # s3_location: {
276
276
  # bucket: "S3Bucket",
277
277
  # key: "S3Key",
@@ -287,6 +287,10 @@ module Aws::CodeDeploy
287
287
  # content: "RawStringContent",
288
288
  # sha256: "RawStringSha256",
289
289
  # },
290
+ # app_spec_content: {
291
+ # content: "RawStringContent",
292
+ # sha256: "RawStringSha256",
293
+ # },
290
294
  # },
291
295
  # ],
292
296
  # })
@@ -296,7 +300,7 @@ module Aws::CodeDeploy
296
300
  # resp.application_name #=> String
297
301
  # resp.error_message #=> String
298
302
  # resp.revisions #=> Array
299
- # resp.revisions[0].revision_location.revision_type #=> String, one of "S3", "GitHub", "String"
303
+ # resp.revisions[0].revision_location.revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
300
304
  # resp.revisions[0].revision_location.s3_location.bucket #=> String
301
305
  # resp.revisions[0].revision_location.s3_location.key #=> String
302
306
  # resp.revisions[0].revision_location.s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -306,6 +310,8 @@ module Aws::CodeDeploy
306
310
  # resp.revisions[0].revision_location.git_hub_location.commit_id #=> String
307
311
  # resp.revisions[0].revision_location.string.content #=> String
308
312
  # resp.revisions[0].revision_location.string.sha256 #=> String
313
+ # resp.revisions[0].revision_location.app_spec_content.content #=> String
314
+ # resp.revisions[0].revision_location.app_spec_content.sha256 #=> String
309
315
  # resp.revisions[0].generic_revision_info.description #=> String
310
316
  # resp.revisions[0].generic_revision_info.deployment_groups #=> Array
311
317
  # resp.revisions[0].generic_revision_info.deployment_groups[0] #=> String
@@ -345,7 +351,7 @@ module Aws::CodeDeploy
345
351
  # resp.applications_info[0].create_time #=> Time
346
352
  # resp.applications_info[0].linked_to_git_hub #=> Boolean
347
353
  # resp.applications_info[0].git_hub_account_name #=> String
348
- # resp.applications_info[0].compute_platform #=> String, one of "Server", "Lambda"
354
+ # resp.applications_info[0].compute_platform #=> String, one of "Server", "Lambda", "ECS"
349
355
  #
350
356
  # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications AWS API Documentation
351
357
  #
@@ -396,7 +402,7 @@ module Aws::CodeDeploy
396
402
  # resp.deployment_groups_info[0].auto_scaling_groups[0].name #=> String
397
403
  # resp.deployment_groups_info[0].auto_scaling_groups[0].hook #=> String
398
404
  # resp.deployment_groups_info[0].service_role_arn #=> String
399
- # resp.deployment_groups_info[0].target_revision.revision_type #=> String, one of "S3", "GitHub", "String"
405
+ # resp.deployment_groups_info[0].target_revision.revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
400
406
  # resp.deployment_groups_info[0].target_revision.s3_location.bucket #=> String
401
407
  # resp.deployment_groups_info[0].target_revision.s3_location.key #=> String
402
408
  # resp.deployment_groups_info[0].target_revision.s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -406,6 +412,8 @@ module Aws::CodeDeploy
406
412
  # resp.deployment_groups_info[0].target_revision.git_hub_location.commit_id #=> String
407
413
  # resp.deployment_groups_info[0].target_revision.string.content #=> String
408
414
  # resp.deployment_groups_info[0].target_revision.string.sha256 #=> String
415
+ # resp.deployment_groups_info[0].target_revision.app_spec_content.content #=> String
416
+ # resp.deployment_groups_info[0].target_revision.app_spec_content.sha256 #=> String
409
417
  # resp.deployment_groups_info[0].trigger_configurations #=> Array
410
418
  # resp.deployment_groups_info[0].trigger_configurations[0].trigger_name #=> String
411
419
  # resp.deployment_groups_info[0].trigger_configurations[0].trigger_target_arn #=> String
@@ -429,6 +437,13 @@ module Aws::CodeDeploy
429
437
  # resp.deployment_groups_info[0].load_balancer_info.elb_info_list[0].name #=> String
430
438
  # resp.deployment_groups_info[0].load_balancer_info.target_group_info_list #=> Array
431
439
  # resp.deployment_groups_info[0].load_balancer_info.target_group_info_list[0].name #=> String
440
+ # resp.deployment_groups_info[0].load_balancer_info.target_group_pair_info_list #=> Array
441
+ # resp.deployment_groups_info[0].load_balancer_info.target_group_pair_info_list[0].target_groups #=> Array
442
+ # resp.deployment_groups_info[0].load_balancer_info.target_group_pair_info_list[0].target_groups[0].name #=> String
443
+ # resp.deployment_groups_info[0].load_balancer_info.target_group_pair_info_list[0].prod_traffic_route.listener_arns #=> Array
444
+ # resp.deployment_groups_info[0].load_balancer_info.target_group_pair_info_list[0].prod_traffic_route.listener_arns[0] #=> String
445
+ # resp.deployment_groups_info[0].load_balancer_info.target_group_pair_info_list[0].test_traffic_route.listener_arns #=> Array
446
+ # resp.deployment_groups_info[0].load_balancer_info.target_group_pair_info_list[0].test_traffic_route.listener_arns[0] #=> String
432
447
  # resp.deployment_groups_info[0].last_successful_deployment.deployment_id #=> String
433
448
  # resp.deployment_groups_info[0].last_successful_deployment.status #=> String, one of "Created", "Queued", "InProgress", "Succeeded", "Failed", "Stopped", "Ready"
434
449
  # resp.deployment_groups_info[0].last_successful_deployment.end_time #=> Time
@@ -447,7 +462,10 @@ module Aws::CodeDeploy
447
462
  # resp.deployment_groups_info[0].on_premises_tag_set.on_premises_tag_set_list[0][0].key #=> String
448
463
  # resp.deployment_groups_info[0].on_premises_tag_set.on_premises_tag_set_list[0][0].value #=> String
449
464
  # resp.deployment_groups_info[0].on_premises_tag_set.on_premises_tag_set_list[0][0].type #=> String, one of "KEY_ONLY", "VALUE_ONLY", "KEY_AND_VALUE"
450
- # resp.deployment_groups_info[0].compute_platform #=> String, one of "Server", "Lambda"
465
+ # resp.deployment_groups_info[0].compute_platform #=> String, one of "Server", "Lambda", "ECS"
466
+ # resp.deployment_groups_info[0].ecs_services #=> Array
467
+ # resp.deployment_groups_info[0].ecs_services[0].service_name #=> String
468
+ # resp.deployment_groups_info[0].ecs_services[0].cluster_name #=> String
451
469
  # resp.error_message #=> String
452
470
  #
453
471
  # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups AWS API Documentation
@@ -459,14 +477,21 @@ module Aws::CodeDeploy
459
477
  req.send_request(options)
460
478
  end
461
479
 
462
- # Gets information about one or more instance that are part of a
463
- # deployment group.
480
+ # <note markdown="1"> This method works, but is considered deprecated. Use
481
+ # `BatchGetDeploymentTargets` instead.
482
+ #
483
+ # </note>
484
+ #
485
+ # Returns an array of instances associated with a deployment. This
486
+ # method works with EC2/On-premises and AWS Lambda compute platforms.
487
+ # The newer `BatchGetDeploymentTargets` works with all compute
488
+ # platforms.
464
489
  #
465
490
  # @option params [required, String] :deployment_id
466
491
  # The unique ID of a deployment.
467
492
  #
468
493
  # @option params [required, Array<String>] :instance_ids
469
- # The unique IDs of instances in the deployment group.
494
+ # The unique IDs of instances of the deployment.
470
495
  #
471
496
  # @return [Types::BatchGetDeploymentInstancesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
472
497
  #
@@ -508,6 +533,116 @@ module Aws::CodeDeploy
508
533
  req.send_request(options)
509
534
  end
510
535
 
536
+ # Returns an array of targets associated with a deployment. This method
537
+ # works with all compute types and should be used instead of the
538
+ # deprecated `BatchGetDeploymentInstances`.
539
+ #
540
+ # The type of targets returned depends on the deployment's compute
541
+ # platform:
542
+ #
543
+ # * **EC2/On-premises** - Information about EC2 instance targets.
544
+ #
545
+ # * **AWS Lambda** - Information about Lambda functions targets.
546
+ #
547
+ # * **Amazon ECS** - Information about ECS service targets.
548
+ #
549
+ # @option params [String] :deployment_id
550
+ # The unique ID of a deployment.
551
+ #
552
+ # @option params [Array<String>] :target_ids
553
+ # The unique IDs of the deployment targets. The compute platform of the
554
+ # deployment determines the type of the targets and their formats.
555
+ #
556
+ # * For deployments that use the EC2/On-premises compute platform, the
557
+ # target IDs are EC2 or on-premises instances IDs and their target
558
+ # type is `instanceTarget`.
559
+ #
560
+ # * For deployments that use the AWS Lambda compute platform, the target
561
+ # IDs are the names of Lambda functions and their target type is
562
+ # `instanceTarget`.
563
+ #
564
+ # * For deployments that use the Amazon ECS compute platform, the target
565
+ # IDs are pairs of Amazon ECS clusters and services specified using
566
+ # the format `<clustername>:<servicename>`. Their target type is
567
+ # `ecsTarget`.
568
+ #
569
+ # @return [Types::BatchGetDeploymentTargetsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
570
+ #
571
+ # * {Types::BatchGetDeploymentTargetsOutput#deployment_targets #deployment_targets} => Array&lt;Types::DeploymentTarget&gt;
572
+ #
573
+ # @example Request syntax with placeholder values
574
+ #
575
+ # resp = client.batch_get_deployment_targets({
576
+ # deployment_id: "DeploymentId",
577
+ # target_ids: ["TargetId"],
578
+ # })
579
+ #
580
+ # @example Response structure
581
+ #
582
+ # resp.deployment_targets #=> Array
583
+ # resp.deployment_targets[0].deployment_target_type #=> String, one of "InstanceTarget", "LambdaTarget", "ECSTarget"
584
+ # resp.deployment_targets[0].instance_target.deployment_id #=> String
585
+ # resp.deployment_targets[0].instance_target.target_id #=> String
586
+ # resp.deployment_targets[0].instance_target.target_arn #=> String
587
+ # resp.deployment_targets[0].instance_target.status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown", "Ready"
588
+ # resp.deployment_targets[0].instance_target.last_updated_at #=> Time
589
+ # resp.deployment_targets[0].instance_target.lifecycle_events #=> Array
590
+ # resp.deployment_targets[0].instance_target.lifecycle_events[0].lifecycle_event_name #=> String
591
+ # resp.deployment_targets[0].instance_target.lifecycle_events[0].diagnostics.error_code #=> String, one of "Success", "ScriptMissing", "ScriptNotExecutable", "ScriptTimedOut", "ScriptFailed", "UnknownError"
592
+ # resp.deployment_targets[0].instance_target.lifecycle_events[0].diagnostics.script_name #=> String
593
+ # resp.deployment_targets[0].instance_target.lifecycle_events[0].diagnostics.message #=> String
594
+ # resp.deployment_targets[0].instance_target.lifecycle_events[0].diagnostics.log_tail #=> String
595
+ # resp.deployment_targets[0].instance_target.lifecycle_events[0].start_time #=> Time
596
+ # resp.deployment_targets[0].instance_target.lifecycle_events[0].end_time #=> Time
597
+ # resp.deployment_targets[0].instance_target.lifecycle_events[0].status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown"
598
+ # resp.deployment_targets[0].instance_target.instance_label #=> String, one of "Blue", "Green"
599
+ # resp.deployment_targets[0].lambda_target.deployment_id #=> String
600
+ # resp.deployment_targets[0].lambda_target.target_id #=> String
601
+ # resp.deployment_targets[0].lambda_target.target_arn #=> String
602
+ # resp.deployment_targets[0].lambda_target.status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown", "Ready"
603
+ # resp.deployment_targets[0].lambda_target.last_updated_at #=> Time
604
+ # resp.deployment_targets[0].lambda_target.lifecycle_events #=> Array
605
+ # resp.deployment_targets[0].lambda_target.lifecycle_events[0].lifecycle_event_name #=> String
606
+ # resp.deployment_targets[0].lambda_target.lifecycle_events[0].diagnostics.error_code #=> String, one of "Success", "ScriptMissing", "ScriptNotExecutable", "ScriptTimedOut", "ScriptFailed", "UnknownError"
607
+ # resp.deployment_targets[0].lambda_target.lifecycle_events[0].diagnostics.script_name #=> String
608
+ # resp.deployment_targets[0].lambda_target.lifecycle_events[0].diagnostics.message #=> String
609
+ # resp.deployment_targets[0].lambda_target.lifecycle_events[0].diagnostics.log_tail #=> String
610
+ # resp.deployment_targets[0].lambda_target.lifecycle_events[0].start_time #=> Time
611
+ # resp.deployment_targets[0].lambda_target.lifecycle_events[0].end_time #=> Time
612
+ # resp.deployment_targets[0].lambda_target.lifecycle_events[0].status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown"
613
+ # resp.deployment_targets[0].ecs_target.deployment_id #=> String
614
+ # resp.deployment_targets[0].ecs_target.target_id #=> String
615
+ # resp.deployment_targets[0].ecs_target.target_arn #=> String
616
+ # resp.deployment_targets[0].ecs_target.last_updated_at #=> Time
617
+ # resp.deployment_targets[0].ecs_target.lifecycle_events #=> Array
618
+ # resp.deployment_targets[0].ecs_target.lifecycle_events[0].lifecycle_event_name #=> String
619
+ # resp.deployment_targets[0].ecs_target.lifecycle_events[0].diagnostics.error_code #=> String, one of "Success", "ScriptMissing", "ScriptNotExecutable", "ScriptTimedOut", "ScriptFailed", "UnknownError"
620
+ # resp.deployment_targets[0].ecs_target.lifecycle_events[0].diagnostics.script_name #=> String
621
+ # resp.deployment_targets[0].ecs_target.lifecycle_events[0].diagnostics.message #=> String
622
+ # resp.deployment_targets[0].ecs_target.lifecycle_events[0].diagnostics.log_tail #=> String
623
+ # resp.deployment_targets[0].ecs_target.lifecycle_events[0].start_time #=> Time
624
+ # resp.deployment_targets[0].ecs_target.lifecycle_events[0].end_time #=> Time
625
+ # resp.deployment_targets[0].ecs_target.lifecycle_events[0].status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown"
626
+ # resp.deployment_targets[0].ecs_target.status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown", "Ready"
627
+ # resp.deployment_targets[0].ecs_target.task_sets_info #=> Array
628
+ # resp.deployment_targets[0].ecs_target.task_sets_info[0].identifer #=> String
629
+ # resp.deployment_targets[0].ecs_target.task_sets_info[0].desired_count #=> Integer
630
+ # resp.deployment_targets[0].ecs_target.task_sets_info[0].pending_count #=> Integer
631
+ # resp.deployment_targets[0].ecs_target.task_sets_info[0].running_count #=> Integer
632
+ # resp.deployment_targets[0].ecs_target.task_sets_info[0].status #=> String
633
+ # resp.deployment_targets[0].ecs_target.task_sets_info[0].traffic_weight #=> Float
634
+ # resp.deployment_targets[0].ecs_target.task_sets_info[0].target_group.name #=> String
635
+ # resp.deployment_targets[0].ecs_target.task_sets_info[0].task_set_label #=> String, one of "Blue", "Green"
636
+ #
637
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentTargets AWS API Documentation
638
+ #
639
+ # @overload batch_get_deployment_targets(params = {})
640
+ # @param [Hash] params ({})
641
+ def batch_get_deployment_targets(params = {}, options = {})
642
+ req = build_request(:batch_get_deployment_targets, params)
643
+ req.send_request(options)
644
+ end
645
+
511
646
  # Gets information about one or more deployments.
512
647
  #
513
648
  # @option params [required, Array<String>] :deployment_ids
@@ -530,7 +665,7 @@ module Aws::CodeDeploy
530
665
  # resp.deployments_info[0].deployment_group_name #=> String
531
666
  # resp.deployments_info[0].deployment_config_name #=> String
532
667
  # resp.deployments_info[0].deployment_id #=> String
533
- # resp.deployments_info[0].previous_revision.revision_type #=> String, one of "S3", "GitHub", "String"
668
+ # resp.deployments_info[0].previous_revision.revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
534
669
  # resp.deployments_info[0].previous_revision.s3_location.bucket #=> String
535
670
  # resp.deployments_info[0].previous_revision.s3_location.key #=> String
536
671
  # resp.deployments_info[0].previous_revision.s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -540,7 +675,9 @@ module Aws::CodeDeploy
540
675
  # resp.deployments_info[0].previous_revision.git_hub_location.commit_id #=> String
541
676
  # resp.deployments_info[0].previous_revision.string.content #=> String
542
677
  # resp.deployments_info[0].previous_revision.string.sha256 #=> String
543
- # resp.deployments_info[0].revision.revision_type #=> String, one of "S3", "GitHub", "String"
678
+ # resp.deployments_info[0].previous_revision.app_spec_content.content #=> String
679
+ # resp.deployments_info[0].previous_revision.app_spec_content.sha256 #=> String
680
+ # resp.deployments_info[0].revision.revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
544
681
  # resp.deployments_info[0].revision.s3_location.bucket #=> String
545
682
  # resp.deployments_info[0].revision.s3_location.key #=> String
546
683
  # resp.deployments_info[0].revision.s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -550,8 +687,10 @@ module Aws::CodeDeploy
550
687
  # resp.deployments_info[0].revision.git_hub_location.commit_id #=> String
551
688
  # resp.deployments_info[0].revision.string.content #=> String
552
689
  # resp.deployments_info[0].revision.string.sha256 #=> String
690
+ # resp.deployments_info[0].revision.app_spec_content.content #=> String
691
+ # resp.deployments_info[0].revision.app_spec_content.sha256 #=> String
553
692
  # resp.deployments_info[0].status #=> String, one of "Created", "Queued", "InProgress", "Succeeded", "Failed", "Stopped", "Ready"
554
- # resp.deployments_info[0].error_information.code #=> String, one of "DEPLOYMENT_GROUP_MISSING", "APPLICATION_MISSING", "REVISION_MISSING", "IAM_ROLE_MISSING", "IAM_ROLE_PERMISSIONS", "NO_EC2_SUBSCRIPTION", "OVER_MAX_INSTANCES", "NO_INSTANCES", "TIMEOUT", "HEALTH_CONSTRAINTS_INVALID", "HEALTH_CONSTRAINTS", "INTERNAL_ERROR", "THROTTLED", "ALARM_ACTIVE", "AGENT_ISSUE", "AUTO_SCALING_IAM_ROLE_PERMISSIONS", "AUTO_SCALING_CONFIGURATION", "MANUAL_STOP", "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION", "MISSING_ELB_INFORMATION", "MISSING_GITHUB_TOKEN", "ELASTIC_LOAD_BALANCING_INVALID", "ELB_INVALID_INSTANCE", "INVALID_LAMBDA_CONFIGURATION", "INVALID_LAMBDA_FUNCTION", "HOOK_EXECUTION_FAILURE"
693
+ # resp.deployments_info[0].error_information.code #=> String, one of "DEPLOYMENT_GROUP_MISSING", "APPLICATION_MISSING", "REVISION_MISSING", "IAM_ROLE_MISSING", "IAM_ROLE_PERMISSIONS", "NO_EC2_SUBSCRIPTION", "OVER_MAX_INSTANCES", "NO_INSTANCES", "TIMEOUT", "HEALTH_CONSTRAINTS_INVALID", "HEALTH_CONSTRAINTS", "INTERNAL_ERROR", "THROTTLED", "ALARM_ACTIVE", "AGENT_ISSUE", "AUTO_SCALING_IAM_ROLE_PERMISSIONS", "AUTO_SCALING_CONFIGURATION", "MANUAL_STOP", "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION", "MISSING_ELB_INFORMATION", "MISSING_GITHUB_TOKEN", "ELASTIC_LOAD_BALANCING_INVALID", "ELB_INVALID_INSTANCE", "INVALID_LAMBDA_CONFIGURATION", "INVALID_LAMBDA_FUNCTION", "HOOK_EXECUTION_FAILURE", "AUTOSCALING_VALIDATION_ERROR", "INVALID_ECS_SERVICE", "ECS_UPDATE_ERROR", "INVALID_REVISION"
555
694
  # resp.deployments_info[0].error_information.message #=> String
556
695
  # resp.deployments_info[0].create_time #=> Time
557
696
  # resp.deployments_info[0].start_time #=> Time
@@ -595,11 +734,18 @@ module Aws::CodeDeploy
595
734
  # resp.deployments_info[0].load_balancer_info.elb_info_list[0].name #=> String
596
735
  # resp.deployments_info[0].load_balancer_info.target_group_info_list #=> Array
597
736
  # resp.deployments_info[0].load_balancer_info.target_group_info_list[0].name #=> String
737
+ # resp.deployments_info[0].load_balancer_info.target_group_pair_info_list #=> Array
738
+ # resp.deployments_info[0].load_balancer_info.target_group_pair_info_list[0].target_groups #=> Array
739
+ # resp.deployments_info[0].load_balancer_info.target_group_pair_info_list[0].target_groups[0].name #=> String
740
+ # resp.deployments_info[0].load_balancer_info.target_group_pair_info_list[0].prod_traffic_route.listener_arns #=> Array
741
+ # resp.deployments_info[0].load_balancer_info.target_group_pair_info_list[0].prod_traffic_route.listener_arns[0] #=> String
742
+ # resp.deployments_info[0].load_balancer_info.target_group_pair_info_list[0].test_traffic_route.listener_arns #=> Array
743
+ # resp.deployments_info[0].load_balancer_info.target_group_pair_info_list[0].test_traffic_route.listener_arns[0] #=> String
598
744
  # resp.deployments_info[0].additional_deployment_status_info #=> String
599
745
  # resp.deployments_info[0].file_exists_behavior #=> String, one of "DISALLOW", "OVERWRITE", "RETAIN"
600
746
  # resp.deployments_info[0].deployment_status_messages #=> Array
601
747
  # resp.deployments_info[0].deployment_status_messages[0] #=> String
602
- # resp.deployments_info[0].compute_platform #=> String, one of "Server", "Lambda"
748
+ # resp.deployments_info[0].compute_platform #=> String, one of "Server", "Lambda", "ECS"
603
749
  #
604
750
  # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments AWS API Documentation
605
751
  #
@@ -655,8 +801,14 @@ module Aws::CodeDeploy
655
801
  # soon as all instances have a status of Ready.)
656
802
  #
657
803
  # @option params [String] :deployment_id
658
- # The deployment ID of the blue/green deployment for which you want to
659
- # start rerouting traffic to the replacement environment.
804
+ # The unique ID of a blue/green deployment for which you want to start
805
+ # rerouting traffic to the replacement environment.
806
+ #
807
+ # @option params [String] :deployment_wait_type
808
+ # The status of the deployment's waiting period. READY\_WAIT indicates
809
+ # the deployment is ready to start shifting traffic. TERMINATION\_WAIT
810
+ # indicates the traffic is shifted, but the original target is not
811
+ # terminated.
660
812
  #
661
813
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
662
814
  #
@@ -664,6 +816,7 @@ module Aws::CodeDeploy
664
816
  #
665
817
  # resp = client.continue_deployment({
666
818
  # deployment_id: "DeploymentId",
819
+ # deployment_wait_type: "READY_WAIT", # accepts READY_WAIT, TERMINATION_WAIT
667
820
  # })
668
821
  #
669
822
  # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment AWS API Documentation
@@ -693,7 +846,7 @@ module Aws::CodeDeploy
693
846
  #
694
847
  # resp = client.create_application({
695
848
  # application_name: "ApplicationName", # required
696
- # compute_platform: "Server", # accepts Server, Lambda
849
+ # compute_platform: "Server", # accepts Server, Lambda, ECS
697
850
  # })
698
851
  #
699
852
  # @example Response structure
@@ -784,7 +937,7 @@ module Aws::CodeDeploy
784
937
  # application_name: "ApplicationName", # required
785
938
  # deployment_group_name: "DeploymentGroupName",
786
939
  # revision: {
787
- # revision_type: "S3", # accepts S3, GitHub, String
940
+ # revision_type: "S3", # accepts S3, GitHub, String, AppSpecContent
788
941
  # s3_location: {
789
942
  # bucket: "S3Bucket",
790
943
  # key: "S3Key",
@@ -800,6 +953,10 @@ module Aws::CodeDeploy
800
953
  # content: "RawStringContent",
801
954
  # sha256: "RawStringSha256",
802
955
  # },
956
+ # app_spec_content: {
957
+ # content: "RawStringContent",
958
+ # sha256: "RawStringSha256",
959
+ # },
803
960
  # },
804
961
  # deployment_config_name: "DeploymentConfigName",
805
962
  # description: "Description",
@@ -903,7 +1060,7 @@ module Aws::CodeDeploy
903
1060
  # linear_interval: 1,
904
1061
  # },
905
1062
  # },
906
- # compute_platform: "Server", # accepts Server, Lambda
1063
+ # compute_platform: "Server", # accepts Server, Lambda, ECS
907
1064
  # })
908
1065
  #
909
1066
  # @example Response structure
@@ -998,6 +1155,12 @@ module Aws::CodeDeploy
998
1155
  # deployment group will include only EC2 instances identified by all the
999
1156
  # tag groups. Cannot be used in the same call as ec2TagFilters.
1000
1157
  #
1158
+ # @option params [Array<Types::ECSService>] :ecs_services
1159
+ # The target ECS services in the deployment group. This only applies to
1160
+ # deployment groups that use the Amazon ECS compute platform. A target
1161
+ # ECS service is specified as an Amazon ECS cluster and service name
1162
+ # pair using the format `<clustername>:<servicename>`.
1163
+ #
1001
1164
  # @option params [Types::OnPremisesTagSet] :on_premises_tag_set
1002
1165
  # Information about groups of tags applied to on-premises instances. The
1003
1166
  # deployment group will include only on-premises instances identified by
@@ -1078,6 +1241,21 @@ module Aws::CodeDeploy
1078
1241
  # name: "TargetGroupName",
1079
1242
  # },
1080
1243
  # ],
1244
+ # target_group_pair_info_list: [
1245
+ # {
1246
+ # target_groups: [
1247
+ # {
1248
+ # name: "TargetGroupName",
1249
+ # },
1250
+ # ],
1251
+ # prod_traffic_route: {
1252
+ # listener_arns: ["ListenerArn"],
1253
+ # },
1254
+ # test_traffic_route: {
1255
+ # listener_arns: ["ListenerArn"],
1256
+ # },
1257
+ # },
1258
+ # ],
1081
1259
  # },
1082
1260
  # ec2_tag_set: {
1083
1261
  # ec2_tag_set_list: [
@@ -1090,6 +1268,12 @@ module Aws::CodeDeploy
1090
1268
  # ],
1091
1269
  # ],
1092
1270
  # },
1271
+ # ecs_services: [
1272
+ # {
1273
+ # service_name: "ECSServiceName",
1274
+ # cluster_name: "ECSClusterName",
1275
+ # },
1276
+ # ],
1093
1277
  # on_premises_tag_set: {
1094
1278
  # on_premises_tag_set_list: [
1095
1279
  # [
@@ -1276,7 +1460,7 @@ module Aws::CodeDeploy
1276
1460
  # resp.application.create_time #=> Time
1277
1461
  # resp.application.linked_to_git_hub #=> Boolean
1278
1462
  # resp.application.git_hub_account_name #=> String
1279
- # resp.application.compute_platform #=> String, one of "Server", "Lambda"
1463
+ # resp.application.compute_platform #=> String, one of "Server", "Lambda", "ECS"
1280
1464
  #
1281
1465
  # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication AWS API Documentation
1282
1466
  #
@@ -1307,7 +1491,7 @@ module Aws::CodeDeploy
1307
1491
  # resp = client.get_application_revision({
1308
1492
  # application_name: "ApplicationName", # required
1309
1493
  # revision: { # required
1310
- # revision_type: "S3", # accepts S3, GitHub, String
1494
+ # revision_type: "S3", # accepts S3, GitHub, String, AppSpecContent
1311
1495
  # s3_location: {
1312
1496
  # bucket: "S3Bucket",
1313
1497
  # key: "S3Key",
@@ -1323,13 +1507,17 @@ module Aws::CodeDeploy
1323
1507
  # content: "RawStringContent",
1324
1508
  # sha256: "RawStringSha256",
1325
1509
  # },
1510
+ # app_spec_content: {
1511
+ # content: "RawStringContent",
1512
+ # sha256: "RawStringSha256",
1513
+ # },
1326
1514
  # },
1327
1515
  # })
1328
1516
  #
1329
1517
  # @example Response structure
1330
1518
  #
1331
1519
  # resp.application_name #=> String
1332
- # resp.revision.revision_type #=> String, one of "S3", "GitHub", "String"
1520
+ # resp.revision.revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
1333
1521
  # resp.revision.s3_location.bucket #=> String
1334
1522
  # resp.revision.s3_location.key #=> String
1335
1523
  # resp.revision.s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -1339,6 +1527,8 @@ module Aws::CodeDeploy
1339
1527
  # resp.revision.git_hub_location.commit_id #=> String
1340
1528
  # resp.revision.string.content #=> String
1341
1529
  # resp.revision.string.sha256 #=> String
1530
+ # resp.revision.app_spec_content.content #=> String
1531
+ # resp.revision.app_spec_content.sha256 #=> String
1342
1532
  # resp.revision_info.description #=> String
1343
1533
  # resp.revision_info.deployment_groups #=> Array
1344
1534
  # resp.revision_info.deployment_groups[0] #=> String
@@ -1358,8 +1548,8 @@ module Aws::CodeDeploy
1358
1548
  # Gets information about a deployment.
1359
1549
  #
1360
1550
  # @option params [required, String] :deployment_id
1361
- # A deployment ID associated with the applicable IAM user or AWS
1362
- # account.
1551
+ # The unique ID of a deployment associated with the applicable IAM user
1552
+ # or AWS account.
1363
1553
  #
1364
1554
  # @return [Types::GetDeploymentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1365
1555
  #
@@ -1377,7 +1567,7 @@ module Aws::CodeDeploy
1377
1567
  # resp.deployment_info.deployment_group_name #=> String
1378
1568
  # resp.deployment_info.deployment_config_name #=> String
1379
1569
  # resp.deployment_info.deployment_id #=> String
1380
- # resp.deployment_info.previous_revision.revision_type #=> String, one of "S3", "GitHub", "String"
1570
+ # resp.deployment_info.previous_revision.revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
1381
1571
  # resp.deployment_info.previous_revision.s3_location.bucket #=> String
1382
1572
  # resp.deployment_info.previous_revision.s3_location.key #=> String
1383
1573
  # resp.deployment_info.previous_revision.s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -1387,7 +1577,9 @@ module Aws::CodeDeploy
1387
1577
  # resp.deployment_info.previous_revision.git_hub_location.commit_id #=> String
1388
1578
  # resp.deployment_info.previous_revision.string.content #=> String
1389
1579
  # resp.deployment_info.previous_revision.string.sha256 #=> String
1390
- # resp.deployment_info.revision.revision_type #=> String, one of "S3", "GitHub", "String"
1580
+ # resp.deployment_info.previous_revision.app_spec_content.content #=> String
1581
+ # resp.deployment_info.previous_revision.app_spec_content.sha256 #=> String
1582
+ # resp.deployment_info.revision.revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
1391
1583
  # resp.deployment_info.revision.s3_location.bucket #=> String
1392
1584
  # resp.deployment_info.revision.s3_location.key #=> String
1393
1585
  # resp.deployment_info.revision.s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -1397,8 +1589,10 @@ module Aws::CodeDeploy
1397
1589
  # resp.deployment_info.revision.git_hub_location.commit_id #=> String
1398
1590
  # resp.deployment_info.revision.string.content #=> String
1399
1591
  # resp.deployment_info.revision.string.sha256 #=> String
1592
+ # resp.deployment_info.revision.app_spec_content.content #=> String
1593
+ # resp.deployment_info.revision.app_spec_content.sha256 #=> String
1400
1594
  # resp.deployment_info.status #=> String, one of "Created", "Queued", "InProgress", "Succeeded", "Failed", "Stopped", "Ready"
1401
- # resp.deployment_info.error_information.code #=> String, one of "DEPLOYMENT_GROUP_MISSING", "APPLICATION_MISSING", "REVISION_MISSING", "IAM_ROLE_MISSING", "IAM_ROLE_PERMISSIONS", "NO_EC2_SUBSCRIPTION", "OVER_MAX_INSTANCES", "NO_INSTANCES", "TIMEOUT", "HEALTH_CONSTRAINTS_INVALID", "HEALTH_CONSTRAINTS", "INTERNAL_ERROR", "THROTTLED", "ALARM_ACTIVE", "AGENT_ISSUE", "AUTO_SCALING_IAM_ROLE_PERMISSIONS", "AUTO_SCALING_CONFIGURATION", "MANUAL_STOP", "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION", "MISSING_ELB_INFORMATION", "MISSING_GITHUB_TOKEN", "ELASTIC_LOAD_BALANCING_INVALID", "ELB_INVALID_INSTANCE", "INVALID_LAMBDA_CONFIGURATION", "INVALID_LAMBDA_FUNCTION", "HOOK_EXECUTION_FAILURE"
1595
+ # resp.deployment_info.error_information.code #=> String, one of "DEPLOYMENT_GROUP_MISSING", "APPLICATION_MISSING", "REVISION_MISSING", "IAM_ROLE_MISSING", "IAM_ROLE_PERMISSIONS", "NO_EC2_SUBSCRIPTION", "OVER_MAX_INSTANCES", "NO_INSTANCES", "TIMEOUT", "HEALTH_CONSTRAINTS_INVALID", "HEALTH_CONSTRAINTS", "INTERNAL_ERROR", "THROTTLED", "ALARM_ACTIVE", "AGENT_ISSUE", "AUTO_SCALING_IAM_ROLE_PERMISSIONS", "AUTO_SCALING_CONFIGURATION", "MANUAL_STOP", "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION", "MISSING_ELB_INFORMATION", "MISSING_GITHUB_TOKEN", "ELASTIC_LOAD_BALANCING_INVALID", "ELB_INVALID_INSTANCE", "INVALID_LAMBDA_CONFIGURATION", "INVALID_LAMBDA_FUNCTION", "HOOK_EXECUTION_FAILURE", "AUTOSCALING_VALIDATION_ERROR", "INVALID_ECS_SERVICE", "ECS_UPDATE_ERROR", "INVALID_REVISION"
1402
1596
  # resp.deployment_info.error_information.message #=> String
1403
1597
  # resp.deployment_info.create_time #=> Time
1404
1598
  # resp.deployment_info.start_time #=> Time
@@ -1442,11 +1636,18 @@ module Aws::CodeDeploy
1442
1636
  # resp.deployment_info.load_balancer_info.elb_info_list[0].name #=> String
1443
1637
  # resp.deployment_info.load_balancer_info.target_group_info_list #=> Array
1444
1638
  # resp.deployment_info.load_balancer_info.target_group_info_list[0].name #=> String
1639
+ # resp.deployment_info.load_balancer_info.target_group_pair_info_list #=> Array
1640
+ # resp.deployment_info.load_balancer_info.target_group_pair_info_list[0].target_groups #=> Array
1641
+ # resp.deployment_info.load_balancer_info.target_group_pair_info_list[0].target_groups[0].name #=> String
1642
+ # resp.deployment_info.load_balancer_info.target_group_pair_info_list[0].prod_traffic_route.listener_arns #=> Array
1643
+ # resp.deployment_info.load_balancer_info.target_group_pair_info_list[0].prod_traffic_route.listener_arns[0] #=> String
1644
+ # resp.deployment_info.load_balancer_info.target_group_pair_info_list[0].test_traffic_route.listener_arns #=> Array
1645
+ # resp.deployment_info.load_balancer_info.target_group_pair_info_list[0].test_traffic_route.listener_arns[0] #=> String
1445
1646
  # resp.deployment_info.additional_deployment_status_info #=> String
1446
1647
  # resp.deployment_info.file_exists_behavior #=> String, one of "DISALLOW", "OVERWRITE", "RETAIN"
1447
1648
  # resp.deployment_info.deployment_status_messages #=> Array
1448
1649
  # resp.deployment_info.deployment_status_messages[0] #=> String
1449
- # resp.deployment_info.compute_platform #=> String, one of "Server", "Lambda"
1650
+ # resp.deployment_info.compute_platform #=> String, one of "Server", "Lambda", "ECS"
1450
1651
  #
1451
1652
  # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment AWS API Documentation
1452
1653
  #
@@ -1480,7 +1681,7 @@ module Aws::CodeDeploy
1480
1681
  # resp.deployment_config_info.minimum_healthy_hosts.value #=> Integer
1481
1682
  # resp.deployment_config_info.minimum_healthy_hosts.type #=> String, one of "HOST_COUNT", "FLEET_PERCENT"
1482
1683
  # resp.deployment_config_info.create_time #=> Time
1483
- # resp.deployment_config_info.compute_platform #=> String, one of "Server", "Lambda"
1684
+ # resp.deployment_config_info.compute_platform #=> String, one of "Server", "Lambda", "ECS"
1484
1685
  # resp.deployment_config_info.traffic_routing_config.type #=> String, one of "TimeBasedCanary", "TimeBasedLinear", "AllAtOnce"
1485
1686
  # resp.deployment_config_info.traffic_routing_config.time_based_canary.canary_percentage #=> Integer
1486
1687
  # resp.deployment_config_info.traffic_routing_config.time_based_canary.canary_interval #=> Integer
@@ -1535,7 +1736,7 @@ module Aws::CodeDeploy
1535
1736
  # resp.deployment_group_info.auto_scaling_groups[0].name #=> String
1536
1737
  # resp.deployment_group_info.auto_scaling_groups[0].hook #=> String
1537
1738
  # resp.deployment_group_info.service_role_arn #=> String
1538
- # resp.deployment_group_info.target_revision.revision_type #=> String, one of "S3", "GitHub", "String"
1739
+ # resp.deployment_group_info.target_revision.revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
1539
1740
  # resp.deployment_group_info.target_revision.s3_location.bucket #=> String
1540
1741
  # resp.deployment_group_info.target_revision.s3_location.key #=> String
1541
1742
  # resp.deployment_group_info.target_revision.s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -1545,6 +1746,8 @@ module Aws::CodeDeploy
1545
1746
  # resp.deployment_group_info.target_revision.git_hub_location.commit_id #=> String
1546
1747
  # resp.deployment_group_info.target_revision.string.content #=> String
1547
1748
  # resp.deployment_group_info.target_revision.string.sha256 #=> String
1749
+ # resp.deployment_group_info.target_revision.app_spec_content.content #=> String
1750
+ # resp.deployment_group_info.target_revision.app_spec_content.sha256 #=> String
1548
1751
  # resp.deployment_group_info.trigger_configurations #=> Array
1549
1752
  # resp.deployment_group_info.trigger_configurations[0].trigger_name #=> String
1550
1753
  # resp.deployment_group_info.trigger_configurations[0].trigger_target_arn #=> String
@@ -1568,6 +1771,13 @@ module Aws::CodeDeploy
1568
1771
  # resp.deployment_group_info.load_balancer_info.elb_info_list[0].name #=> String
1569
1772
  # resp.deployment_group_info.load_balancer_info.target_group_info_list #=> Array
1570
1773
  # resp.deployment_group_info.load_balancer_info.target_group_info_list[0].name #=> String
1774
+ # resp.deployment_group_info.load_balancer_info.target_group_pair_info_list #=> Array
1775
+ # resp.deployment_group_info.load_balancer_info.target_group_pair_info_list[0].target_groups #=> Array
1776
+ # resp.deployment_group_info.load_balancer_info.target_group_pair_info_list[0].target_groups[0].name #=> String
1777
+ # resp.deployment_group_info.load_balancer_info.target_group_pair_info_list[0].prod_traffic_route.listener_arns #=> Array
1778
+ # resp.deployment_group_info.load_balancer_info.target_group_pair_info_list[0].prod_traffic_route.listener_arns[0] #=> String
1779
+ # resp.deployment_group_info.load_balancer_info.target_group_pair_info_list[0].test_traffic_route.listener_arns #=> Array
1780
+ # resp.deployment_group_info.load_balancer_info.target_group_pair_info_list[0].test_traffic_route.listener_arns[0] #=> String
1571
1781
  # resp.deployment_group_info.last_successful_deployment.deployment_id #=> String
1572
1782
  # resp.deployment_group_info.last_successful_deployment.status #=> String, one of "Created", "Queued", "InProgress", "Succeeded", "Failed", "Stopped", "Ready"
1573
1783
  # resp.deployment_group_info.last_successful_deployment.end_time #=> Time
@@ -1586,7 +1796,10 @@ module Aws::CodeDeploy
1586
1796
  # resp.deployment_group_info.on_premises_tag_set.on_premises_tag_set_list[0][0].key #=> String
1587
1797
  # resp.deployment_group_info.on_premises_tag_set.on_premises_tag_set_list[0][0].value #=> String
1588
1798
  # resp.deployment_group_info.on_premises_tag_set.on_premises_tag_set_list[0][0].type #=> String, one of "KEY_ONLY", "VALUE_ONLY", "KEY_AND_VALUE"
1589
- # resp.deployment_group_info.compute_platform #=> String, one of "Server", "Lambda"
1799
+ # resp.deployment_group_info.compute_platform #=> String, one of "Server", "Lambda", "ECS"
1800
+ # resp.deployment_group_info.ecs_services #=> Array
1801
+ # resp.deployment_group_info.ecs_services[0].service_name #=> String
1802
+ # resp.deployment_group_info.ecs_services[0].cluster_name #=> String
1590
1803
  #
1591
1804
  # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup AWS API Documentation
1592
1805
  #
@@ -1642,6 +1855,90 @@ module Aws::CodeDeploy
1642
1855
  req.send_request(options)
1643
1856
  end
1644
1857
 
1858
+ # Returns information about a deployment target.
1859
+ #
1860
+ # @option params [String] :deployment_id
1861
+ # The unique ID of a deployment.
1862
+ #
1863
+ # @option params [String] :target_id
1864
+ # The unique ID of a deployment target.
1865
+ #
1866
+ # @return [Types::GetDeploymentTargetOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1867
+ #
1868
+ # * {Types::GetDeploymentTargetOutput#deployment_target #deployment_target} => Types::DeploymentTarget
1869
+ #
1870
+ # @example Request syntax with placeholder values
1871
+ #
1872
+ # resp = client.get_deployment_target({
1873
+ # deployment_id: "DeploymentId",
1874
+ # target_id: "TargetId",
1875
+ # })
1876
+ #
1877
+ # @example Response structure
1878
+ #
1879
+ # resp.deployment_target.deployment_target_type #=> String, one of "InstanceTarget", "LambdaTarget", "ECSTarget"
1880
+ # resp.deployment_target.instance_target.deployment_id #=> String
1881
+ # resp.deployment_target.instance_target.target_id #=> String
1882
+ # resp.deployment_target.instance_target.target_arn #=> String
1883
+ # resp.deployment_target.instance_target.status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown", "Ready"
1884
+ # resp.deployment_target.instance_target.last_updated_at #=> Time
1885
+ # resp.deployment_target.instance_target.lifecycle_events #=> Array
1886
+ # resp.deployment_target.instance_target.lifecycle_events[0].lifecycle_event_name #=> String
1887
+ # resp.deployment_target.instance_target.lifecycle_events[0].diagnostics.error_code #=> String, one of "Success", "ScriptMissing", "ScriptNotExecutable", "ScriptTimedOut", "ScriptFailed", "UnknownError"
1888
+ # resp.deployment_target.instance_target.lifecycle_events[0].diagnostics.script_name #=> String
1889
+ # resp.deployment_target.instance_target.lifecycle_events[0].diagnostics.message #=> String
1890
+ # resp.deployment_target.instance_target.lifecycle_events[0].diagnostics.log_tail #=> String
1891
+ # resp.deployment_target.instance_target.lifecycle_events[0].start_time #=> Time
1892
+ # resp.deployment_target.instance_target.lifecycle_events[0].end_time #=> Time
1893
+ # resp.deployment_target.instance_target.lifecycle_events[0].status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown"
1894
+ # resp.deployment_target.instance_target.instance_label #=> String, one of "Blue", "Green"
1895
+ # resp.deployment_target.lambda_target.deployment_id #=> String
1896
+ # resp.deployment_target.lambda_target.target_id #=> String
1897
+ # resp.deployment_target.lambda_target.target_arn #=> String
1898
+ # resp.deployment_target.lambda_target.status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown", "Ready"
1899
+ # resp.deployment_target.lambda_target.last_updated_at #=> Time
1900
+ # resp.deployment_target.lambda_target.lifecycle_events #=> Array
1901
+ # resp.deployment_target.lambda_target.lifecycle_events[0].lifecycle_event_name #=> String
1902
+ # resp.deployment_target.lambda_target.lifecycle_events[0].diagnostics.error_code #=> String, one of "Success", "ScriptMissing", "ScriptNotExecutable", "ScriptTimedOut", "ScriptFailed", "UnknownError"
1903
+ # resp.deployment_target.lambda_target.lifecycle_events[0].diagnostics.script_name #=> String
1904
+ # resp.deployment_target.lambda_target.lifecycle_events[0].diagnostics.message #=> String
1905
+ # resp.deployment_target.lambda_target.lifecycle_events[0].diagnostics.log_tail #=> String
1906
+ # resp.deployment_target.lambda_target.lifecycle_events[0].start_time #=> Time
1907
+ # resp.deployment_target.lambda_target.lifecycle_events[0].end_time #=> Time
1908
+ # resp.deployment_target.lambda_target.lifecycle_events[0].status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown"
1909
+ # resp.deployment_target.ecs_target.deployment_id #=> String
1910
+ # resp.deployment_target.ecs_target.target_id #=> String
1911
+ # resp.deployment_target.ecs_target.target_arn #=> String
1912
+ # resp.deployment_target.ecs_target.last_updated_at #=> Time
1913
+ # resp.deployment_target.ecs_target.lifecycle_events #=> Array
1914
+ # resp.deployment_target.ecs_target.lifecycle_events[0].lifecycle_event_name #=> String
1915
+ # resp.deployment_target.ecs_target.lifecycle_events[0].diagnostics.error_code #=> String, one of "Success", "ScriptMissing", "ScriptNotExecutable", "ScriptTimedOut", "ScriptFailed", "UnknownError"
1916
+ # resp.deployment_target.ecs_target.lifecycle_events[0].diagnostics.script_name #=> String
1917
+ # resp.deployment_target.ecs_target.lifecycle_events[0].diagnostics.message #=> String
1918
+ # resp.deployment_target.ecs_target.lifecycle_events[0].diagnostics.log_tail #=> String
1919
+ # resp.deployment_target.ecs_target.lifecycle_events[0].start_time #=> Time
1920
+ # resp.deployment_target.ecs_target.lifecycle_events[0].end_time #=> Time
1921
+ # resp.deployment_target.ecs_target.lifecycle_events[0].status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown"
1922
+ # resp.deployment_target.ecs_target.status #=> String, one of "Pending", "InProgress", "Succeeded", "Failed", "Skipped", "Unknown", "Ready"
1923
+ # resp.deployment_target.ecs_target.task_sets_info #=> Array
1924
+ # resp.deployment_target.ecs_target.task_sets_info[0].identifer #=> String
1925
+ # resp.deployment_target.ecs_target.task_sets_info[0].desired_count #=> Integer
1926
+ # resp.deployment_target.ecs_target.task_sets_info[0].pending_count #=> Integer
1927
+ # resp.deployment_target.ecs_target.task_sets_info[0].running_count #=> Integer
1928
+ # resp.deployment_target.ecs_target.task_sets_info[0].status #=> String
1929
+ # resp.deployment_target.ecs_target.task_sets_info[0].traffic_weight #=> Float
1930
+ # resp.deployment_target.ecs_target.task_sets_info[0].target_group.name #=> String
1931
+ # resp.deployment_target.ecs_target.task_sets_info[0].task_set_label #=> String, one of "Blue", "Green"
1932
+ #
1933
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentTarget AWS API Documentation
1934
+ #
1935
+ # @overload get_deployment_target(params = {})
1936
+ # @param [Hash] params ({})
1937
+ def get_deployment_target(params = {}, options = {})
1938
+ req = build_request(:get_deployment_target, params)
1939
+ req.send_request(options)
1940
+ end
1941
+
1645
1942
  # Gets information about an on-premises instance.
1646
1943
  #
1647
1944
  # @option params [required, String] :instance_name
@@ -1713,7 +2010,7 @@ module Aws::CodeDeploy
1713
2010
  # @option params [String] :s3_bucket
1714
2011
  # An Amazon S3 bucket name to limit the search for revisions.
1715
2012
  #
1716
- # If set to null, all of the user's buckets will be searched.
2013
+ # If set to null, all of the user's buckets are searched.
1717
2014
  #
1718
2015
  # @option params [String] :s3_key_prefix
1719
2016
  # A key prefix for the set of Amazon S3 objects to limit the search for
@@ -1732,7 +2029,7 @@ module Aws::CodeDeploy
1732
2029
  # * ignore: List all revisions.
1733
2030
  #
1734
2031
  # @option params [String] :next_token
1735
- # An identifier returned from the previous list application revisions
2032
+ # An identifier returned from the previous `ListApplicationRevisions`
1736
2033
  # call. It can be used to return the next set of applications in the
1737
2034
  # list.
1738
2035
  #
@@ -1756,7 +2053,7 @@ module Aws::CodeDeploy
1756
2053
  # @example Response structure
1757
2054
  #
1758
2055
  # resp.revisions #=> Array
1759
- # resp.revisions[0].revision_type #=> String, one of "S3", "GitHub", "String"
2056
+ # resp.revisions[0].revision_type #=> String, one of "S3", "GitHub", "String", "AppSpecContent"
1760
2057
  # resp.revisions[0].s3_location.bucket #=> String
1761
2058
  # resp.revisions[0].s3_location.key #=> String
1762
2059
  # resp.revisions[0].s3_location.bundle_type #=> String, one of "tar", "tgz", "zip", "YAML", "JSON"
@@ -1766,6 +2063,8 @@ module Aws::CodeDeploy
1766
2063
  # resp.revisions[0].git_hub_location.commit_id #=> String
1767
2064
  # resp.revisions[0].string.content #=> String
1768
2065
  # resp.revisions[0].string.sha256 #=> String
2066
+ # resp.revisions[0].app_spec_content.content #=> String
2067
+ # resp.revisions[0].app_spec_content.sha256 #=> String
1769
2068
  # resp.next_token #=> String
1770
2069
  #
1771
2070
  # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions AWS API Documentation
@@ -1814,9 +2113,9 @@ module Aws::CodeDeploy
1814
2113
  # AWS account.
1815
2114
  #
1816
2115
  # @option params [String] :next_token
1817
- # An identifier returned from the previous list deployment
1818
- # configurations call. It can be used to return the next set of
1819
- # deployment configurations in the list.
2116
+ # An identifier returned from the previous `ListDeploymentConfigs` call.
2117
+ # It can be used to return the next set of deployment configurations in
2118
+ # the list.
1820
2119
  #
1821
2120
  # @return [Types::ListDeploymentConfigsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1822
2121
  #
@@ -1885,6 +2184,13 @@ module Aws::CodeDeploy
1885
2184
  req.send_request(options)
1886
2185
  end
1887
2186
 
2187
+ # <note markdown="1"> The newer BatchGetDeploymentTargets should be used instead because it
2188
+ # works with all compute types. `ListDeploymentInstances` throws an
2189
+ # exception if it is used with a compute platform other than
2190
+ # EC2/On-premises or AWS Lambda.
2191
+ #
2192
+ # </note>
2193
+ #
1888
2194
  # Lists the instance for a deployment associated with the applicable IAM
1889
2195
  # user or AWS account.
1890
2196
  #
@@ -1948,6 +2254,49 @@ module Aws::CodeDeploy
1948
2254
  req.send_request(options)
1949
2255
  end
1950
2256
 
2257
+ # Returns an array of target IDs that are associated a deployment.
2258
+ #
2259
+ # @option params [String] :deployment_id
2260
+ # The unique ID of a deployment.
2261
+ #
2262
+ # @option params [String] :next_token
2263
+ # A token identifier returned from the previous `ListDeploymentTargets`
2264
+ # call. It can be used to return the next set of deployment targets in
2265
+ # the list.
2266
+ #
2267
+ # @option params [Hash<String,Array>] :target_filters
2268
+ # A key used to filter the returned targets.
2269
+ #
2270
+ # @return [Types::ListDeploymentTargetsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2271
+ #
2272
+ # * {Types::ListDeploymentTargetsOutput#target_ids #target_ids} => Array&lt;String&gt;
2273
+ # * {Types::ListDeploymentTargetsOutput#next_token #next_token} => String
2274
+ #
2275
+ # @example Request syntax with placeholder values
2276
+ #
2277
+ # resp = client.list_deployment_targets({
2278
+ # deployment_id: "DeploymentId",
2279
+ # next_token: "NextToken",
2280
+ # target_filters: {
2281
+ # "TargetStatus" => ["FilterValue"],
2282
+ # },
2283
+ # })
2284
+ #
2285
+ # @example Response structure
2286
+ #
2287
+ # resp.target_ids #=> Array
2288
+ # resp.target_ids[0] #=> String
2289
+ # resp.next_token #=> String
2290
+ #
2291
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentTargets AWS API Documentation
2292
+ #
2293
+ # @overload list_deployment_targets(params = {})
2294
+ # @param [Hash] params ({})
2295
+ def list_deployment_targets(params = {}, options = {})
2296
+ req = build_request(:list_deployment_targets, params)
2297
+ req.send_request(options)
2298
+ end
2299
+
1951
2300
  # Lists the deployments in a deployment group for an application
1952
2301
  # registered with the applicable IAM user or AWS account.
1953
2302
  #
@@ -2111,7 +2460,7 @@ module Aws::CodeDeploy
2111
2460
  # `AfterAllowTraffic`) and returns `Succeeded` or `Failed`.
2112
2461
  #
2113
2462
  # @option params [String] :deployment_id
2114
- # The ID of the deployment. Pass this ID to a Lambda function that
2463
+ # The unique ID of a deployment. Pass this ID to a Lambda function that
2115
2464
  # validates a deployment lifecycle event.
2116
2465
  #
2117
2466
  # @option params [String] :lifecycle_event_hook_execution_id
@@ -2170,7 +2519,7 @@ module Aws::CodeDeploy
2170
2519
  # application_name: "ApplicationName", # required
2171
2520
  # description: "Description",
2172
2521
  # revision: { # required
2173
- # revision_type: "S3", # accepts S3, GitHub, String
2522
+ # revision_type: "S3", # accepts S3, GitHub, String, AppSpecContent
2174
2523
  # s3_location: {
2175
2524
  # bucket: "S3Bucket",
2176
2525
  # key: "S3Key",
@@ -2186,6 +2535,10 @@ module Aws::CodeDeploy
2186
2535
  # content: "RawStringContent",
2187
2536
  # sha256: "RawStringSha256",
2188
2537
  # },
2538
+ # app_spec_content: {
2539
+ # content: "RawStringContent",
2540
+ # sha256: "RawStringSha256",
2541
+ # },
2189
2542
  # },
2190
2543
  # })
2191
2544
  #
@@ -2269,8 +2622,8 @@ module Aws::CodeDeploy
2269
2622
  # completed.
2270
2623
  #
2271
2624
  # @option params [String] :deployment_id
2272
- # The ID of the blue/green deployment for which you want to skip the
2273
- # instance termination wait time.
2625
+ # The unique ID of a blue/green deployment for which you want to skip
2626
+ # the instance termination wait time.
2274
2627
  #
2275
2628
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2276
2629
  #
@@ -2419,6 +2772,12 @@ module Aws::CodeDeploy
2419
2772
  # deployment group will include only EC2 instances identified by all the
2420
2773
  # tag groups.
2421
2774
  #
2775
+ # @option params [Array<Types::ECSService>] :ecs_services
2776
+ # The target ECS services in the deployment group. This only applies to
2777
+ # deployment groups that use the Amazon ECS compute platform. A target
2778
+ # ECS service is specified as an Amazon ECS cluster and service name
2779
+ # pair using the format `<clustername>:<servicename>`.
2780
+ #
2422
2781
  # @option params [Types::OnPremisesTagSet] :on_premises_tag_set
2423
2782
  # Information about an on-premises instance tag set. The deployment
2424
2783
  # group will include only on-premises instances identified by all the
@@ -2499,6 +2858,21 @@ module Aws::CodeDeploy
2499
2858
  # name: "TargetGroupName",
2500
2859
  # },
2501
2860
  # ],
2861
+ # target_group_pair_info_list: [
2862
+ # {
2863
+ # target_groups: [
2864
+ # {
2865
+ # name: "TargetGroupName",
2866
+ # },
2867
+ # ],
2868
+ # prod_traffic_route: {
2869
+ # listener_arns: ["ListenerArn"],
2870
+ # },
2871
+ # test_traffic_route: {
2872
+ # listener_arns: ["ListenerArn"],
2873
+ # },
2874
+ # },
2875
+ # ],
2502
2876
  # },
2503
2877
  # ec2_tag_set: {
2504
2878
  # ec2_tag_set_list: [
@@ -2511,6 +2885,12 @@ module Aws::CodeDeploy
2511
2885
  # ],
2512
2886
  # ],
2513
2887
  # },
2888
+ # ecs_services: [
2889
+ # {
2890
+ # service_name: "ECSServiceName",
2891
+ # cluster_name: "ECSClusterName",
2892
+ # },
2893
+ # ],
2514
2894
  # on_premises_tag_set: {
2515
2895
  # on_premises_tag_set_list: [
2516
2896
  # [
@@ -2552,7 +2932,7 @@ module Aws::CodeDeploy
2552
2932
  params: params,
2553
2933
  config: config)
2554
2934
  context[:gem_name] = 'aws-sdk-codedeploy'
2555
- context[:gem_version] = '1.11.0'
2935
+ context[:gem_version] = '1.12.0'
2556
2936
  Seahorse::Client::Request.new(handlers, context)
2557
2937
  end
2558
2938