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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<FlowLogDestinationConfig>
- Returns:
- a new instance of
FlowLogDestinationConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-