Class FlowLogDestinationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.FlowLogDestinationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FlowLogDestinationConfig>
- Enclosing interface:
FlowLogDestinationConfig
@Stability(Stable)
public static final class FlowLogDestinationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<FlowLogDestinationConfig>
A builder for
FlowLogDestinationConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deliveryStreamArn(String deliveryStreamArn) Sets the value ofFlowLogDestinationConfig.getDeliveryStreamArn()destinationOptions(DestinationOptions destinationOptions) Sets the value ofFlowLogDestinationConfig.getDestinationOptions()Sets the value ofFlowLogDestinationConfig.getIamRole()Sets the value ofFlowLogDestinationConfig.getKeyPrefix()logDestinationType(FlowLogDestinationType logDestinationType) Sets the value ofFlowLogDestinationConfig.getLogDestinationType()Sets the value ofFlowLogDestinationConfig.getLogGroup()Sets the value ofFlowLogDestinationConfig.getS3Bucket()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logDestinationType
@Stability(Stable) public FlowLogDestinationConfig.Builder logDestinationType(FlowLogDestinationType logDestinationType) Sets the value ofFlowLogDestinationConfig.getLogDestinationType()- Parameters:
logDestinationType- The type of destination to publish the flow logs to. This parameter is required.- Returns:
this
-
deliveryStreamArn
@Stability(Stable) public FlowLogDestinationConfig.Builder deliveryStreamArn(String deliveryStreamArn) Sets the value ofFlowLogDestinationConfig.getDeliveryStreamArn()- Parameters:
deliveryStreamArn- The ARN of Amazon Data Firehose delivery stream to publish the flow logs to.- Returns:
this
-
destinationOptions
@Stability(Stable) public FlowLogDestinationConfig.Builder destinationOptions(DestinationOptions destinationOptions) Sets the value ofFlowLogDestinationConfig.getDestinationOptions()- Parameters:
destinationOptions- Options for writing flow logs to a supported destination.- Returns:
this
-
iamRole
Sets the value ofFlowLogDestinationConfig.getIamRole()- Parameters:
iamRole- The IAM Role that has access to publish to CloudWatch logs.- Returns:
this
-
keyPrefix
Sets the value ofFlowLogDestinationConfig.getKeyPrefix()- Parameters:
keyPrefix- S3 bucket key prefix to publish the flow logs to.- Returns:
this
-
logGroup
Sets the value ofFlowLogDestinationConfig.getLogGroup()- Parameters:
logGroup- The CloudWatch Logs Log Group to publish the flow logs to.- Returns:
this
-
s3Bucket
Sets the value ofFlowLogDestinationConfig.getS3Bucket()- Parameters:
s3Bucket- S3 bucket to publish the flow logs to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FlowLogDestinationConfig>- Returns:
- a new instance of
FlowLogDestinationConfig - Throws:
NullPointerException- if any required attribute was not provided
-