Class: AWSCDK::AppStream::CfnStack::ApplicationSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_stream/cfn_stack.rb

Overview

The persistent application settings for users of a stack.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled:, settings_group: nil) ⇒ ApplicationSettingsProperty

Returns a new instance of ApplicationSettingsProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable)

    Enables or disables persistent application settings for users during their streaming sessions.

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

    The path prefix for the S3 bucket where users’ persistent application settings are stored.



753
754
755
756
757
758
# File 'app_stream/cfn_stack.rb', line 753

def initialize(enabled:, settings_group: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled")
  @settings_group = settings_group
  Jsii::Type.check_type(@settings_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "settingsGroup") unless @settings_group.nil?
end

Instance Attribute Details

#enabledBoolean, AWSCDK::IResolvable (readonly)

Enables or disables persistent application settings for users during their streaming sessions.



764
765
766
# File 'app_stream/cfn_stack.rb', line 764

def enabled
  @enabled
end

#settings_groupString? (readonly)

The path prefix for the S3 bucket where users’ persistent application settings are stored.

You can allow the same persistent application settings to be used across multiple stacks by specifying the same settings group for each stack.



771
772
773
# File 'app_stream/cfn_stack.rb', line 771

def settings_group
  @settings_group
end

Class Method Details

.jsii_propertiesObject



773
774
775
776
777
778
# File 'app_stream/cfn_stack.rb', line 773

def self.jsii_properties
  {
    :enabled => "enabled",
    :settings_group => "settingsGroup",
  }
end

Instance Method Details

#to_jsiiObject



780
781
782
783
784
785
786
787
# File 'app_stream/cfn_stack.rb', line 780

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "settingsGroup" => @settings_group,
  })
  result.compact
end