Class: AWSCDK::CustomerProfiles::CfnRecommender::RecommenderUpdateProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_recommender.rb

Overview

Information about the latest recommender update.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(creation_date_time: nil, failure_reason: nil, last_updated_date_time: nil, recommender_config: nil, status: nil) ⇒ RecommenderUpdateProperty

Returns a new instance of RecommenderUpdateProperty.

Parameters:

  • creation_date_time (String, nil) (defaults to: nil)

    The timestamp of when the update was created.

  • failure_reason (String, nil) (defaults to: nil)

    The reason for update failure.

  • last_updated_date_time (String, nil) (defaults to: nil)

    The timestamp of when the update was last modified.

  • recommender_config (AWSCDK::IResolvable, AWSCDK::CustomerProfiles::CfnRecommender::RecommenderConfigProperty, nil) (defaults to: nil)

    Configuration for the recommender.

  • status (String, nil) (defaults to: nil)

    The status of the recommender.



815
816
817
818
819
820
821
822
823
824
825
826
# File 'customer_profiles/cfn_recommender.rb', line 815

def initialize(creation_date_time: nil, failure_reason: nil, last_updated_date_time: nil, recommender_config: nil, status: nil)
  @creation_date_time = creation_date_time
  Jsii::Type.check_type(@creation_date_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "creationDateTime") unless @creation_date_time.nil?
  @failure_reason = failure_reason
  Jsii::Type.check_type(@failure_reason, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "failureReason") unless @failure_reason.nil?
  @last_updated_date_time = last_updated_date_time
  Jsii::Type.check_type(@last_updated_date_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUpdatedDateTime") unless @last_updated_date_time.nil?
  @recommender_config = recommender_config.is_a?(Hash) ? ::AWSCDK::CustomerProfiles::CfnRecommender::RecommenderConfigProperty.new(**recommender_config.transform_keys(&:to_sym)) : recommender_config
  Jsii::Type.check_type(@recommender_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jdXN0b21lcnByb2ZpbGVzLkNmblJlY29tbWVuZGVyLlJlY29tbWVuZGVyQ29uZmlnUHJvcGVydHkifV19fQ==")), "recommenderConfig") unless @recommender_config.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
end

Instance Attribute Details

#creation_date_timeString? (readonly)

The timestamp of when the update was created.



832
833
834
# File 'customer_profiles/cfn_recommender.rb', line 832

def creation_date_time
  @creation_date_time
end

#failure_reasonString? (readonly)

The reason for update failure.



837
838
839
# File 'customer_profiles/cfn_recommender.rb', line 837

def failure_reason
  @failure_reason
end

#last_updated_date_timeString? (readonly)

The timestamp of when the update was last modified.



842
843
844
# File 'customer_profiles/cfn_recommender.rb', line 842

def last_updated_date_time
  @last_updated_date_time
end

#recommender_configAWSCDK::IResolvable, ... (readonly)

Configuration for the recommender.



847
848
849
# File 'customer_profiles/cfn_recommender.rb', line 847

def recommender_config
  @recommender_config
end

#statusString? (readonly)

The status of the recommender.



852
853
854
# File 'customer_profiles/cfn_recommender.rb', line 852

def status
  @status
end

Class Method Details

.jsii_propertiesObject



854
855
856
857
858
859
860
861
862
# File 'customer_profiles/cfn_recommender.rb', line 854

def self.jsii_properties
  {
    :creation_date_time => "creationDateTime",
    :failure_reason => "failureReason",
    :last_updated_date_time => "lastUpdatedDateTime",
    :recommender_config => "recommenderConfig",
    :status => "status",
  }
end

Instance Method Details

#to_jsiiObject



864
865
866
867
868
869
870
871
872
873
874
# File 'customer_profiles/cfn_recommender.rb', line 864

def to_jsii
  result = {}
  result.merge!({
    "creationDateTime" => @creation_date_time,
    "failureReason" => @failure_reason,
    "lastUpdatedDateTime" => @last_updated_date_time,
    "recommenderConfig" => @recommender_config,
    "status" => @status,
  })
  result.compact
end