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 Summary
Modifier and TypeMethodDescriptionbuild()
destinationName
(String destinationName) The name of the log destination.The role to assume that grants permissions to write to 'target'.The log destination target's ARN.
-
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
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
The log destination target's ARN.- Parameters:
targetArn
- The log destination target's ARN. This parameter is required.- Returns:
this
-
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CrossAccountDestination>
- Returns:
- a newly built instance of
CrossAccountDestination
.
-