Class: AWSCDK::CustomerProfiles::CfnEventStreamProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_event_stream_props.rb

Overview

Properties for defining a CfnEventStream.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_name:, event_stream_name:, uri:, tags: nil) ⇒ CfnEventStreamProps

Returns a new instance of CfnEventStreamProps.

Parameters:

  • domain_name (String)

    The unique name of the domain.

  • event_stream_name (String)

    The name of the event stream.

  • uri (String)

    The StreamARN of the destination to deliver profile events to.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    The tags used to organize, track, or control access for this resource.



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

def initialize(domain_name:, event_stream_name:, uri:, tags: nil)
  @domain_name = domain_name
  Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName")
  @event_stream_name = event_stream_name
  Jsii::Type.check_type(@event_stream_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventStreamName")
  @uri = uri
  Jsii::Type.check_type(@uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "uri")
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#domain_nameString (readonly)

The unique name of the domain.



28
29
30
# File 'customer_profiles/cfn_event_stream_props.rb', line 28

def domain_name
  @domain_name
end

#event_stream_nameString (readonly)

The name of the event stream.



33
34
35
# File 'customer_profiles/cfn_event_stream_props.rb', line 33

def event_stream_name
  @event_stream_name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags used to organize, track, or control access for this resource.



45
46
47
# File 'customer_profiles/cfn_event_stream_props.rb', line 45

def tags
  @tags
end

#uriString (readonly)

The StreamARN of the destination to deliver profile events to.

For example, arn:aws:kinesis:region:account-id:stream/stream-name.



40
41
42
# File 'customer_profiles/cfn_event_stream_props.rb', line 40

def uri
  @uri
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'customer_profiles/cfn_event_stream_props.rb', line 47

def self.jsii_properties
  {
    :domain_name => "domainName",
    :event_stream_name => "eventStreamName",
    :uri => "uri",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'customer_profiles/cfn_event_stream_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "domainName" => @domain_name,
    "eventStreamName" => @event_stream_name,
    "uri" => @uri,
    "tags" => @tags,
  })
  result.compact
end