@Generated(value="software.amazon.awssdk:codegen") public final class FlowLog extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FlowLog.Builder,FlowLog>
Describes a flow log.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FlowLog.Builder |
| Modifier and Type | Method and Description |
|---|---|
static FlowLog.Builder |
builder() |
Instant |
creationTime()
The date and time the flow log was created.
|
String |
deliverLogsErrorMessage()
Information about the error that occurred.
|
String |
deliverLogsPermissionArn()
The ARN of the IAM role that posts logs to CloudWatch Logs.
|
String |
deliverLogsStatus()
The status of the logs delivery (
SUCCESS | FAILED). |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
flowLogId()
The flow log ID.
|
String |
flowLogStatus()
The status of the flow log (
ACTIVE). |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
logDestination()
Specifies the destination to which the flow log data is published.
|
LogDestinationType |
logDestinationType()
Specifies the type of destination to which the flow log data is published.
|
String |
logDestinationTypeAsString()
Specifies the type of destination to which the flow log data is published.
|
String |
logFormat()
The format of the flow log record.
|
String |
logGroupName()
The name of the flow log group.
|
Integer |
maxAggregationInterval()
The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow
log record.
|
String |
resourceId()
The ID of the resource on which the flow log was created.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FlowLog.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The tags for the flow log.
|
FlowLog.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TrafficType |
trafficType()
The type of traffic captured for the flow log.
|
String |
trafficTypeAsString()
The type of traffic captured for the flow log.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant creationTime()
The date and time the flow log was created.
public final String deliverLogsErrorMessage()
Information about the error that occurred. Rate limited indicates that CloudWatch Logs throttling
has been applied for one or more network interfaces, or that you've reached the limit on the number of log groups
that you can create. Access error indicates that the IAM role associated with the flow log does not
have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal
error.
Rate limited indicates that CloudWatch Logs
throttling has been applied for one or more network interfaces, or that you've reached the limit on the
number of log groups that you can create. Access error indicates that the IAM role
associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs.
Unknown error indicates an internal error.public final String deliverLogsPermissionArn()
The ARN of the IAM role that posts logs to CloudWatch Logs.
public final String deliverLogsStatus()
The status of the logs delivery (SUCCESS | FAILED).
SUCCESS | FAILED).public final String flowLogId()
The flow log ID.
public final String flowLogStatus()
The status of the flow log (ACTIVE).
ACTIVE).public final String logGroupName()
The name of the flow log group.
public final String resourceId()
The ID of the resource on which the flow log was created.
public final TrafficType trafficType()
The type of traffic captured for the flow log.
If the service returns an enum value that is not available in the current SDK version, trafficType will
return TrafficType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
trafficTypeAsString().
TrafficTypepublic final String trafficTypeAsString()
The type of traffic captured for the flow log.
If the service returns an enum value that is not available in the current SDK version, trafficType will
return TrafficType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
trafficTypeAsString().
TrafficTypepublic final LogDestinationType logDestinationType()
Specifies the type of destination to which the flow log data is published. Flow log data can be published to CloudWatch Logs or Amazon S3.
If the service returns an enum value that is not available in the current SDK version,
logDestinationType will return LogDestinationType.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from logDestinationTypeAsString().
LogDestinationTypepublic final String logDestinationTypeAsString()
Specifies the type of destination to which the flow log data is published. Flow log data can be published to CloudWatch Logs or Amazon S3.
If the service returns an enum value that is not available in the current SDK version,
logDestinationType will return LogDestinationType.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from logDestinationTypeAsString().
LogDestinationTypepublic final String logDestination()
Specifies the destination to which the flow log data is published. Flow log data can be published to an CloudWatch Logs log group or an Amazon S3 bucket. If the flow log publishes to CloudWatch Logs, this element indicates the Amazon Resource Name (ARN) of the CloudWatch Logs log group to which the data is published. If the flow log publishes to Amazon S3, this element indicates the ARN of the Amazon S3 bucket to which the data is published.
public final String logFormat()
The format of the flow log record.
public final boolean hasTags()
public final List<Tag> tags()
The tags for the flow log.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final Integer maxAggregationInterval()
The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.
Valid Values: 60 | 600
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.
Valid Values: 60 | 600
public FlowLog.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FlowLog.Builder,FlowLog>public static FlowLog.Builder builder()
public static Class<? extends FlowLog.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.