Class: AWSCDK::KinesisAnalytics::CfnApplicationOutput::KinesisStreamsOutputProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analytics/cfn_application_output.rb

Overview

When configuring application output, identifies an Amazon Kinesis stream as the destination.

You provide the stream Amazon Resource Name (ARN) and also an IAM role ARN that Amazon Kinesis Analytics can use to write to the stream on your behalf.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_arn:, role_arn:) ⇒ KinesisStreamsOutputProperty

Returns a new instance of KinesisStreamsOutputProperty.

Parameters:

  • resource_arn (String)

    ARN of the destination Amazon Kinesis stream to write to.

  • role_arn (String)

    ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination stream on your behalf.



607
608
609
610
611
612
# File 'kinesis_analytics/cfn_application_output.rb', line 607

def initialize(resource_arn:, role_arn:)
  @resource_arn = resource_arn
  Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
end

Instance Attribute Details

#resource_arnString (readonly)

ARN of the destination Amazon Kinesis stream to write to.



618
619
620
# File 'kinesis_analytics/cfn_application_output.rb', line 618

def resource_arn
  @resource_arn
end

#role_arnString (readonly)

ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination stream on your behalf.

You need to grant the necessary permissions to this role.



625
626
627
# File 'kinesis_analytics/cfn_application_output.rb', line 625

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



627
628
629
630
631
632
# File 'kinesis_analytics/cfn_application_output.rb', line 627

def self.jsii_properties
  {
    :resource_arn => "resourceArn",
    :role_arn => "roleArn",
  }
end

Instance Method Details

#to_jsiiObject



634
635
636
637
638
639
640
641
# File 'kinesis_analytics/cfn_application_output.rb', line 634

def to_jsii
  result = {}
  result.merge!({
    "resourceArn" => @resource_arn,
    "roleArn" => @role_arn,
  })
  result.compact
end