Class: AWSCDK::EventSchemas::CfnDiscovererProps

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

Overview

Properties for defining a CfnDiscoverer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_arn:, cross_account: nil, description: nil, tags: nil) ⇒ CfnDiscovererProps

Returns a new instance of CfnDiscovererProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'event_schemas/cfn_discoverer_props.rb', line 13

def initialize(source_arn:, cross_account: nil, description: nil, tags: nil)
  @source_arn = source_arn
  Jsii::Type.check_type(@source_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19ldmVudHMuSUV2ZW50QnVzUmVmIn1dfX0=")), "sourceArn")
  @cross_account = 
  Jsii::Type.check_type(@cross_account, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "crossAccount") unless @cross_account.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::EventSchemas::CfnDiscoverer::TagsEntryProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ldmVudHNjaGVtYXMuQ2ZuRGlzY292ZXJlci5UYWdzRW50cnlQcm9wZXJ0eSJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#cross_accountBoolean, ... (readonly)

Note:

Default: - true

Allows for the discovery of the event schemas that are sent to the event bus from another account.



34
35
36
# File 'event_schemas/cfn_discoverer_props.rb', line 34

def 
  @cross_account
end

#descriptionString? (readonly)

A description for the discoverer.



39
40
41
# File 'event_schemas/cfn_discoverer_props.rb', line 39

def description
  @description
end

#source_arnString, AWSCDK::Interfaces::AWSEvents::IEventBusRef (readonly)

The ARN of the event bus.



28
29
30
# File 'event_schemas/cfn_discoverer_props.rb', line 28

def source_arn
  @source_arn
end

#tagsArray<AWSCDK::EventSchemas::CfnDiscoverer::TagsEntryProperty>? (readonly)

Tags associated with the resource.



44
45
46
# File 'event_schemas/cfn_discoverer_props.rb', line 44

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



46
47
48
49
50
51
52
53
# File 'event_schemas/cfn_discoverer_props.rb', line 46

def self.jsii_properties
  {
    :source_arn => "sourceArn",
    :cross_account => "crossAccount",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



55
56
57
58
59
60
61
62
63
64
# File 'event_schemas/cfn_discoverer_props.rb', line 55

def to_jsii
  result = {}
  result.merge!({
    "sourceArn" => @source_arn,
    "crossAccount" => @cross_account,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end