Class LogSubscriptionDestinationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.logs.LogSubscriptionDestinationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LogSubscriptionDestinationConfig>
- Enclosing interface:
LogSubscriptionDestinationConfig
@Stability(Stable)
public static final class LogSubscriptionDestinationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<LogSubscriptionDestinationConfig>
A builder for
LogSubscriptionDestinationConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofLogSubscriptionDestinationConfig.getArn()
build()
Builds the configured instance.Sets the value ofLogSubscriptionDestinationConfig.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofLogSubscriptionDestinationConfig.getArn()
- Parameters:
arn
- The ARN of the subscription's destination. This parameter is required.- Returns:
this
-
role
Sets the value ofLogSubscriptionDestinationConfig.getRole()
- Parameters:
role
- The role to assume to write log events to the destination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LogSubscriptionDestinationConfig>
- Returns:
- a new instance of
LogSubscriptionDestinationConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-