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 Details

    • create

      @Stability(Stable) public static CfnDestination.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDestination.Builder.
    • destinationName

      @Stability(Stable) public CfnDestination.Builder destinationName(String destinationName)
      The name of the destination.

      Parameters:
      destinationName - The name of the destination. This parameter is required.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnDestination.Builder roleArn(String 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

      @Stability(Stable) public CfnDestination.Builder targetArn(String 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

      @Stability(Stable) public CfnDestination.Builder destinationPolicy(String 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

      @Stability(Stable) public CfnDestination build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDestination>
      Returns:
      a newly built instance of CfnDestination.