Class: AWSCDK::NimbleStudio::CfnLaunchProfile::StreamConfigurationSessionBackupProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
nimble_studio/cfn_launch_profile.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_backups_to_retain: nil, mode: nil) ⇒ StreamConfigurationSessionBackupProperty

Returns a new instance of StreamConfigurationSessionBackupProperty.

Parameters:

  • max_backups_to_retain (Numeric, nil) (defaults to: nil)
  • mode (String, nil) (defaults to: nil)


683
684
685
686
687
688
# File 'nimble_studio/cfn_launch_profile.rb', line 683

def initialize(max_backups_to_retain: nil, mode: nil)
  @max_backups_to_retain = max_backups_to_retain
  Jsii::Type.check_type(@max_backups_to_retain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxBackupsToRetain") unless @max_backups_to_retain.nil?
  @mode = mode
  Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") unless @mode.nil?
end

Instance Attribute Details

#max_backups_to_retainNumeric? (readonly)



692
693
694
# File 'nimble_studio/cfn_launch_profile.rb', line 692

def max_backups_to_retain
  @max_backups_to_retain
end

#modeString? (readonly)



695
696
697
# File 'nimble_studio/cfn_launch_profile.rb', line 695

def mode
  @mode
end

Class Method Details

.jsii_propertiesObject



697
698
699
700
701
702
# File 'nimble_studio/cfn_launch_profile.rb', line 697

def self.jsii_properties
  {
    :max_backups_to_retain => "maxBackupsToRetain",
    :mode => "mode",
  }
end

Instance Method Details

#to_jsiiObject



704
705
706
707
708
709
710
711
# File 'nimble_studio/cfn_launch_profile.rb', line 704

def to_jsii
  result = {}
  result.merge!({
    "maxBackupsToRetain" => @max_backups_to_retain,
    "mode" => @mode,
  })
  result.compact
end