Class CloudWatchLogsTarget
(experimental) An EventBridge Pipes target that sends messages to a CloudWatch Logs log group.
Implements
Namespace: Amazon.CDK.AWS.Pipes.Targets.Alpha
Assembly: Amazon.CDK.AWS.Pipes.Targets.Alpha.dll
Syntax (csharp)
public class CloudWatchLogsTarget : DeputyBase, ITarget
Syntax (vb)
Public Class CloudWatchLogsTarget Inherits DeputyBase Implements ITarget
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Queue sourceQueue;
LogGroup targetLogGroup;
var logGroupTarget = new CloudWatchLogsTarget(targetLogGroup);
var pipe = new Pipe(this, "Pipe", new PipeProps {
Source = new SqsSource(sourceQueue),
Target = logGroupTarget
});
Synopsis
Constructors
| CloudWatchLogsTarget(ILogGroup, ICloudWatchLogsTargetParameters?) | (experimental) An EventBridge Pipes target that sends messages to a CloudWatch Logs log group. |
Properties
| TargetArn | (experimental) The ARN of the target resource. |
Methods
| Bind(IPipe) | (experimental) Bind this target to a pipe. |
| GrantPush(IRole) | (experimental) Grant the pipe role to push to the target. |
Constructors
CloudWatchLogsTarget(ILogGroup, ICloudWatchLogsTargetParameters?)
(experimental) An EventBridge Pipes target that sends messages to a CloudWatch Logs log group.
public CloudWatchLogsTarget(ILogGroup logGroup, ICloudWatchLogsTargetParameters? parameters = null)
Parameters
- logGroup ILogGroup
- parameters ICloudWatchLogsTargetParameters
Remarks
Stability: Experimental
Properties
TargetArn
(experimental) The ARN of the target resource.
public virtual string TargetArn { get; }
Property Value
Remarks
Stability: Experimental
Methods
Bind(IPipe)
(experimental) Bind this target to a pipe.
public virtual ITargetConfig Bind(IPipe pipe)
Parameters
- pipe IPipe
Returns
Remarks
Stability: Experimental
GrantPush(IRole)
(experimental) Grant the pipe role to push to the target.
public virtual void GrantPush(IRole grantee)
Parameters
- grantee IRole
Remarks
Stability: Experimental