Class FlowLogDestinationConfig
Flow Log Destination configuration.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class FlowLogDestinationConfig : Object, IFlowLogDestinationConfig
Syntax (vb)
Public Class FlowLogDestinationConfig
Inherits Object
Implements 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
IamRole = role,
KeyPrefix = "keyPrefix",
LogGroup = logGroup,
S3Bucket = bucket
};
Synopsis
Constructors
FlowLogDestinationConfig() |
Properties
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. |
Constructors
FlowLogDestinationConfig()
public FlowLogDestinationConfig()
Properties
IamRole
The IAM Role that has access to publish to CloudWatch logs.
public IRole IamRole { get; set; }
Property Value
Remarks
Default: - default IAM role is created for you
KeyPrefix
S3 bucket key prefix to publish the flow logs to.
public string KeyPrefix { get; set; }
Property Value
System.String
Remarks
Default: - undefined
LogDestinationType
The type of destination to publish the flow logs to.
public FlowLogDestinationType LogDestinationType { get; set; }
Property Value
Remarks
Default: - CLOUD_WATCH_LOGS
LogGroup
The CloudWatch Logs Log Group to publish the flow logs to.
public ILogGroup LogGroup { get; set; }
Property Value
Remarks
Default: - default log group is created for you
S3Bucket
S3 bucket to publish the flow logs to.
public IBucket S3Bucket { get; set; }
Property Value
Remarks
Default: - undefined