Class CfnDestinationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.logs.CfnDestinationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDestinationMixinProps>
- Enclosing interface:
CfnDestinationMixinProps
@Stability(Stable)
public static final class CfnDestinationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDestinationMixinProps>
A builder for
CfnDestinationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationName(String destinationName) Sets the value ofCfnDestinationMixinProps.getDestinationName()destinationPolicy(String destinationPolicy) Sets the value ofCfnDestinationMixinProps.getDestinationPolicy()Sets the value ofCfnDestinationMixinProps.getRoleArn()Sets the value ofCfnDestinationMixinProps.getRoleArn()Sets the value ofCfnDestinationMixinProps.getTags()Sets the value ofCfnDestinationMixinProps.getTargetArn()targetArn(IStreamRef targetArn) Sets the value ofCfnDestinationMixinProps.getTargetArn()targetArn(IDeliveryStreamRef targetArn) Sets the value ofCfnDestinationMixinProps.getTargetArn()targetArn(IFunctionRef targetArn) Sets the value ofCfnDestinationMixinProps.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationName
Sets the value ofCfnDestinationMixinProps.getDestinationName()- Parameters:
destinationName- The name of the destination.- Returns:
this
-
destinationPolicy
@Stability(Stable) public CfnDestinationMixinProps.Builder destinationPolicy(String destinationPolicy) Sets the value ofCfnDestinationMixinProps.getDestinationPolicy()- Parameters:
destinationPolicy- An IAM policy document that governs which AWS accounts can create subscription filters against this destination.- Returns:
this
-
roleArn
Sets the value ofCfnDestinationMixinProps.getRoleArn()- Parameters:
roleArn- The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.- Returns:
this
-
roleArn
Sets the value ofCfnDestinationMixinProps.getRoleArn()- Parameters:
roleArn- The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.- Returns:
this
-
tags
Sets the value ofCfnDestinationMixinProps.getTags()- Parameters:
tags- The tags that have been assigned to this delivery destination.- Returns:
this
-
targetArn
Sets the value ofCfnDestinationMixinProps.getTargetArn()- Parameters:
targetArn- The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).- Returns:
this
-
targetArn
Sets the value ofCfnDestinationMixinProps.getTargetArn()- Parameters:
targetArn- The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).- Returns:
this
-
targetArn
Sets the value ofCfnDestinationMixinProps.getTargetArn()- Parameters:
targetArn- The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).- Returns:
this
-
targetArn
Sets the value ofCfnDestinationMixinProps.getTargetArn()- Parameters:
targetArn- The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDestinationMixinProps>- Returns:
- a new instance of
CfnDestinationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-