Class: AWSCDK::Sagemaker::CfnEndpoint::AutoRollbackConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnEndpoint::AutoRollbackConfigProperty
- Defined in:
- sagemaker/cfn_endpoint.rb
Overview
Automatic rollback configuration for handling endpoint deployment failures and recovery.
Instance Attribute Summary collapse
-
#alarms ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnEndpoint::AlarmProperty>
readonly
List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alarms:) ⇒ AutoRollbackConfigProperty
constructor
A new instance of AutoRollbackConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(alarms:) ⇒ AutoRollbackConfigProperty
Returns a new instance of AutoRollbackConfigProperty.
645 646 647 648 |
# File 'sagemaker/cfn_endpoint.rb', line 645 def initialize(alarms:) @alarms = alarms Jsii::Type.check_type(@alarms, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbkVuZHBvaW50LkFsYXJtUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "alarms") end |
Instance Attribute Details
#alarms ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnEndpoint::AlarmProperty> (readonly)
List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint.
If any alarms are tripped during a deployment, SageMaker rolls back the deployment.
656 657 658 |
# File 'sagemaker/cfn_endpoint.rb', line 656 def alarms @alarms end |
Class Method Details
.jsii_properties ⇒ Object
658 659 660 661 662 |
# File 'sagemaker/cfn_endpoint.rb', line 658 def self.jsii_properties { :alarms => "alarms", } end |
Instance Method Details
#to_jsii ⇒ Object
664 665 666 667 668 669 670 |
# File 'sagemaker/cfn_endpoint.rb', line 664 def to_jsii result = {} result.merge!({ "alarms" => @alarms, }) result.compact end |