Class: AWSCDK::Pipes::CfnPipe::PipeTargetEventBridgeEventBusParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

The parameters for using an EventBridge event bus as a target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(detail_type: nil, endpoint_id: nil, resources: nil, source: nil, time: nil) ⇒ PipeTargetEventBridgeEventBusParametersProperty

Returns a new instance of PipeTargetEventBridgeEventBusParametersProperty.

Parameters:

  • detail_type (String, nil) (defaults to: nil)

    A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.

  • endpoint_id (String, nil) (defaults to: nil)

    The URL subdomain of the endpoint.

  • resources (Array<String>, nil) (defaults to: nil)

    AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.

  • source (String, nil) (defaults to: nil)

    The source of the event.

  • time (String, nil) (defaults to: nil)

    The time stamp of the event, per RFC3339 . If no time stamp is provided, the time stamp of the PutEvents call is used.



3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
# File 'pipes/cfn_pipe.rb', line 3323

def initialize(detail_type: nil, endpoint_id: nil, resources: nil, source: nil, time: nil)
  @detail_type = detail_type
  Jsii::Type.check_type(@detail_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "detailType") unless @detail_type.nil?
  @endpoint_id = endpoint_id
  Jsii::Type.check_type(@endpoint_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointId") unless @endpoint_id.nil?
  @resources = resources
  Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "resources") unless @resources.nil?
  @source = source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") unless @source.nil?
  @time = time
  Jsii::Type.check_type(@time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "time") unless @time.nil?
end

Instance Attribute Details

#detail_typeString? (readonly)

A free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.



3340
3341
3342
# File 'pipes/cfn_pipe.rb', line 3340

def detail_type
  @detail_type
end

#endpoint_idString? (readonly)

The URL subdomain of the endpoint.

For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo .



3347
3348
3349
# File 'pipes/cfn_pipe.rb', line 3347

def endpoint_id
  @endpoint_id
end

#resourcesArray<String>? (readonly)

AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.

Any number, including zero, may be present.



3354
3355
3356
# File 'pipes/cfn_pipe.rb', line 3354

def resources
  @resources
end

#sourceString? (readonly)

The source of the event.



3359
3360
3361
# File 'pipes/cfn_pipe.rb', line 3359

def source
  @source
end

#timeString? (readonly)

The time stamp of the event, per RFC3339 . If no time stamp is provided, the time stamp of the PutEvents call is used.



3364
3365
3366
# File 'pipes/cfn_pipe.rb', line 3364

def time
  @time
end

Class Method Details

.jsii_propertiesObject



3366
3367
3368
3369
3370
3371
3372
3373
3374
# File 'pipes/cfn_pipe.rb', line 3366

def self.jsii_properties
  {
    :detail_type => "detailType",
    :endpoint_id => "endpointId",
    :resources => "resources",
    :source => "source",
    :time => "time",
  }
end

Instance Method Details

#to_jsiiObject



3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
# File 'pipes/cfn_pipe.rb', line 3376

def to_jsii
  result = {}
  result.merge!({
    "detailType" => @detail_type,
    "endpointId" => @endpoint_id,
    "resources" => @resources,
    "source" => @source,
    "time" => @time,
  })
  result.compact
end