Class: AWSCDK::Sagemaker::CfnCluster::ScheduledUpdateConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnCluster::ScheduledUpdateConfigProperty
- Defined in:
- sagemaker/cfn_cluster.rb
Overview
The configuration object of the schedule that SageMaker follows when updating the AMI.
Instance Attribute Summary collapse
-
#deployment_config ⇒ AWSCDK::IResolvable, ...
readonly
The configuration to use when updating the AMI versions.
-
#schedule_expression ⇒ String
readonly
A cron expression that specifies the schedule that SageMaker follows when updating the AMI.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(schedule_expression:, deployment_config: nil) ⇒ ScheduledUpdateConfigProperty
constructor
A new instance of ScheduledUpdateConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(schedule_expression:, deployment_config: nil) ⇒ ScheduledUpdateConfigProperty
Returns a new instance of ScheduledUpdateConfigProperty.
2033 2034 2035 2036 2037 2038 |
# File 'sagemaker/cfn_cluster.rb', line 2033 def initialize(schedule_expression:, deployment_config: nil) @schedule_expression = schedule_expression Jsii::Type.check_type(@schedule_expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scheduleExpression") @deployment_config = deployment_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnCluster::DeploymentConfigProperty.new(**deployment_config.transform_keys(&:to_sym)) : deployment_config Jsii::Type.check_type(@deployment_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuQ2x1c3Rlci5EZXBsb3ltZW50Q29uZmlnUHJvcGVydHkifV19fQ==")), "deploymentConfig") unless @deployment_config.nil? end |
Instance Attribute Details
#deployment_config ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration to use when updating the AMI versions.
2049 2050 2051 |
# File 'sagemaker/cfn_cluster.rb', line 2049 def deployment_config @deployment_config end |
#schedule_expression ⇒ String (readonly)
A cron expression that specifies the schedule that SageMaker follows when updating the AMI.
2044 2045 2046 |
# File 'sagemaker/cfn_cluster.rb', line 2044 def schedule_expression @schedule_expression end |
Class Method Details
.jsii_properties ⇒ Object
2051 2052 2053 2054 2055 2056 |
# File 'sagemaker/cfn_cluster.rb', line 2051 def self.jsii_properties { :schedule_expression => "scheduleExpression", :deployment_config => "deploymentConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
2058 2059 2060 2061 2062 2063 2064 2065 |
# File 'sagemaker/cfn_cluster.rb', line 2058 def to_jsii result = {} result.merge!({ "scheduleExpression" => @schedule_expression, "deploymentConfig" => @deployment_config, }) result.compact end |