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.
virtual string DeliveryStreamArn { get; }
Property Value
System.String
Remarks
Default: - undefined
DestinationOptions
Options for writing flow logs to a supported destination.
virtual IDestinationOptions DestinationOptions { get; }
Property Value
Remarks
Default: - undefined
IamRole
The IAM Role that has access to publish to CloudWatch logs.
virtual IRole IamRole { get; }
Property Value
Remarks
Default: - default IAM role is created for you
KeyPrefix
S3 bucket key prefix to publish the flow logs to.
virtual string KeyPrefix { get; }
Property Value
System.String
Remarks
Default: - undefined
LogDestinationType
The type of destination to publish the flow logs to.
FlowLogDestinationType LogDestinationType { get; }
Property Value
Remarks
Default: - CLOUD_WATCH_LOGS
LogGroup
The CloudWatch Logs Log Group to publish the flow logs to.
virtual ILogGroup LogGroup { get; }
Property Value
Remarks
Default: - default log group is created for you
S3Bucket
S3 bucket to publish the flow logs to.
virtual IBucket S3Bucket { get; }
Property Value
Remarks
Default: - undefined