Class: AWSCDK::KinesisAnalytics::CfnApplication::KinesisStreamsInputProperty

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

Overview

Identifies an Amazon Kinesis stream as the streaming source.

You provide the stream's Amazon Resource Name (ARN) and an IAM role ARN that enables Amazon Kinesis Analytics to access the stream on your behalf.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_arn:, role_arn:) ⇒ KinesisStreamsInputProperty

Returns a new instance of KinesisStreamsInputProperty.

Parameters:

  • resource_arn (String)

    ARN of the input Amazon Kinesis stream to read.

  • role_arn (String)

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



946
947
948
949
950
951
# File 'kinesis_analytics/cfn_application.rb', line 946

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 input Amazon Kinesis stream to read.



957
958
959
# File 'kinesis_analytics/cfn_application.rb', line 957

def resource_arn
  @resource_arn
end

#role_arnString (readonly)

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

You need to grant the necessary permissions to this role.



964
965
966
# File 'kinesis_analytics/cfn_application.rb', line 964

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



966
967
968
969
970
971
# File 'kinesis_analytics/cfn_application.rb', line 966

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

Instance Method Details

#to_jsiiObject



973
974
975
976
977
978
979
980
# File 'kinesis_analytics/cfn_application.rb', line 973

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