Class CfnDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDestinationProps>
- Enclosing interface:
- CfnDestinationProps
@Stability(Stable)
public static final class CfnDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDestinationProps>
A builder for
CfnDestinationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationName(String destinationName) Sets the value ofCfnDestinationProps.getDestinationName()destinationPolicy(String destinationPolicy) Sets the value ofCfnDestinationProps.getDestinationPolicy()Sets the value ofCfnDestinationProps.getRoleArn()Sets the value ofCfnDestinationProps.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationName
Sets the value ofCfnDestinationProps.getDestinationName()- Parameters:
destinationName- The name of the destination. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnDestinationProps.getRoleArn()- 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
Sets the value ofCfnDestinationProps.getTargetArn()- 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
Sets the value ofCfnDestinationProps.getDestinationPolicy()- Parameters:
destinationPolicy- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDestinationProps>- Returns:
- a new instance of
CfnDestinationProps - Throws:
NullPointerException- if any required attribute was not provided
-