@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.728Z") @Stability(value=Stable) public class LambdaDestination extends software.amazon.jsii.JsiiObject implements ILogSubscriptionDestination
Example:
import software.amazon.awscdk.services.logs.destinations.*;
Function fn;
LogGroup logGroup;
SubscriptionFilter.Builder.create(this, "Subscription")
.logGroup(logGroup)
.destination(new LambdaDestination(fn))
.filterPattern(FilterPattern.allTerms("ERROR", "MainThread"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
LambdaDestination.Builder
A fluent builder for
LambdaDestination. |
software.amazon.jsii.JsiiObject.InitializationModeILogSubscriptionDestination.Jsii$Default, ILogSubscriptionDestination.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LambdaDestination(IFunction fn)
LambdaDestinationOptions.
|
|
LambdaDestination(IFunction fn,
LambdaDestinationOptions options)
LambdaDestinationOptions.
|
protected |
LambdaDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LambdaDestination(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
LogSubscriptionDestinationConfig |
bind(software.constructs.Construct scope,
ILogGroup logGroup)
Return the properties required to send subscription events to this destination.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LambdaDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected LambdaDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public LambdaDestination(@NotNull
IFunction fn,
@Nullable
LambdaDestinationOptions options)
fn - This parameter is required.options - @Stability(value=Stable)
public LambdaDestination(@NotNull
IFunction fn)
fn - This parameter is required.@Stability(value=Stable) @NotNull public LogSubscriptionDestinationConfig bind(@NotNull software.constructs.Construct scope, @NotNull ILogGroup logGroup)
If necessary, the destination can use the properties of the SubscriptionFilter object itself to configure its permissions to allow the subscription to write to it.
The destination may reconfigure its own permissions in response to this function call.
bind in interface ILogSubscriptionDestinationscope - This parameter is required.logGroup - This parameter is required.Copyright © 2022. All rights reserved.