Class: AWSCDK::Sagemaker::CfnCluster::ScheduledUpdateConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_cluster.rb

Overview

The configuration object of the schedule that SageMaker follows when updating the AMI.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schedule_expression:, deployment_config: nil) ⇒ ScheduledUpdateConfigProperty

Returns a new instance of ScheduledUpdateConfigProperty.

Parameters:



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_configAWSCDK::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_expressionString (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_propertiesObject



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_jsiiObject



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