Show / Hide Table of Contents

Interface IFlowLogDestinationConfig

Flow Log Destination configuration.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IFlowLogDestinationConfig
Syntax (vb)
Public Interface IFlowLogDestinationConfig
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.EC2;
            using Amazon.CDK.AWS.IAM;
            using Amazon.CDK.AWS.Logs;
            using Amazon.CDK.AWS.S3;

            Bucket bucket;
            LogGroup logGroup;
            Role role;

            var flowLogDestinationConfig = new FlowLogDestinationConfig {
                LogDestinationType = FlowLogDestinationType.CLOUD_WATCH_LOGS,

                // the properties below are optional
                DeliveryStreamArn = "deliveryStreamArn",
                DestinationOptions = new DestinationOptions {
                    FileFormat = FlowLogFileFormat.PLAIN_TEXT,
                    HiveCompatiblePartitions = false,
                    PerHourPartition = false
                },
                IamRole = role,
                KeyPrefix = "keyPrefix",
                LogGroup = logGroup,
                S3Bucket = bucket
            };

Synopsis

Properties

DeliveryStreamArn

The ARN of Amazon Data Firehose delivery stream to publish the flow logs to.

DestinationOptions

Options for writing flow logs to a supported destination.

IamRole

The IAM Role that has access to publish to CloudWatch logs.

KeyPrefix

S3 bucket key prefix to publish the flow logs to.

LogDestinationType

The type of destination to publish the flow logs to.

LogGroup

The CloudWatch Logs Log Group to publish the flow logs to.

S3Bucket

S3 bucket to publish the flow logs to.

Properties

DeliveryStreamArn

The ARN of Amazon Data Firehose delivery stream to publish the flow logs to.

string? DeliveryStreamArn { get; }
Property Value

string

Remarks

Default: - undefined

DestinationOptions

Options for writing flow logs to a supported destination.

IDestinationOptions? DestinationOptions { get; }
Property Value

IDestinationOptions

Remarks

Default: - undefined

IamRole

The IAM Role that has access to publish to CloudWatch logs.

IRole? IamRole { get; }
Property Value

IRole

Remarks

Default: - default IAM role is created for you

KeyPrefix

S3 bucket key prefix to publish the flow logs to.

string? KeyPrefix { get; }
Property Value

string

Remarks

Default: - undefined

LogDestinationType

The type of destination to publish the flow logs to.

FlowLogDestinationType LogDestinationType { get; }
Property Value

FlowLogDestinationType

Remarks

Default: - CLOUD_WATCH_LOGS

LogGroup

The CloudWatch Logs Log Group to publish the flow logs to.

ILogGroup? LogGroup { get; }
Property Value

ILogGroup

Remarks

Default: - default log group is created for you

S3Bucket

S3 bucket to publish the flow logs to.

IBucket? S3Bucket { get; }
Property Value

IBucket

Remarks

Default: - undefined

Back to top Generated by DocFX