Class: AWSCDK::KinesisAnalytics::CfnApplication::InputLambdaProcessorProperty

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

Overview

An object that contains the Amazon Resource Name (ARN) of the AWS Lambda function that is used to preprocess records in the stream, and the ARN of the IAM role that is used to access the AWS Lambda function.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_arn:, role_arn:) ⇒ InputLambdaProcessorProperty

Returns a new instance of InputLambdaProcessorProperty.

Parameters:

  • resource_arn (String)

    The ARN of the AWS Lambda function that operates on records in the stream.

  • role_arn (String)

    The ARN of the IAM role that is used to access the AWS Lambda function.



593
594
595
596
597
598
# File 'kinesis_analytics/cfn_application.rb', line 593

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)

The ARN of the AWS Lambda function that operates on records in the stream.

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



606
607
608
# File 'kinesis_analytics/cfn_application.rb', line 606

def resource_arn
  @resource_arn
end

#role_arnString (readonly)

The ARN of the IAM role that is used to access the AWS Lambda function.



611
612
613
# File 'kinesis_analytics/cfn_application.rb', line 611

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



613
614
615
616
617
618
# File 'kinesis_analytics/cfn_application.rb', line 613

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

Instance Method Details

#to_jsiiObject



620
621
622
623
624
625
626
627
# File 'kinesis_analytics/cfn_application.rb', line 620

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