You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CodeDeploy::Types::AutoRollbackConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb

Overview

Note:

When making an API call, you may pass AutoRollbackConfiguration data as a hash:

{
  enabled: false,
  events: ["DEPLOYMENT_FAILURE"], # accepts DEPLOYMENT_FAILURE, DEPLOYMENT_STOP_ON_ALARM, DEPLOYMENT_STOP_ON_REQUEST
}

Information about a configuration for automatically rolling back to a previous version of an application revision when a deployment doesn't complete successfully.

Instance Attribute Summary collapse

Instance Attribute Details

#enabledBoolean

Indicates whether a defined automatic rollback configuration is currently enabled.

Returns:

  • (Boolean)


175
176
177
178
179
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 175

class AutoRollbackConfiguration < Struct.new(
  :enabled,
  :events)
  include Aws::Structure
end

#eventsArray<String>

The event type or types that trigger a rollback.

Returns:

  • (Array<String>)


175
176
177
178
179
# File 'gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/types.rb', line 175

class AutoRollbackConfiguration < Struct.new(
  :enabled,
  :events)
  include Aws::Structure
end