Class: AWSCDK::AppStream::CfnAppBlockProps

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

Overview

Properties for defining a CfnAppBlock.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, source_s3_location:, description: nil, display_name: nil, packaging_type: nil, post_setup_script_details: nil, setup_script_details: nil, tags: nil) ⇒ CfnAppBlockProps

Returns a new instance of CfnAppBlockProps.

Parameters:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'app_stream/cfn_app_block_props.rb', line 17

def initialize(name:, source_s3_location:, description: nil, display_name: nil, packaging_type: nil, post_setup_script_details: nil, setup_script_details: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @source_s3_location = source_s3_location.is_a?(Hash) ? ::AWSCDK::AppStream::CfnAppBlock::S3LocationProperty.new(**source_s3_location.transform_keys(&:to_sym)) : source_s3_location
  Jsii::Type.check_type(@source_s3_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzdHJlYW0uQ2ZuQXBwQmxvY2suUzNMb2NhdGlvblByb3BlcnR5In1dfX0=")), "sourceS3Location")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @display_name = display_name
  Jsii::Type.check_type(@display_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "displayName") unless @display_name.nil?
  @packaging_type = packaging_type
  Jsii::Type.check_type(@packaging_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "packagingType") unless @packaging_type.nil?
  @post_setup_script_details = post_setup_script_details.is_a?(Hash) ? ::AWSCDK::AppStream::CfnAppBlock::ScriptDetailsProperty.new(**post_setup_script_details.transform_keys(&:to_sym)) : post_setup_script_details
  Jsii::Type.check_type(@post_setup_script_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzdHJlYW0uQ2ZuQXBwQmxvY2suU2NyaXB0RGV0YWlsc1Byb3BlcnR5In1dfX0=")), "postSetupScriptDetails") unless @post_setup_script_details.nil?
  @setup_script_details = setup_script_details.is_a?(Hash) ? ::AWSCDK::AppStream::CfnAppBlock::ScriptDetailsProperty.new(**setup_script_details.transform_keys(&:to_sym)) : setup_script_details
  Jsii::Type.check_type(@setup_script_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzdHJlYW0uQ2ZuQXBwQmxvY2suU2NyaXB0RGV0YWlsc1Byb3BlcnR5In1dfX0=")), "setupScriptDetails") unless @setup_script_details.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the app block.



52
53
54
# File 'app_stream/cfn_app_block_props.rb', line 52

def description
  @description
end

#display_nameString? (readonly)

The display name of the app block.



57
58
59
# File 'app_stream/cfn_app_block_props.rb', line 57

def display_name
  @display_name
end

#nameString (readonly)

The name of the app block.

Pattern : ^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,100}$



42
43
44
# File 'app_stream/cfn_app_block_props.rb', line 42

def name
  @name
end

#packaging_typeString? (readonly)

The packaging type of the app block.



62
63
64
# File 'app_stream/cfn_app_block_props.rb', line 62

def packaging_type
  @packaging_type
end

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

The post setup script details of the app block.



67
68
69
# File 'app_stream/cfn_app_block_props.rb', line 67

def post_setup_script_details
  @post_setup_script_details
end

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

The setup script details of the app block.



72
73
74
# File 'app_stream/cfn_app_block_props.rb', line 72

def setup_script_details
  @setup_script_details
end

#source_s3_locationAWSCDK::IResolvable, AWSCDK::AppStream::CfnAppBlock::S3LocationProperty (readonly)

The source S3 location of the app block.



47
48
49
# File 'app_stream/cfn_app_block_props.rb', line 47

def source_s3_location
  @source_s3_location
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags of the app block.



77
78
79
# File 'app_stream/cfn_app_block_props.rb', line 77

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



79
80
81
82
83
84
85
86
87
88
89
90
# File 'app_stream/cfn_app_block_props.rb', line 79

def self.jsii_properties
  {
    :name => "name",
    :source_s3_location => "sourceS3Location",
    :description => "description",
    :display_name => "displayName",
    :packaging_type => "packagingType",
    :post_setup_script_details => "postSetupScriptDetails",
    :setup_script_details => "setupScriptDetails",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'app_stream/cfn_app_block_props.rb', line 92

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "sourceS3Location" => @source_s3_location,
    "description" => @description,
    "displayName" => @display_name,
    "packagingType" => @packaging_type,
    "postSetupScriptDetails" => @post_setup_script_details,
    "setupScriptDetails" => @setup_script_details,
    "tags" => @tags,
  })
  result.compact
end