Class: Aws::CodeDeploy::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CodeDeploy::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- lib/aws-sdk-codedeploy/client.rb,
sig/client.rbs
Overview
An API client for CodeDeploy. To construct a client, you need to configure a :region and :credentials.
client = Aws::CodeDeploy::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Defined Under Namespace
Modules: _BatchGetApplicationRevisionsResponseSuccess, _BatchGetApplicationsResponseSuccess, _BatchGetDeploymentGroupsResponseSuccess, _BatchGetDeploymentInstancesResponseSuccess, _BatchGetDeploymentTargetsResponseSuccess, _BatchGetDeploymentsResponseSuccess, _BatchGetOnPremisesInstancesResponseSuccess, _CreateApplicationResponseSuccess, _CreateDeploymentConfigResponseSuccess, _CreateDeploymentGroupResponseSuccess, _CreateDeploymentResponseSuccess, _DeleteDeploymentGroupResponseSuccess, _DeleteGitHubAccountTokenResponseSuccess, _DeleteResourcesByExternalIdResponseSuccess, _GetApplicationResponseSuccess, _GetApplicationRevisionResponseSuccess, _GetDeploymentConfigResponseSuccess, _GetDeploymentGroupResponseSuccess, _GetDeploymentInstanceResponseSuccess, _GetDeploymentResponseSuccess, _GetDeploymentTargetResponseSuccess, _GetOnPremisesInstanceResponseSuccess, _ListApplicationRevisionsResponseSuccess, _ListApplicationsResponseSuccess, _ListDeploymentConfigsResponseSuccess, _ListDeploymentGroupsResponseSuccess, _ListDeploymentInstancesResponseSuccess, _ListDeploymentTargetsResponseSuccess, _ListDeploymentsResponseSuccess, _ListGitHubAccountTokenNamesResponseSuccess, _ListOnPremisesInstancesResponseSuccess, _ListTagsForResourceResponseSuccess, _PutLifecycleEventHookExecutionStatusResponseSuccess, _StopDeploymentResponseSuccess, _TagResourceResponseSuccess, _UntagResourceResponseSuccess, _UpdateDeploymentGroupResponseSuccess
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#add_tags_to_on_premises_instances(params = {}) ⇒ Struct
Adds tags to on-premises instances.
-
#batch_get_application_revisions(params = {}) ⇒ Types::BatchGetApplicationRevisionsOutput
Gets information about one or more application revisions.
-
#batch_get_applications(params = {}) ⇒ Types::BatchGetApplicationsOutput
Gets information about one or more applications.
-
#batch_get_deployment_groups(params = {}) ⇒ Types::BatchGetDeploymentGroupsOutput
Gets information about one or more deployment groups.
-
#batch_get_deployment_instances(params = {}) ⇒ Types::BatchGetDeploymentInstancesOutput
This method works, but is deprecated. -
#batch_get_deployment_targets(params = {}) ⇒ Types::BatchGetDeploymentTargetsOutput
Returns an array of one or more targets associated with a deployment.
-
#batch_get_deployments(params = {}) ⇒ Types::BatchGetDeploymentsOutput
Gets information about one or more deployments.
-
#batch_get_on_premises_instances(params = {}) ⇒ Types::BatchGetOnPremisesInstancesOutput
Gets information about one or more on-premises instances.
-
#continue_deployment(params = {}) ⇒ Struct
For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse.
-
#create_application(params = {}) ⇒ Types::CreateApplicationOutput
Creates an application.
-
#create_deployment(params = {}) ⇒ Types::CreateDeploymentOutput
Deploys an application revision through the specified deployment group.
-
#create_deployment_config(params = {}) ⇒ Types::CreateDeploymentConfigOutput
Creates a deployment configuration.
-
#create_deployment_group(params = {}) ⇒ Types::CreateDeploymentGroupOutput
Creates a deployment group to which application revisions are deployed.
-
#delete_application(params = {}) ⇒ Struct
Deletes an application.
-
#delete_deployment_config(params = {}) ⇒ Struct
Deletes a deployment configuration.
-
#delete_deployment_group(params = {}) ⇒ Types::DeleteDeploymentGroupOutput
Deletes a deployment group.
-
#delete_git_hub_account_token(params = {}) ⇒ Types::DeleteGitHubAccountTokenOutput
Deletes a GitHub account connection.
-
#delete_resources_by_external_id(params = {}) ⇒ Struct
Deletes resources linked to an external ID.
-
#deregister_on_premises_instance(params = {}) ⇒ Struct
Deregisters an on-premises instance.
-
#get_application(params = {}) ⇒ Types::GetApplicationOutput
Gets information about an application.
-
#get_application_revision(params = {}) ⇒ Types::GetApplicationRevisionOutput
Gets information about an application revision.
-
#get_deployment(params = {}) ⇒ Types::GetDeploymentOutput
Gets information about a deployment.
-
#get_deployment_config(params = {}) ⇒ Types::GetDeploymentConfigOutput
Gets information about a deployment configuration.
-
#get_deployment_group(params = {}) ⇒ Types::GetDeploymentGroupOutput
Gets information about a deployment group.
-
#get_deployment_instance(params = {}) ⇒ Types::GetDeploymentInstanceOutput
Gets information about an instance as part of a deployment.
-
#get_deployment_target(params = {}) ⇒ Types::GetDeploymentTargetOutput
Returns information about a deployment target.
-
#get_on_premises_instance(params = {}) ⇒ Types::GetOnPremisesInstanceOutput
Gets information about an on-premises instance.
-
#list_application_revisions(params = {}) ⇒ Types::ListApplicationRevisionsOutput
Lists information about revisions for an application.
-
#list_applications(params = {}) ⇒ Types::ListApplicationsOutput
Lists the applications registered with the user or Amazon Web Services account.
-
#list_deployment_configs(params = {}) ⇒ Types::ListDeploymentConfigsOutput
Lists the deployment configurations with the user or Amazon Web Services account.
-
#list_deployment_groups(params = {}) ⇒ Types::ListDeploymentGroupsOutput
Lists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account.
-
#list_deployment_instances(params = {}) ⇒ Types::ListDeploymentInstancesOutput
The newer BatchGetDeploymentTargetsshould be used instead because it works with all compute types. -
#list_deployment_targets(params = {}) ⇒ Types::ListDeploymentTargetsOutput
Returns an array of target IDs that are associated a deployment.
-
#list_deployments(params = {}) ⇒ Types::ListDeploymentsOutput
Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.
-
#list_git_hub_account_token_names(params = {}) ⇒ Types::ListGitHubAccountTokenNamesOutput
Lists the names of stored connections to GitHub accounts.
-
#list_on_premises_instances(params = {}) ⇒ Types::ListOnPremisesInstancesOutput
Gets a list of names for one or more on-premises instances.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN).
-
#put_lifecycle_event_hook_execution_status(params = {}) ⇒ Types::PutLifecycleEventHookExecutionStatusOutput
Sets the result of a Lambda validation function.
-
#register_application_revision(params = {}) ⇒ Struct
Registers with CodeDeploy a revision for the specified application.
-
#register_on_premises_instance(params = {}) ⇒ Struct
Registers an on-premises instance.
-
#remove_tags_from_on_premises_instances(params = {}) ⇒ Struct
Removes one or more tags from one or more on-premises instances.
-
#skip_wait_time_for_instance_termination(params = {}) ⇒ Struct
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
-
#stop_deployment(params = {}) ⇒ Types::StopDeploymentOutput
Attempts to stop an ongoing deployment.
-
#tag_resource(params = {}) ⇒ Struct
Associates the list of tags in the input
Tagsparameter with the resource identified by theResourceArninput parameter. -
#untag_resource(params = {}) ⇒ Struct
Disassociates a resource from a list of tags.
-
#update_application(params = {}) ⇒ Struct
Changes the name of an application.
-
#update_deployment_group(params = {}) ⇒ Types::UpdateDeploymentGroupOutput
Changes information about a deployment group.
Class Method Summary collapse
- .errors_module ⇒ Object private
- .new ⇒ Object
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
486 487 488 |
# File 'lib/aws-sdk-codedeploy/client.rb', line 486 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3854 3855 3856 |
# File 'lib/aws-sdk-codedeploy/client.rb', line 3854 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3857 3858 3859 |
# File 'lib/aws-sdk-codedeploy/client.rb', line 3857 def errors_module Errors end |
.new(credentials:, region:, access_key_id:, account_id:, active_endpoint_cache:, adaptive_retry_wait_to_fill:, auth_scheme_preference:, client_side_monitoring:, client_side_monitoring_client_id:, client_side_monitoring_host:, client_side_monitoring_port:, client_side_monitoring_publisher:, convert_params:, correct_clock_skew:, defaults_mode:, disable_clock_skew_correction:, disable_host_prefix_injection:, disable_request_compression:, endpoint:, endpoint_cache_max_entries:, endpoint_cache_max_threads:, endpoint_cache_poll_interval:, endpoint_discovery:, ignore_configured_endpoint_urls:, log_formatter:, log_level:, logger:, max_attempts:, profile:, request_checksum_calculation:, request_min_compression_size_bytes:, response_checksum_validation:, retry_backoff:, retry_base_delay:, retry_jitter:, retry_limit:, retry_max_delay:, retry_mode:, sdk_ua_app_id:, secret_access_key:, session_token:, sigv4a_signing_region_set:, simple_json:, stub_responses:, telemetry_provider:, token_provider:, use_dualstack_endpoint:, use_fips_endpoint:, validate_params:, endpoint_provider:, http_proxy:, http_open_timeout:, http_read_timeout:, http_idle_timeout:, http_continue_timeout:, ssl_timeout:, http_wire_trace:, ssl_verify_peer:, ssl_ca_bundle:, ssl_ca_directory:, ssl_ca_store:, on_chunk_received:, on_chunk_sent:, raise_response_errors:) ⇒ instance .new(arg0) ⇒ instance
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'sig/client.rbs', line 14
def self.new: (
?credentials: untyped,
?region: String,
?access_key_id: String,
?account_id: String,
?active_endpoint_cache: bool,
?adaptive_retry_wait_to_fill: bool,
?auth_scheme_preference: Array[String],
?client_side_monitoring: bool,
?client_side_monitoring_client_id: String,
?client_side_monitoring_host: String,
?client_side_monitoring_port: Integer,
?client_side_monitoring_publisher: untyped,
?convert_params: bool,
?correct_clock_skew: bool,
?defaults_mode: String,
?disable_clock_skew_correction: bool,
?disable_host_prefix_injection: bool,
?disable_request_compression: bool,
?endpoint: String,
?endpoint_cache_max_entries: Integer,
?endpoint_cache_max_threads: Integer,
?endpoint_cache_poll_interval: Integer,
?endpoint_discovery: bool,
?ignore_configured_endpoint_urls: bool,
?log_formatter: untyped,
?log_level: Symbol,
?logger: untyped,
?max_attempts: Integer,
?profile: String,
?request_checksum_calculation: String,
?request_min_compression_size_bytes: Integer,
?response_checksum_validation: String,
?retry_backoff: Proc,
?retry_base_delay: Float,
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
?retry_limit: Integer,
?retry_max_delay: Integer,
?retry_mode: ("legacy" | "standard" | "adaptive"),
?sdk_ua_app_id: String,
?secret_access_key: String,
?session_token: String,
?sigv4a_signing_region_set: Array[String],
?simple_json: bool,
?stub_responses: untyped,
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
?token_provider: untyped,
?use_dualstack_endpoint: bool,
?use_fips_endpoint: bool,
?validate_params: bool,
?endpoint_provider: untyped,
?http_proxy: String,
?http_open_timeout: (Float | Integer),
?http_read_timeout: (Float | Integer),
?http_idle_timeout: (Float | Integer),
?http_continue_timeout: (Float | Integer),
?ssl_timeout: (Float | Integer | nil),
?http_wire_trace: bool,
?ssl_verify_peer: bool,
?ssl_ca_bundle: String,
?ssl_ca_directory: String,
?ssl_ca_store: String,
?on_chunk_received: Proc,
?on_chunk_sent: Proc,
?raise_response_errors: bool
) -> instance
| (?Hash[Symbol, untyped]) -> instance
|
Instance Method Details
#add_tags_to_on_premises_instances(params = {}) ⇒ Struct
Adds tags to on-premises instances.
84 85 86 87 88 89 90 91 92 93 |
# File 'sig/client.rbs', line 84
def add_tags_to_on_premises_instances: (
tags: Array[
{
key: ::String?,
value: ::String?
}
],
instance_names: Array[::String]
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#batch_get_application_revisions(params = {}) ⇒ Types::BatchGetApplicationRevisionsOutput
Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25.
102 103 104 105 106 107 108 |
# File 'sig/client.rbs', line 102
def batch_get_application_revisions: (
application_name: ::String,
revisions: Array[
Params::revision_location
]
) -> _BatchGetApplicationRevisionsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetApplicationRevisionsResponseSuccess
|
#batch_get_applications(params = {}) ⇒ Types::BatchGetApplicationsOutput
Gets information about one or more applications. The maximum number of applications that can be returned is 100.
115 116 117 118 |
# File 'sig/client.rbs', line 115
def batch_get_applications: (
application_names: Array[::String]
) -> _BatchGetApplicationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetApplicationsResponseSuccess
|
#batch_get_deployment_groups(params = {}) ⇒ Types::BatchGetDeploymentGroupsOutput
Gets information about one or more deployment groups.
126 127 128 129 130 |
# File 'sig/client.rbs', line 126
def batch_get_deployment_groups: (
application_name: ::String,
deployment_group_names: Array[::String]
) -> _BatchGetDeploymentGroupsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetDeploymentGroupsResponseSuccess
|
#batch_get_deployment_instances(params = {}) ⇒ Types::BatchGetDeploymentInstancesOutput
BatchGetDeploymentTargets
instead.
Returns an array of one or more instances associated with a
deployment. This method works with EC2/On-premises and Lambda compute
platforms. The newer BatchGetDeploymentTargets works with all
compute platforms. The maximum number of instances that can be
returned is 25.
138 139 140 141 142 |
# File 'sig/client.rbs', line 138
def batch_get_deployment_instances: (
deployment_id: ::String,
instance_ids: Array[::String]
) -> _BatchGetDeploymentInstancesResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetDeploymentInstancesResponseSuccess
|
#batch_get_deployment_targets(params = {}) ⇒ Types::BatchGetDeploymentTargetsOutput
Returns an array of one or more targets associated with a deployment.
This method works with all compute types and should be used instead of
the deprecated BatchGetDeploymentInstances. The maximum number of
targets that can be returned is 25.
The type of targets returned depends on the deployment's compute platform or deployment method:
-
EC2/On-premises: Information about Amazon EC2 instance targets.
-
Lambda: Information about Lambda functions targets.
-
Amazon ECS: Information about Amazon ECS service targets.
-
CloudFormation: Information about targets of blue/green deployments initiated by a CloudFormation stack update.
149 150 151 152 153 |
# File 'sig/client.rbs', line 149
def batch_get_deployment_targets: (
deployment_id: ::String,
target_ids: Array[::String]
) -> _BatchGetDeploymentTargetsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetDeploymentTargetsResponseSuccess
|
#batch_get_deployments(params = {}) ⇒ Types::BatchGetDeploymentsOutput
Gets information about one or more deployments. The maximum number of deployments that can be returned is 25.
160 161 162 163 |
# File 'sig/client.rbs', line 160
def batch_get_deployments: (
deployment_ids: Array[::String]
) -> _BatchGetDeploymentsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetDeploymentsResponseSuccess
|
#batch_get_on_premises_instances(params = {}) ⇒ Types::BatchGetOnPremisesInstancesOutput
Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.
170 171 172 173 |
# File 'sig/client.rbs', line 170
def batch_get_on_premises_instances: (
instance_names: Array[::String]
) -> _BatchGetOnPremisesInstancesResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetOnPremisesInstancesResponseSuccess
|
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 |
# File 'lib/aws-sdk-codedeploy/client.rb', line 3714 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::CodeDeploy') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-codedeploy' context[:gem_version] = '1.118.0' Seahorse::Client::Request.new(handlers, context) end |
#continue_deployment(params = {}) ⇒ Struct
For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse. (Traffic rerouting, which is achieved by registering instances in the replacement environment with the load balancer, can start as soon as all instances have a status of Ready.)
176 177 178 179 180 |
# File 'sig/client.rbs', line 176
def continue_deployment: (
?deployment_id: ::String,
?deployment_wait_type: ("READY_WAIT" | "TERMINATION_WAIT")
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#create_application(params = {}) ⇒ Types::CreateApplicationOutput
Creates an application.
187 188 189 190 191 192 193 194 195 196 197 |
# File 'sig/client.rbs', line 187
def create_application: (
application_name: ::String,
?compute_platform: ("Server" | "Lambda" | "ECS"),
?tags: Array[
{
key: ::String?,
value: ::String?
}
]
) -> _CreateApplicationResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateApplicationResponseSuccess
|
#create_deployment(params = {}) ⇒ Types::CreateDeploymentOutput
Deploys an application revision through the specified deployment group.
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'sig/client.rbs', line 204
def create_deployment: (
application_name: ::String,
?deployment_group_name: ::String,
?revision: Params::revision_location,
?deployment_config_name: ::String,
?description: ::String,
?ignore_application_stop_failures: bool,
?target_instances: {
tag_filters: Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
]?,
auto_scaling_groups: Array[::String]?,
ec2_tag_set: {
ec2_tag_set_list: Array[
Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
]
]?
}?
},
?auto_rollback_configuration: {
enabled: bool?,
events: Array[("DEPLOYMENT_FAILURE" | "DEPLOYMENT_STOP_ON_ALARM" | "DEPLOYMENT_STOP_ON_REQUEST")]?
},
?update_outdated_instances_only: bool,
?file_exists_behavior: ("DISALLOW" | "OVERWRITE" | "RETAIN"),
?deployment_mode: ("STANDARD" | "RESTART"),
?override_alarm_configuration: {
enabled: bool?,
ignore_poll_alarm_failure: bool?,
alarms: Array[
{
name: ::String?
}
]?
},
?ec2_deployment_options: {
auto_scaling_group_processes_to_suspend: Array[("Terminate" | "AZRebalance" | "InstanceRefresh" | "ScheduledActions")]?
}
) -> _CreateDeploymentResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDeploymentResponseSuccess
|
#create_deployment_config(params = {}) ⇒ Types::CreateDeploymentConfigOutput
Creates a deployment configuration.
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 |
# File 'sig/client.rbs', line 259
def create_deployment_config: (
deployment_config_name: ::String,
?minimum_healthy_hosts: {
type: ("HOST_COUNT" | "FLEET_PERCENT")?,
value: ::Integer?
},
?traffic_routing_config: {
type: ("TimeBasedCanary" | "TimeBasedLinear" | "AllAtOnce")?,
time_based_canary: {
canary_percentage: ::Integer?,
canary_interval: ::Integer?
}?,
time_based_linear: {
linear_percentage: ::Integer?,
linear_interval: ::Integer?
}?
},
?compute_platform: ("Server" | "Lambda" | "ECS"),
?zonal_config: {
first_zone_monitor_duration_in_seconds: ::Integer?,
monitor_duration_in_seconds: ::Integer?,
minimum_healthy_hosts_per_zone: {
type: ("HOST_COUNT" | "FLEET_PERCENT")?,
value: ::Integer?
}?
}
) -> _CreateDeploymentConfigResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDeploymentConfigResponseSuccess
|
#create_deployment_group(params = {}) ⇒ Types::CreateDeploymentGroupOutput
Creates a deployment group to which application revisions are deployed.
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 |
# File 'sig/client.rbs', line 293
def create_deployment_group: (
application_name: ::String,
deployment_group_name: ::String,
?deployment_config_name: ::String,
?ec2_tag_filters: Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
],
?on_premises_instance_tag_filters: Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
],
?auto_scaling_groups: Array[::String],
service_role_arn: ::String,
?trigger_configurations: Array[
{
trigger_name: ::String?,
trigger_target_arn: ::String?,
trigger_events: Array[("DeploymentStart" | "DeploymentSuccess" | "DeploymentFailure" | "DeploymentStop" | "DeploymentRollback" | "DeploymentReady" | "InstanceStart" | "InstanceSuccess" | "InstanceFailure" | "InstanceReady")]?
}
],
?alarm_configuration: {
enabled: bool?,
ignore_poll_alarm_failure: bool?,
alarms: Array[
{
name: ::String?
}
]?
},
?auto_rollback_configuration: {
enabled: bool?,
events: Array[("DEPLOYMENT_FAILURE" | "DEPLOYMENT_STOP_ON_ALARM" | "DEPLOYMENT_STOP_ON_REQUEST")]?
},
?outdated_instances_strategy: ("UPDATE" | "IGNORE"),
?deployment_style: {
deployment_type: ("IN_PLACE" | "BLUE_GREEN")?,
deployment_option: ("WITH_TRAFFIC_CONTROL" | "WITHOUT_TRAFFIC_CONTROL")?
},
?blue_green_deployment_configuration: Params::blue_green_deployment_configuration,
?load_balancer_info: Params::load_balancer_info,
?ec2_tag_set: {
ec2_tag_set_list: Array[
Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
]
]?
},
?ecs_services: Array[
{
service_name: ::String?,
cluster_name: ::String?
}
],
?on_premises_tag_set: {
on_premises_tag_set_list: Array[
Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
]
]?
},
?tags: Array[
{
key: ::String?,
value: ::String?
}
],
?ec2_deployment_options: {
auto_scaling_group_processes_to_suspend: Array[("Terminate" | "AZRebalance" | "InstanceRefresh" | "ScheduledActions")]?
},
?termination_hook_enabled: bool
) -> _CreateDeploymentGroupResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDeploymentGroupResponseSuccess
|
#delete_application(params = {}) ⇒ Struct
Deletes an application.
382 383 384 385 |
# File 'sig/client.rbs', line 382
def delete_application: (
application_name: ::String
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#delete_deployment_config(params = {}) ⇒ Struct
Deletes a deployment configuration.
388 389 390 391 |
# File 'sig/client.rbs', line 388
def delete_deployment_config: (
deployment_config_name: ::String
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#delete_deployment_group(params = {}) ⇒ Types::DeleteDeploymentGroupOutput
Deletes a deployment group.
398 399 400 401 402 |
# File 'sig/client.rbs', line 398
def delete_deployment_group: (
application_name: ::String,
deployment_group_name: ::String
) -> _DeleteDeploymentGroupResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteDeploymentGroupResponseSuccess
|
#delete_git_hub_account_token(params = {}) ⇒ Types::DeleteGitHubAccountTokenOutput
Deletes a GitHub account connection.
409 410 411 412 |
# File 'sig/client.rbs', line 409
def delete_git_hub_account_token: (
?token_name: ::String
) -> _DeleteGitHubAccountTokenResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteGitHubAccountTokenResponseSuccess
|
#delete_resources_by_external_id(params = {}) ⇒ Struct
Deletes resources linked to an external ID. This action only applies if you have configured blue/green deployments through CloudFormation.
418 419 420 421 |
# File 'sig/client.rbs', line 418
def delete_resources_by_external_id: (
?external_id: ::String
) -> _DeleteResourcesByExternalIdResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteResourcesByExternalIdResponseSuccess
|
#deregister_on_premises_instance(params = {}) ⇒ Struct
Deregisters an on-premises instance.
424 425 426 427 |
# File 'sig/client.rbs', line 424
def deregister_on_premises_instance: (
instance_name: ::String
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#get_application(params = {}) ⇒ Types::GetApplicationOutput
Gets information about an application.
434 435 436 437 |
# File 'sig/client.rbs', line 434
def get_application: (
application_name: ::String
) -> _GetApplicationResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetApplicationResponseSuccess
|
#get_application_revision(params = {}) ⇒ Types::GetApplicationRevisionOutput
Gets information about an application revision.
446 447 448 449 450 |
# File 'sig/client.rbs', line 446
def get_application_revision: (
application_name: ::String,
revision: Params::revision_location
) -> _GetApplicationRevisionResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetApplicationRevisionResponseSuccess
|
#get_deployment(params = {}) ⇒ Types::GetDeploymentOutput
Gets information about a deployment.
content property of the appSpecContent object in the returned
revision is always null. Use GetApplicationRevision and the sha256
property of the returned appSpecContent object to get the content of
the deployment’s AppSpec file.
The following waiters are defined for this operation (see #wait_until for detailed usage):
* deployment_successful
457 458 459 460 |
# File 'sig/client.rbs', line 457
def get_deployment: (
deployment_id: ::String
) -> _GetDeploymentResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDeploymentResponseSuccess
|
#get_deployment_config(params = {}) ⇒ Types::GetDeploymentConfigOutput
Gets information about a deployment configuration.
467 468 469 470 |
# File 'sig/client.rbs', line 467
def get_deployment_config: (
deployment_config_name: ::String
) -> _GetDeploymentConfigResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDeploymentConfigResponseSuccess
|
#get_deployment_group(params = {}) ⇒ Types::GetDeploymentGroupOutput
Gets information about a deployment group.
477 478 479 480 481 |
# File 'sig/client.rbs', line 477
def get_deployment_group: (
application_name: ::String,
deployment_group_name: ::String
) -> _GetDeploymentGroupResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDeploymentGroupResponseSuccess
|
#get_deployment_instance(params = {}) ⇒ Types::GetDeploymentInstanceOutput
Gets information about an instance as part of a deployment.
488 489 490 491 492 |
# File 'sig/client.rbs', line 488
def get_deployment_instance: (
deployment_id: ::String,
instance_id: ::String
) -> _GetDeploymentInstanceResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDeploymentInstanceResponseSuccess
|
#get_deployment_target(params = {}) ⇒ Types::GetDeploymentTargetOutput
Returns information about a deployment target.
499 500 501 502 503 |
# File 'sig/client.rbs', line 499
def get_deployment_target: (
deployment_id: ::String,
target_id: ::String
) -> _GetDeploymentTargetResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDeploymentTargetResponseSuccess
|
#get_on_premises_instance(params = {}) ⇒ Types::GetOnPremisesInstanceOutput
Gets information about an on-premises instance.
510 511 512 513 |
# File 'sig/client.rbs', line 510
def get_on_premises_instance: (
instance_name: ::String
) -> _GetOnPremisesInstanceResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetOnPremisesInstanceResponseSuccess
|
#list_application_revisions(params = {}) ⇒ Types::ListApplicationRevisionsOutput
Lists information about revisions for an application.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
521 522 523 524 525 526 527 528 529 530 |
# File 'sig/client.rbs', line 521
def list_application_revisions: (
application_name: ::String,
?sort_by: ("registerTime" | "firstUsedTime" | "lastUsedTime"),
?sort_order: ("ascending" | "descending"),
?s3_bucket: ::String,
?s3_key_prefix: ::String,
?deployed: ("include" | "exclude" | "ignore"),
?next_token: ::String
) -> _ListApplicationRevisionsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListApplicationRevisionsResponseSuccess
|
#list_applications(params = {}) ⇒ Types::ListApplicationsOutput
Lists the applications registered with the user or Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
538 539 540 541 |
# File 'sig/client.rbs', line 538
def list_applications: (
?next_token: ::String
) -> _ListApplicationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListApplicationsResponseSuccess
|
#list_deployment_configs(params = {}) ⇒ Types::ListDeploymentConfigsOutput
Lists the deployment configurations with the user or Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
549 550 551 552 |
# File 'sig/client.rbs', line 549
def list_deployment_configs: (
?next_token: ::String
) -> _ListDeploymentConfigsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDeploymentConfigsResponseSuccess
|
#list_deployment_groups(params = {}) ⇒ Types::ListDeploymentGroupsOutput
Lists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
561 562 563 564 565 |
# File 'sig/client.rbs', line 561
def list_deployment_groups: (
application_name: ::String,
?next_token: ::String
) -> _ListDeploymentGroupsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDeploymentGroupsResponseSuccess
|
#list_deployment_instances(params = {}) ⇒ Types::ListDeploymentInstancesOutput
BatchGetDeploymentTargets should be used instead because
it works with all compute types. ListDeploymentInstances throws an
exception if it is used with a compute platform other than
EC2/On-premises or Lambda.
Lists the instance for a deployment associated with the user or Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
573 574 575 576 577 578 579 |
# File 'sig/client.rbs', line 573
def list_deployment_instances: (
deployment_id: ::String,
?next_token: ::String,
?instance_status_filter: Array[("Pending" | "InProgress" | "Succeeded" | "Failed" | "Skipped" | "Unknown" | "Ready")],
?instance_type_filter: Array[("Blue" | "Green")]
) -> _ListDeploymentInstancesResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDeploymentInstancesResponseSuccess
|
#list_deployment_targets(params = {}) ⇒ Types::ListDeploymentTargetsOutput
Returns an array of target IDs that are associated a deployment.
587 588 589 590 591 592 |
# File 'sig/client.rbs', line 587
def list_deployment_targets: (
deployment_id: ::String,
?next_token: ::String,
?target_filters: Hash[("TargetStatus" | "ServerInstanceLabel"), Array[::String]]
) -> _ListDeploymentTargetsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDeploymentTargetsResponseSuccess
|
#list_deployments(params = {}) ⇒ Types::ListDeploymentsOutput
Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
600 601 602 603 604 605 606 607 608 609 610 611 |
# File 'sig/client.rbs', line 600
def list_deployments: (
?application_name: ::String,
?deployment_group_name: ::String,
?external_id: ::String,
?include_only_statuses: Array[("Created" | "Queued" | "InProgress" | "Baking" | "Succeeded" | "Failed" | "Stopped" | "Ready")],
?create_time_range: {
start: ::Time?,
end: ::Time?
},
?next_token: ::String
) -> _ListDeploymentsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDeploymentsResponseSuccess
|
#list_git_hub_account_token_names(params = {}) ⇒ Types::ListGitHubAccountTokenNamesOutput
Lists the names of stored connections to GitHub accounts.
619 620 621 622 |
# File 'sig/client.rbs', line 619
def list_git_hub_account_token_names: (
?next_token: ::String
) -> _ListGitHubAccountTokenNamesResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListGitHubAccountTokenNamesResponseSuccess
|
#list_on_premises_instances(params = {}) ⇒ Types::ListOnPremisesInstancesOutput
Gets a list of names for one or more on-premises instances.
Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.
630 631 632 633 634 635 636 637 638 639 640 641 |
# File 'sig/client.rbs', line 630
def list_on_premises_instances: (
?registration_status: ("Registered" | "Deregistered"),
?tag_filters: Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
],
?next_token: ::String
) -> _ListOnPremisesInstancesResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListOnPremisesInstancesResponseSuccess
|
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN). Tags are used to organize and categorize your CodeDeploy resources.
649 650 651 652 653 |
# File 'sig/client.rbs', line 649
def list_tags_for_resource: (
resource_arn: ::String,
?next_token: ::String
) -> _ListTagsForResourceResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
|
#put_lifecycle_event_hook_execution_status(params = {}) ⇒ Types::PutLifecycleEventHookExecutionStatusOutput
Sets the result of a Lambda validation function. The function
validates lifecycle hooks during a deployment that uses the Lambda or
Amazon ECS compute platform. For Lambda deployments, the available
lifecycle hooks are BeforeAllowTraffic and AfterAllowTraffic. For
Amazon ECS deployments, the available lifecycle hooks are
BeforeInstall, AfterInstall, AfterAllowTestTraffic,
BeforeAllowTraffic, and AfterAllowTraffic. Lambda validation
functions return Succeeded or Failed. For more information, see
AppSpec 'hooks' Section for an Lambda Deployment and AppSpec
'hooks' Section for an Amazon ECS Deployment.
660 661 662 663 664 665 |
# File 'sig/client.rbs', line 660
def put_lifecycle_event_hook_execution_status: (
?deployment_id: ::String,
?lifecycle_event_hook_execution_id: ::String,
?status: ("Pending" | "InProgress" | "Succeeded" | "Failed" | "Skipped" | "Unknown")
) -> _PutLifecycleEventHookExecutionStatusResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutLifecycleEventHookExecutionStatusResponseSuccess
|
#register_application_revision(params = {}) ⇒ Struct
Registers with CodeDeploy a revision for the specified application.
668 669 670 671 672 673 |
# File 'sig/client.rbs', line 668
def register_application_revision: (
application_name: ::String,
?description: ::String,
revision: Params::revision_location
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#register_on_premises_instance(params = {}) ⇒ Struct
Registers an on-premises instance.
676 677 678 679 680 681 |
# File 'sig/client.rbs', line 676
def register_on_premises_instance: (
instance_name: ::String,
?iam_session_arn: ::String,
?iam_user_arn: ::String
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#remove_tags_from_on_premises_instances(params = {}) ⇒ Struct
Removes one or more tags from one or more on-premises instances.
684 685 686 687 688 689 690 691 692 693 |
# File 'sig/client.rbs', line 684
def remove_tags_from_on_premises_instances: (
tags: Array[
{
key: ::String?,
value: ::String?
}
],
instance_names: Array[::String]
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#skip_wait_time_for_instance_termination(params = {}) ⇒ Struct
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
696 697 698 699 |
# File 'sig/client.rbs', line 696
def skip_wait_time_for_instance_termination: (
?deployment_id: ::String
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#stop_deployment(params = {}) ⇒ Types::StopDeploymentOutput
Attempts to stop an ongoing deployment.
707 708 709 710 711 |
# File 'sig/client.rbs', line 707
def stop_deployment: (
deployment_id: ::String,
?auto_rollback_enabled: bool
) -> _StopDeploymentResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopDeploymentResponseSuccess
|
#tag_resource(params = {}) ⇒ Struct
Associates the list of tags in the input Tags parameter with the
resource identified by the ResourceArn input parameter.
717 718 719 720 721 722 723 724 725 726 |
# File 'sig/client.rbs', line 717
def tag_resource: (
resource_arn: ::String,
tags: Array[
{
key: ::String?,
value: ::String?
}
]
) -> _TagResourceResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
|
#untag_resource(params = {}) ⇒ Struct
Disassociates a resource from a list of tags. The resource is
identified by the ResourceArn input parameter. The tags are
identified by the list of keys in the TagKeys input parameter.
732 733 734 735 736 |
# File 'sig/client.rbs', line 732
def untag_resource: (
resource_arn: ::String,
tag_keys: Array[::String]
) -> _UntagResourceResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
|
#update_application(params = {}) ⇒ Struct
Changes the name of an application.
739 740 741 742 743 |
# File 'sig/client.rbs', line 739
def update_application: (
?application_name: ::String,
?new_application_name: ::String
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
#update_deployment_group(params = {}) ⇒ Types::UpdateDeploymentGroupOutput
Changes information about a deployment group.
750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 |
# File 'sig/client.rbs', line 750
def update_deployment_group: (
application_name: ::String,
current_deployment_group_name: ::String,
?new_deployment_group_name: ::String,
?deployment_config_name: ::String,
?ec2_tag_filters: Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
],
?on_premises_instance_tag_filters: Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
],
?auto_scaling_groups: Array[::String],
?service_role_arn: ::String,
?trigger_configurations: Array[
{
trigger_name: ::String?,
trigger_target_arn: ::String?,
trigger_events: Array[("DeploymentStart" | "DeploymentSuccess" | "DeploymentFailure" | "DeploymentStop" | "DeploymentRollback" | "DeploymentReady" | "InstanceStart" | "InstanceSuccess" | "InstanceFailure" | "InstanceReady")]?
}
],
?alarm_configuration: {
enabled: bool?,
ignore_poll_alarm_failure: bool?,
alarms: Array[
{
name: ::String?
}
]?
},
?auto_rollback_configuration: {
enabled: bool?,
events: Array[("DEPLOYMENT_FAILURE" | "DEPLOYMENT_STOP_ON_ALARM" | "DEPLOYMENT_STOP_ON_REQUEST")]?
},
?outdated_instances_strategy: ("UPDATE" | "IGNORE"),
?deployment_style: {
deployment_type: ("IN_PLACE" | "BLUE_GREEN")?,
deployment_option: ("WITH_TRAFFIC_CONTROL" | "WITHOUT_TRAFFIC_CONTROL")?
},
?blue_green_deployment_configuration: Params::blue_green_deployment_configuration,
?load_balancer_info: Params::load_balancer_info,
?ec2_tag_set: {
ec2_tag_set_list: Array[
Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
]
]?
},
?ecs_services: Array[
{
service_name: ::String?,
cluster_name: ::String?
}
],
?on_premises_tag_set: {
on_premises_tag_set_list: Array[
Array[
{
key: ::String?,
value: ::String?,
type: ("KEY_ONLY" | "VALUE_ONLY" | "KEY_AND_VALUE")?
}
]
]?
},
?ec2_deployment_options: {
auto_scaling_group_processes_to_suspend: Array[("Terminate" | "AZRebalance" | "InstanceRefresh" | "ScheduledActions")]?
},
?termination_hook_enabled: bool
) -> _UpdateDeploymentGroupResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateDeploymentGroupResponseSuccess
|
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| deployment_successful | #get_deployment | 15 | 120 |
834 835 836 837 |
# File 'sig/client.rbs', line 834
def wait_until: (:deployment_successful waiter_name,
deployment_id: ::String
) -> Client::_GetDeploymentResponseSuccess
| (:deployment_successful waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetDeploymentResponseSuccess
|
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3828 3829 3830 |
# File 'lib/aws-sdk-codedeploy/client.rb', line 3828 def waiter_names waiters.keys end |