Class CfnDestination.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnDestination.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDestination>
- Enclosing class:
CfnDestination
@Stability(Stable)
public static final class CfnDestination.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDestination>
A fluent builder for
CfnDestination
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDestination.Builder
destinationName
(String destinationName) The name of the destination.destinationPolicy
(String destinationPolicy) An IAM policy document that governs which AWS accounts can create subscription filters against this destination.The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnDestination.Builder
.
-
destinationName
The name of the destination.- Parameters:
destinationName
- The name of the destination. This parameter is required.- Returns:
this
-
roleArn
The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.- Parameters:
roleArn
- The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource. This parameter is required.- Returns:
this
-
targetArn
The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).- Parameters:
targetArn
- The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream). This parameter is required.- Returns:
this
-
destinationPolicy
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.- Parameters:
destinationPolicy
- An IAM policy document that governs which AWS accounts can create subscription filters against this destination. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDestination>
- Returns:
- a newly built instance of
CfnDestination
.
-