Class: AWSCDK::KinesisAnalytics::CfnApplicationOutput::LambdaOutputProperty

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

Overview

When configuring application output, identifies an AWS Lambda function as the destination.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_arn:, role_arn:) ⇒ LambdaOutputProperty

Returns a new instance of LambdaOutputProperty.

Parameters:

  • resource_arn (String)

    Amazon Resource Name (ARN) of the destination Lambda function to write to.

  • role_arn (String)

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



654
655
656
657
658
659
# File 'kinesis_analytics/cfn_application_output.rb', line 654

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)

Amazon Resource Name (ARN) of the destination Lambda function to write to.

To specify an earlier version of the Lambda function than the latest, include the Lambda function version in the Lambda function ARN. For more information about Lambda ARNs, see Example ARNs: AWS Lambda



667
668
669
# File 'kinesis_analytics/cfn_application_output.rb', line 667

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 function on your behalf.

You need to grant the necessary permissions to this role.



674
675
676
# File 'kinesis_analytics/cfn_application_output.rb', line 674

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



676
677
678
679
680
681
# File 'kinesis_analytics/cfn_application_output.rb', line 676

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

Instance Method Details

#to_jsiiObject



683
684
685
686
687
688
689
690
# File 'kinesis_analytics/cfn_application_output.rb', line 683

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