Class: AWSCDK::EventSchemas::CfnRegistryProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EventSchemas::CfnRegistryProps
- Defined in:
- event_schemas/cfn_registry_props.rb
Overview
Properties for defining a CfnRegistry.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the registry to be created.
-
#registry_name ⇒ String, ...
readonly
The name of the schema registry.
-
#tags ⇒ Array<AWSCDK::EventSchemas::CfnRegistry::TagsEntryProperty>?
readonly
Tags to associate with the registry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, registry_name: nil, tags: nil) ⇒ CfnRegistryProps
constructor
A new instance of CfnRegistryProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, registry_name: nil, tags: nil) ⇒ CfnRegistryProps
Returns a new instance of CfnRegistryProps.
12 13 14 15 16 17 18 19 |
# File 'event_schemas/cfn_registry_props.rb', line 12 def initialize(description: nil, registry_name: nil, tags: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @registry_name = registry_name Jsii::Type.check_type(@registry_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19ldmVudHNjaGVtYXMuSVJlZ2lzdHJ5UG9saWN5UmVmIn1dfX0=")), "registryName") unless @registry_name.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::EventSchemas::CfnRegistry::TagsEntryProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ldmVudHNjaGVtYXMuQ2ZuUmVnaXN0cnkuVGFnc0VudHJ5UHJvcGVydHkifSwia2luZCI6ImFycmF5In19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
A description of the registry to be created.
25 26 27 |
# File 'event_schemas/cfn_registry_props.rb', line 25 def description @description end |
#registry_name ⇒ String, ... (readonly)
The name of the schema registry.
30 31 32 |
# File 'event_schemas/cfn_registry_props.rb', line 30 def registry_name @registry_name end |
#tags ⇒ Array<AWSCDK::EventSchemas::CfnRegistry::TagsEntryProperty>? (readonly)
Tags to associate with the registry.
35 36 37 |
# File 'event_schemas/cfn_registry_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'event_schemas/cfn_registry_props.rb', line 37 def self.jsii_properties { :description => "description", :registry_name => "registryName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'event_schemas/cfn_registry_props.rb', line 45 def to_jsii result = {} result.merge!({ "description" => @description, "registryName" => @registry_name, "tags" => @tags, }) result.compact end |