Class: AWSCDK::EventSchemas::CfnRegistryProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
event_schemas/cfn_registry_props.rb

Overview

Properties for defining a CfnRegistry.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description: nil, registry_name: nil, tags: nil) ⇒ CfnRegistryProps

Returns a new instance of CfnRegistryProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::EventSchemas::CfnRegistry::TagsEntryProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ldmVudHNjaGVtYXMuQ2ZuUmVnaXN0cnkuVGFnc0VudHJ5UHJvcGVydHkifSwia2luZCI6ImFycmF5In19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (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_nameString, ... (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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