Class: AWSCDK::AppStream::CfnEntitlementProps

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

Overview

Properties for defining a CfnEntitlement.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_visibility:, attributes:, name:, stack_name:, description: nil) ⇒ CfnEntitlementProps

Returns a new instance of CfnEntitlementProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'app_stream/cfn_entitlement_props.rb', line 14

def initialize(app_visibility:, attributes:, name:, stack_name:, description: nil)
  @app_visibility = app_visibility
  Jsii::Type.check_type(@app_visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appVisibility")
  @attributes = attributes
  Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3RyZWFtLkNmbkVudGl0bGVtZW50LkF0dHJpYnV0ZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "attributes")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @stack_name = stack_name
  Jsii::Type.check_type(@stack_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stackName")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#app_visibilityString (readonly)

Specifies whether to entitle all apps or only selected apps.



31
32
33
# File 'app_stream/cfn_entitlement_props.rb', line 31

def app_visibility
  @app_visibility
end

#descriptionString? (readonly)

The description of the entitlement.



51
52
53
# File 'app_stream/cfn_entitlement_props.rb', line 51

def description
  @description
end

#nameString (readonly)

The name of the entitlement.



41
42
43
# File 'app_stream/cfn_entitlement_props.rb', line 41

def name
  @name
end

#stack_nameString (readonly)

The name of the stack.



46
47
48
# File 'app_stream/cfn_entitlement_props.rb', line 46

def stack_name
  @stack_name
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'app_stream/cfn_entitlement_props.rb', line 53

def self.jsii_properties
  {
    :app_visibility => "appVisibility",
    :attributes => "attributes",
    :name => "name",
    :stack_name => "stackName",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'app_stream/cfn_entitlement_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "appVisibility" => @app_visibility,
    "attributes" => @attributes,
    "name" => @name,
    "stackName" => @stack_name,
    "description" => @description,
  })
  result.compact
end