@Generated(value="software.amazon.awssdk:codegen") public final class CreateFlowLogsRequest extends Ec2Request implements ToCopyableBuilder<CreateFlowLogsRequest.Builder,CreateFlowLogsRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateFlowLogsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateFlowLogsRequest.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
deliverLogsPermissionArn()
The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your
account.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResourceIds()
Returns true if the ResourceIds property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasTagSpecifications()
Returns true if the TagSpecifications 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 to be published.
|
LogDestinationType |
logDestinationType()
Specifies the type of destination to which the flow log data is to be published.
|
String |
logDestinationTypeAsString()
Specifies the type of destination to which the flow log data is to be published.
|
String |
logFormat()
The fields to include in the flow log record, in the order in which they should appear.
|
String |
logGroupName()
The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.
|
Integer |
maxAggregationInterval()
The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.
|
List<String> |
resourceIds()
The ID of the subnet, network interface, or VPC for which you want to create a flow log.
|
FlowLogsResourceType |
resourceType()
The type of resource for which to create the flow log.
|
String |
resourceTypeAsString()
The type of resource for which to create the flow log.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateFlowLogsRequest.Builder> |
serializableBuilderClass() |
List<TagSpecification> |
tagSpecifications()
The tags to apply to the flow logs.
|
CreateFlowLogsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TrafficType |
trafficType()
The type of traffic to log.
|
String |
trafficTypeAsString()
The type of traffic to log.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String clientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
public String deliverLogsPermissionArn()
The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your account.
If you specify LogDestinationType as s3, do not specify
DeliverLogsPermissionArn or LogGroupName.
If you specify LogDestinationType as s3, do not specify
DeliverLogsPermissionArn or LogGroupName.
public String logGroupName()
The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.
If you specify LogDestinationType as s3, do not specify
DeliverLogsPermissionArn or LogGroupName.
If you specify LogDestinationType as s3, do not specify
DeliverLogsPermissionArn or LogGroupName.
public boolean hasResourceIds()
public List<String> resourceIds()
The ID of the subnet, network interface, or VPC for which you want to create a flow log.
Constraints: Maximum of 1000 resources
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResourceIds() to see if a value was sent in this field.
Constraints: Maximum of 1000 resources
public FlowLogsResourceType resourceType()
The type of resource for which to create the flow log. For example, if you specified a VPC ID for the
ResourceId property, specify VPC for this property.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return FlowLogsResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from resourceTypeAsString().
ResourceId property, specify VPC for this property.FlowLogsResourceTypepublic String resourceTypeAsString()
The type of resource for which to create the flow log. For example, if you specified a VPC ID for the
ResourceId property, specify VPC for this property.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return FlowLogsResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from resourceTypeAsString().
ResourceId property, specify VPC for this property.FlowLogsResourceTypepublic TrafficType trafficType()
The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
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 String trafficTypeAsString()
The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
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 LogDestinationType logDestinationType()
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. To publish flow log data to CloudWatch Logs, specify
cloud-watch-logs. To publish flow log data to Amazon S3, specify s3.
If you specify LogDestinationType as s3, do not specify
DeliverLogsPermissionArn or LogGroupName.
Default: cloud-watch-logs
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().
cloud-watch-logs. To publish flow log data to Amazon S3, specify s3.
If you specify LogDestinationType as s3, do not specify
DeliverLogsPermissionArn or LogGroupName.
Default: cloud-watch-logs
LogDestinationTypepublic String logDestinationTypeAsString()
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. To publish flow log data to CloudWatch Logs, specify
cloud-watch-logs. To publish flow log data to Amazon S3, specify s3.
If you specify LogDestinationType as s3, do not specify
DeliverLogsPermissionArn or LogGroupName.
Default: cloud-watch-logs
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().
cloud-watch-logs. To publish flow log data to Amazon S3, specify s3.
If you specify LogDestinationType as s3, do not specify
DeliverLogsPermissionArn or LogGroupName.
Default: cloud-watch-logs
LogDestinationTypepublic String logDestination()
Specifies the destination to which the flow log data is to be published. Flow log data can be published to a
CloudWatch Logs log group or an Amazon S3 bucket. The value specified for this parameter depends on the value
specified for LogDestinationType.
If LogDestinationType is not specified or cloud-watch-logs, specify the Amazon Resource
Name (ARN) of the CloudWatch Logs log group. For example, to publish to a log group called my-logs,
specify arn:aws:logs:us-east-1:123456789012:log-group:my-logs. Alternatively, use
LogGroupName instead.
If LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. You can also specify a
subfolder in the bucket. To specify a subfolder in the bucket, use the following ARN format:
bucket_ARN/subfolder_name/. For example, to specify a subfolder named my-logs in a
bucket named my-bucket, use the following ARN: arn:aws:s3:::my-bucket/my-logs/. You
cannot use AWSLogs as a subfolder name. This is a reserved term.
LogDestinationType.
If LogDestinationType is not specified or cloud-watch-logs, specify the Amazon
Resource Name (ARN) of the CloudWatch Logs log group. For example, to publish to a log group called
my-logs, specify arn:aws:logs:us-east-1:123456789012:log-group:my-logs.
Alternatively, use LogGroupName instead.
If LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. You can also specify a
subfolder in the bucket. To specify a subfolder in the bucket, use the following ARN format:
bucket_ARN/subfolder_name/. For example, to specify a subfolder named my-logs
in a bucket named my-bucket, use the following ARN:
arn:aws:s3:::my-bucket/my-logs/. You cannot use AWSLogs as a subfolder name.
This is a reserved term.
public String logFormat()
The fields to include in the flow log record, in the order in which they should appear. For a list of available fields, see Flow Log Records. If you omit this parameter, the flow log is created using the default format. If you specify this parameter, you must specify at least one field.
Specify the fields using the ${field-id} format, separated by spaces. For the AWS CLI, use single
quotation marks (' ') to surround the parameter value.
Specify the fields using the ${field-id} format, separated by spaces. For the AWS CLI, use
single quotation marks (' ') to surround the parameter value.
public boolean hasTagSpecifications()
public List<TagSpecification> tagSpecifications()
The tags to apply to the flow logs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTagSpecifications() to see if a value was sent in this field.
public Integer maxAggregationInterval()
The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 seconds (10 minutes).
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds or less, regardless of the value that you specify.
Default: 600
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds or less, regardless of the value that you specify.
Default: 600
public CreateFlowLogsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateFlowLogsRequest.Builder,CreateFlowLogsRequest>toBuilder in class Ec2Requestpublic static CreateFlowLogsRequest.Builder builder()
public static Class<? extends CreateFlowLogsRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.