Class: AWSCDK::Glue::CfnUsageProfileProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnUsageProfileProps
- Defined in:
- glue/cfn_usage_profile_props.rb
Overview
Properties for defining a CfnUsageProfile.
Instance Attribute Summary collapse
- #configuration ⇒ AWSCDK::IResolvable, ... readonly
-
#description ⇒ String?
readonly
A description of the usage profile.
-
#name ⇒ String
readonly
The name of the usage profile.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags to be applied to this UsageProfiles.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, configuration: nil, description: nil, tags: nil) ⇒ CfnUsageProfileProps
constructor
A new instance of CfnUsageProfileProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, configuration: nil, description: nil, tags: nil) ⇒ CfnUsageProfileProps
Returns a new instance of CfnUsageProfileProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'glue/cfn_usage_profile_props.rb', line 13 def initialize(name:, configuration: nil, description: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @configuration = configuration.is_a?(Hash) ? ::AWSCDK::Glue::CfnUsageProfile::ProfileConfigurationProperty.new(**configuration.transform_keys(&:to_sym)) : configuration Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19nbHVlLkNmblVzYWdlUHJvZmlsZS5Qcm9maWxlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "configuration") unless @configuration.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#configuration ⇒ AWSCDK::IResolvable, ... (readonly)
31 32 33 |
# File 'glue/cfn_usage_profile_props.rb', line 31 def configuration @configuration end |
#description ⇒ String? (readonly)
A description of the usage profile.
36 37 38 |
# File 'glue/cfn_usage_profile_props.rb', line 36 def description @description end |
#name ⇒ String (readonly)
The name of the usage profile.
28 29 30 |
# File 'glue/cfn_usage_profile_props.rb', line 28 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags to be applied to this UsageProfiles.
41 42 43 |
# File 'glue/cfn_usage_profile_props.rb', line 41 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'glue/cfn_usage_profile_props.rb', line 43 def self.jsii_properties { :name => "name", :configuration => "configuration", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'glue/cfn_usage_profile_props.rb', line 52 def to_jsii result = {} result.merge!({ "name" => @name, "configuration" => @configuration, "description" => @description, "tags" => @tags, }) result.compact end |