Package com.pulumi.aws.ec2
Class FlowLogArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.aws.ec2.FlowLogArgs
-
public final class FlowLogArgs extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlowLogArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static FlowLogArgsEmpty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlowLogArgs.Builderbuilder()static FlowLogArgs.Builderbuilder(FlowLogArgs defaults)java.util.Optional<com.pulumi.core.Output<java.lang.String>>deliverCrossAccountRole()java.util.Optional<com.pulumi.core.Output<FlowLogDestinationOptionsArgs>>destinationOptions()java.util.Optional<com.pulumi.core.Output<java.lang.String>>eniId()java.util.Optional<com.pulumi.core.Output<java.lang.String>>iamRoleArn()java.util.Optional<com.pulumi.core.Output<java.lang.String>>logDestination()java.util.Optional<com.pulumi.core.Output<java.lang.String>>logDestinationType()java.util.Optional<com.pulumi.core.Output<java.lang.String>>logFormat()java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>maxAggregationInterval()java.util.Optional<com.pulumi.core.Output<java.lang.String>>region()java.util.Optional<com.pulumi.core.Output<java.lang.String>>regionalNatGatewayId()java.util.Optional<com.pulumi.core.Output<java.lang.String>>subnetId()java.util.Optional<com.pulumi.core.Output<java.util.List<FlowLogTagFieldSpecificationArgs>>>tagFieldSpecifications()java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>tags()java.util.Optional<com.pulumi.core.Output<java.lang.String>>trafficType()java.util.Optional<com.pulumi.core.Output<java.lang.String>>transitGatewayAttachmentId()java.util.Optional<com.pulumi.core.Output<java.lang.String>>transitGatewayId()java.util.Optional<com.pulumi.core.Output<java.lang.String>>vpcId()
-
-
-
Field Detail
-
Empty
public static final FlowLogArgs Empty
-
-
Method Detail
-
deliverCrossAccountRole
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> deliverCrossAccountRole()
- Returns:
- ARN of the IAM role in the destination account used for cross-account delivery of flow logs.
-
destinationOptions
public java.util.Optional<com.pulumi.core.Output<FlowLogDestinationOptionsArgs>> destinationOptions()
- Returns:
- Destination options for a flow log. More details below.
-
eniId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> eniId()
- Returns:
- Elastic Network Interface ID to attach to.
-
iamRoleArn
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> iamRoleArn()
- Returns:
- ARN of the IAM role used to post flow logs. Corresponds to `DeliverLogsPermissionArn` in the [AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFlowLogs.html).
-
logDestination
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> logDestination()
- Returns:
- ARN of the logging destination.
-
logDestinationType
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> logDestinationType()
- Returns:
- Logging destination type. Valid values: `cloud-watch-logs`, `s3`, `kinesis-data-firehose`. Default: `cloud-watch-logs`.
-
logFormat
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> logFormat()
- Returns:
- Fields to include in the flow log record. Accepted format example: `"$${interface-id} $${srcaddr} $${dstaddr} $${srcport} $${dstport}"`.
-
maxAggregationInterval
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> maxAggregationInterval()
- Returns:
- Maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. Valid Values: `60` seconds (1 minute) or `600` seconds (10 minutes). Default: `600`. When `transitGatewayId` or `transitGatewayAttachmentId` is specified, `maxAggregationInterval` *must* be 60 seconds (1 minute).
-
region
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
regionalNatGatewayId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> regionalNatGatewayId()
- Returns:
- Regional NAT Gateway ID to attach to.
-
subnetId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> subnetId()
- Returns:
- Subnet ID to attach to.
-
tagFieldSpecifications
public java.util.Optional<com.pulumi.core.Output<java.util.List<FlowLogTagFieldSpecificationArgs>>> tagFieldSpecifications()
- Returns:
- Tag configuration for the Flow Logs Amazon EC2 Tags feature fields (e.g., `$${instance-tag}`) used in `logFormat`. More details below.
-
tags
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
trafficType
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> trafficType()
- Returns:
- Type of traffic to capture. Valid values: `ACCEPT`,`REJECT`, `ALL`. Required if `eniId`, `regionalNatGatewayId`, `subnetId`, or `vpcId` is specified.
-
transitGatewayAttachmentId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> transitGatewayAttachmentId()
- Returns:
- Transit Gateway Attachment ID to attach to.
-
transitGatewayId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> transitGatewayId()
- Returns:
- Transit Gateway ID to attach to.
-
vpcId
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> vpcId()
- Returns:
- VPC ID to attach to. > **NOTE:** One of `eniId`, `regionalNatGatewayId`, `subnetId`, `transitGatewayId`, `transitGatewayAttachmentId`, or `vpcId` must be specified.
-
builder
public static FlowLogArgs.Builder builder()
-
builder
public static FlowLogArgs.Builder builder(FlowLogArgs defaults)
-
-