Class: AWSCDK::AmplifyUIBuilder::CfnThemeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmplifyUIBuilder::CfnThemeProps
- Defined in:
- amplify_ui_builder/cfn_theme_props.rb
Overview
Properties for defining a CfnTheme.
Instance Attribute Summary collapse
-
#app_id ⇒ String?
readonly
The unique ID for the Amplify app associated with the theme.
-
#environment_name ⇒ String?
readonly
The name of the backend environment that is a part of the Amplify app.
-
#name ⇒ String?
readonly
The name of the theme.
-
#overrides ⇒ AWSCDK::IResolvable, ...
readonly
Describes the properties that can be overriden to customize a theme.
-
#tags ⇒ Hash{String => String}?
readonly
One or more key-value pairs to use when tagging the theme.
-
#values ⇒ AWSCDK::IResolvable, ...
readonly
A list of key-value pairs that defines the properties of the theme.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(app_id: nil, environment_name: nil, name: nil, overrides: nil, tags: nil, values: nil) ⇒ CfnThemeProps
constructor
A new instance of CfnThemeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(app_id: nil, environment_name: nil, name: nil, overrides: nil, tags: nil, values: nil) ⇒ CfnThemeProps
Returns a new instance of CfnThemeProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 15 def initialize(app_id: nil, environment_name: nil, name: nil, overrides: nil, tags: nil, values: nil) @app_id = app_id Jsii::Type.check_type(@app_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appId") unless @app_id.nil? @environment_name = environment_name Jsii::Type.check_type(@environment_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentName") unless @environment_name.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @overrides = overrides Jsii::Type.check_type(@overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYW1wbGlmeXVpYnVpbGRlci5DZm5UaGVtZS5UaGVtZVZhbHVlc1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "overrides") unless @overrides.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? @values = values Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYW1wbGlmeXVpYnVpbGRlci5DZm5UaGVtZS5UaGVtZVZhbHVlc1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "values") unless @values.nil? end |
Instance Attribute Details
#app_id ⇒ String? (readonly)
The unique ID for the Amplify app associated with the theme.
34 35 36 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 34 def app_id @app_id end |
#environment_name ⇒ String? (readonly)
The name of the backend environment that is a part of the Amplify app.
39 40 41 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 39 def environment_name @environment_name end |
#name ⇒ String? (readonly)
The name of the theme.
44 45 46 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 44 def name @name end |
#overrides ⇒ AWSCDK::IResolvable, ... (readonly)
Describes the properties that can be overriden to customize a theme.
49 50 51 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 49 def overrides @overrides end |
#tags ⇒ Hash{String => String}? (readonly)
One or more key-value pairs to use when tagging the theme.
54 55 56 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 54 def @tags end |
#values ⇒ AWSCDK::IResolvable, ... (readonly)
A list of key-value pairs that defines the properties of the theme.
59 60 61 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 59 def values @values end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 61 def self.jsii_properties { :app_id => "appId", :environment_name => "environmentName", :name => "name", :overrides => "overrides", :tags => "tags", :values => "values", } end |
Instance Method Details
#to_jsii ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'amplify_ui_builder/cfn_theme_props.rb', line 72 def to_jsii result = {} result.merge!({ "appId" => @app_id, "environmentName" => @environment_name, "name" => @name, "overrides" => @overrides, "tags" => @tags, "values" => @values, }) result.compact end |