Class CrossAccountDestination.Builder

java.lang.Object
software.amazon.awscdk.services.logs.CrossAccountDestination.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CrossAccountDestination>
Enclosing class:
CrossAccountDestination

@Stability(Stable) public static final class CrossAccountDestination.Builder extends Object implements software.amazon.jsii.Builder<CrossAccountDestination>
A fluent builder for CrossAccountDestination.
  • Method Details

    • create

      @Stability(Stable) public static CrossAccountDestination.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of CrossAccountDestination.Builder.
    • role

      @Stability(Stable) public CrossAccountDestination.Builder role(IRole role)
      The role to assume that grants permissions to write to 'target'.

      The role must be assumable by 'logs.{REGION}.amazonaws.com'.

      Parameters:
      role - The role to assume that grants permissions to write to 'target'. This parameter is required.
      Returns:
      this
    • targetArn

      @Stability(Stable) public CrossAccountDestination.Builder targetArn(String targetArn)
      The log destination target's ARN.

      Parameters:
      targetArn - The log destination target's ARN. This parameter is required.
      Returns:
      this
    • destinationName

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

      Default: Automatically generated

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

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