Class CrossAccountDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CrossAccountDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CrossAccountDestinationProps>
- Enclosing interface:
- CrossAccountDestinationProps
@Stability(Stable)
public static final class CrossAccountDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CrossAccountDestinationProps>
A builder for
CrossAccountDestinationProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destinationName
(String destinationName) Sets the value ofCrossAccountDestinationProps.getDestinationName()
Sets the value ofCrossAccountDestinationProps.getRole()
Sets the value ofCrossAccountDestinationProps.getTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
role
Sets the value ofCrossAccountDestinationProps.getRole()
- Parameters:
role
- The role to assume that grants permissions to write to 'target'. This parameter is required. The role must be assumable by 'logs.{REGION}.amazonaws.com'.- Returns:
this
-
targetArn
Sets the value ofCrossAccountDestinationProps.getTargetArn()
- Parameters:
targetArn
- The log destination target's ARN. This parameter is required.- Returns:
this
-
destinationName
@Stability(Stable) public CrossAccountDestinationProps.Builder destinationName(String destinationName) Sets the value ofCrossAccountDestinationProps.getDestinationName()
- Parameters:
destinationName
- The name of the log destination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CrossAccountDestinationProps>
- Returns:
- a new instance of
CrossAccountDestinationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-