AwsCloudwatchLambdaFunctionReference
interface AwsCloudwatchLambdaFunctionReference {
arn: Input<string>;
invokePermissionIdentity: string;
grantInvoke(args: { identity: string; service: 'cloudwatch-alarm' | 'cloudwatch-logs'; sourceAccount?: Input<string>; sourceArn: Input<string> }, options?: CustomResourceOptions): Resource;
}Lambda function capability reference accepted by managed CloudWatch invocation paths.
Example
CODE
const action: AwsCloudwatchLambdaActionArgs = { function: lambdaFunction };Properties
arn: Input<string>
readonly
Lambda function ARN.
invokePermissionIdentity: string
readonly
Stable Lambda permission identity.
Methods
grantInvoke(
args: { identity: string; service: 'cloudwatch-alarm' | 'cloudwatch-logs'; sourceAccount?: Input<string>; sourceArn: Input<string> },
options?: CustomResourceOptions,
): Resource
Creates a Lambda-domain invocation permission.
Parameters
args({ identity: string; service: "cloudwatch-alarm" | "cloudwatch-logs"; sourceAccount?: Input<string>; sourceArn: Input<string> })options(CustomResourceOptions, optional)
Properties
identity(string)service("cloudwatch-alarm" | "cloudwatch-logs")sourceAccount(Input<string>, optional)sourceArn(Input<string>)
Returns
Resource