Class FlowLogOptions.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.FlowLogOptions.Jsii$Proxy
All Implemented Interfaces:
FlowLogOptions, software.amazon.jsii.JsiiSerializable
Enclosing interface:
FlowLogOptions

@Stability(Stable) @Internal public static final class FlowLogOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements FlowLogOptions
An implementation for FlowLogOptions
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(FlowLogOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the FlowLogOptions.Builder.
  • Method Details

    • getDestination

      public final FlowLogDestination getDestination()
      Description copied from interface: FlowLogOptions
      Specifies the type of destination to which the flow log data is to be published.

      Flow log data can be published to CloudWatch Logs or Amazon S3

      Default: FlowLogDestinationType.toCloudWatchLogs()

      Specified by:
      getDestination in interface FlowLogOptions
    • getLogFormat

      public final List<LogFormat> getLogFormat()
      Description copied from interface: FlowLogOptions
      The fields to include in the flow log record, in the order in which they should appear.

      If multiple fields are specified, they will be separated by spaces. For full control over the literal log format string, pass a single field constructed with LogFormat.custom().

      See https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records

      Default: - default log format is used.

      Specified by:
      getLogFormat in interface FlowLogOptions
    • getMaxAggregationInterval

      public final FlowLogMaxAggregationInterval getMaxAggregationInterval()
      Description copied from interface: FlowLogOptions
      The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.

      When creating flow logs for a Transit Gateway or Transit Gateway Attachment, this property must be ONE_MINUTES.

      Default: - FlowLogMaxAggregationInterval.ONE_MINUTES if creating flow logs for Transit Gateway, otherwise FlowLogMaxAggregationInterval.TEN_MINUTES.

      Specified by:
      getMaxAggregationInterval in interface FlowLogOptions
      See Also:
    • getTrafficType

      public final FlowLogTrafficType getTrafficType()
      Description copied from interface: FlowLogOptions
      The type of traffic to log.

      You can log traffic that the resource accepts or rejects, or all traffic. When the target is either TransitGateway or TransitGatewayAttachment, setting the traffic type is not possible.

      Default: ALL

      Specified by:
      getTrafficType in interface FlowLogOptions
      See Also:
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object