Class: AWSCDK::Evidently::CfnProject::DataDeliveryObjectProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
evidently/cfn_project.rb

Overview

A structure that contains information about where Evidently is to store evaluation events for longer term storage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_group: nil, s3: nil) ⇒ DataDeliveryObjectProperty

Returns a new instance of DataDeliveryObjectProperty.

Parameters:

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

    If the project stores evaluation events in CloudWatch Logs , this structure stores the log group name.

  • s3 (AWSCDK::IResolvable, AWSCDK::Evidently::CfnProject::S3DestinationProperty, nil) (defaults to: nil)

    If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.



619
620
621
622
623
624
# File 'evidently/cfn_project.rb', line 619

def initialize(log_group: nil, s3: nil)
  @log_group = log_group
  Jsii::Type.check_type(@log_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroup") unless @log_group.nil?
  @s3 = s3.is_a?(Hash) ? ::AWSCDK::Evidently::CfnProject::S3DestinationProperty.new(**s3.transform_keys(&:to_sym)) : s3
  Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ldmlkZW50bHkuQ2ZuUHJvamVjdC5TM0Rlc3RpbmF0aW9uUHJvcGVydHkifV19fQ==")), "s3") unless @s3.nil?
end

Instance Attribute Details

#log_groupString? (readonly)

If the project stores evaluation events in CloudWatch Logs , this structure stores the log group name.



630
631
632
# File 'evidently/cfn_project.rb', line 630

def log_group
  @log_group
end

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

If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.



635
636
637
# File 'evidently/cfn_project.rb', line 635

def s3
  @s3
end

Class Method Details

.jsii_propertiesObject



637
638
639
640
641
642
# File 'evidently/cfn_project.rb', line 637

def self.jsii_properties
  {
    :log_group => "logGroup",
    :s3 => "s3",
  }
end

Instance Method Details

#to_jsiiObject



644
645
646
647
648
649
650
651
# File 'evidently/cfn_project.rb', line 644

def to_jsii
  result = {}
  result.merge!({
    "logGroup" => @log_group,
    "s3" => @s3,
  })
  result.compact
end