Class FlowLog
A VPC flow log.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class FlowLog : Resource, IFlowLog, IResource
Syntax (vb)
Public Class FlowLog
Inherits Resource
Implements IFlowLog, IResource
Remarks
Resource: AWS::EC2::FlowLog
ExampleMetadata: infused
Examples
CfnTransitGateway tgw;
new FlowLog(this, "TransitGatewayFlowLog", new FlowLogProps {
ResourceType = FlowLogResourceType.FromTransitGatewayId(tgw.Ref)
});
Synopsis
Constructors
FlowLog(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
FlowLog(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
FlowLog(Construct, String, IFlowLogProps) |
Properties
Bucket | The S3 bucket to publish flow logs to. |
DeliveryStreamArn | The ARN of the Kinesis Data Firehose delivery stream to publish flow logs to. |
FlowLogId | The Id of the VPC Flow Log. |
IamRole | The iam role used to publish logs to CloudWatch. |
KeyPrefix | S3 bucket key prefix to publish the flow logs under. |
LogGroup | The CloudWatch Logs LogGroup to publish flow logs to. |
Methods
FromFlowLogId(Construct, String, String) | Import a Flow Log by it's Id. |
Constructors
FlowLog(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected FlowLog(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
FlowLog(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected FlowLog(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
FlowLog(Construct, String, IFlowLogProps)
public FlowLog(Construct scope, string id, IFlowLogProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IFlowLogProps
Properties
Bucket
The S3 bucket to publish flow logs to.
public virtual IBucket Bucket { get; }
Property Value
DeliveryStreamArn
The ARN of the Kinesis Data Firehose delivery stream to publish flow logs to.
public virtual string DeliveryStreamArn { get; }
Property Value
System.String
FlowLogId
The Id of the VPC Flow Log.
public virtual string FlowLogId { get; }
Property Value
System.String
Remarks
Attribute: true
IamRole
The iam role used to publish logs to CloudWatch.
public virtual IRole IamRole { get; }
Property Value
KeyPrefix
S3 bucket key prefix to publish the flow logs under.
public virtual string KeyPrefix { get; }
Property Value
System.String
LogGroup
The CloudWatch Logs LogGroup to publish flow logs to.
public virtual ILogGroup LogGroup { get; }
Property Value
Methods
FromFlowLogId(Construct, String, String)
Import a Flow Log by it's Id.
public static IFlowLog FromFlowLogId(Construct scope, string id, string flowLogId)
Parameters
- scope Constructs.Construct
- id System.String
- flowLogId System.String
Returns