Class: AWSCDK::AppSync::CfnDataSource::LambdaConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_sync/cfn_data_source.rb

Overview

The LambdaConfig property type specifies the Lambda function ARN for an AWS AppSync data source.

LambdaConfig is a property of the AWS::AppSync::DataSource property type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lambda_function_arn:) ⇒ LambdaConfigProperty

Returns a new instance of LambdaConfigProperty.

Parameters:

  • lambda_function_arn (String)

    The ARN for the Lambda function.



1024
1025
1026
1027
# File 'app_sync/cfn_data_source.rb', line 1024

def initialize(lambda_function_arn:)
  @lambda_function_arn = lambda_function_arn
  Jsii::Type.check_type(@lambda_function_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lambdaFunctionArn")
end

Instance Attribute Details

#lambda_function_arnString (readonly)

The ARN for the Lambda function.



1033
1034
1035
# File 'app_sync/cfn_data_source.rb', line 1033

def lambda_function_arn
  @lambda_function_arn
end

Class Method Details

.jsii_propertiesObject



1035
1036
1037
1038
1039
# File 'app_sync/cfn_data_source.rb', line 1035

def self.jsii_properties
  {
    :lambda_function_arn => "lambdaFunctionArn",
  }
end

Instance Method Details

#to_jsiiObject



1041
1042
1043
1044
1045
1046
1047
# File 'app_sync/cfn_data_source.rb', line 1041

def to_jsii
  result = {}
  result.merge!({
    "lambdaFunctionArn" => @lambda_function_arn,
  })
  result.compact
end