Class CloudWatchLogsTargetParameters.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.targets.alpha.CloudWatchLogsTargetParameters.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchLogsTargetParameters>
- Enclosing interface:
CloudWatchLogsTargetParameters
@Stability(Experimental)
public static final class CloudWatchLogsTargetParameters.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchLogsTargetParameters>
A builder for
CloudWatchLogsTargetParameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.inputTransformation
(IInputTransformation inputTransformation) Sets the value ofCloudWatchLogsTargetParameters.getInputTransformation()
logStreamName
(String logStreamName) Sets the value ofCloudWatchLogsTargetParameters.getLogStreamName()
Sets the value ofCloudWatchLogsTargetParameters.getTimestamp()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inputTransformation
@Stability(Experimental) public CloudWatchLogsTargetParameters.Builder inputTransformation(IInputTransformation inputTransformation) Sets the value ofCloudWatchLogsTargetParameters.getInputTransformation()
- Parameters:
inputTransformation
- The input transformation to apply to the message before sending it to the target.- Returns:
this
-
logStreamName
@Stability(Experimental) public CloudWatchLogsTargetParameters.Builder logStreamName(String logStreamName) Sets the value ofCloudWatchLogsTargetParameters.getLogStreamName()
- Parameters:
logStreamName
- The name of the log stream.- Returns:
this
-
timestamp
Sets the value ofCloudWatchLogsTargetParameters.getTimestamp()
- Parameters:
timestamp
- The JSON path expression that references the timestamp in the payload. This is the time that the event occurred, as a JSON path expression in the payload.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudWatchLogsTargetParameters>
- Returns:
- a new instance of
CloudWatchLogsTargetParameters
- Throws:
NullPointerException
- if any required attribute was not provided
-