@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() |
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.
|
String |
resourceId()
The ID of the resource on which the flow log was created.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FlowLog.Builder> |
serializableBuilderClass() |
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, wait
copy
public Instant creationTime()
The date and time the flow log was created.
public 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 String deliverLogsPermissionArn()
The ARN of the IAM role that posts logs to CloudWatch Logs.
public String deliverLogsStatus()
The status of the logs delivery (SUCCESS
| FAILED
).
SUCCESS
| FAILED
).public String flowLogId()
The flow log ID.
public String flowLogStatus()
The status of the flow log (ACTIVE
).
ACTIVE
).public String logGroupName()
The name of the flow log group.
public String resourceId()
The ID of the resource on which the flow log was created.
public 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()
.
TrafficType
public 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()
.
TrafficType
public 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()
.
LogDestinationType
public 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()
.
LogDestinationType
public 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 String logFormat()
The format of the flow log record.
public FlowLog.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<FlowLog.Builder,FlowLog>
public static FlowLog.Builder builder()
public static Class<? extends FlowLog.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.