@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFlowLogsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateFlowLogsRequest>
NOOP
Constructor and Description |
---|
CreateFlowLogsRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFlowLogsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getDeliverLogsPermissionArn()
The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your
account.
|
Request<CreateFlowLogsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getLogDestination()
Specifies the destination to which the flow log data is to be published.
|
String |
getLogDestinationType()
Specifies the type of destination to which the flow log data is to be published.
|
String |
getLogFormat()
The fields to include in the flow log record, in the order in which they should appear.
|
String |
getLogGroupName()
The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.
|
Integer |
getMaxAggregationInterval()
The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.
|
List<String> |
getResourceIds()
The ID of the subnet, network interface, or VPC for which you want to create a flow log.
|
String |
getResourceType()
The type of resource for which to create the flow log.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the flow logs.
|
String |
getTrafficType()
The type of traffic to log.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setDeliverLogsPermissionArn(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.
|
void |
setLogDestination(String logDestination)
Specifies the destination to which the flow log data is to be published.
|
void |
setLogDestinationType(LogDestinationType logDestinationType)
Specifies the type of destination to which the flow log data is to be published.
|
void |
setLogDestinationType(String logDestinationType)
Specifies the type of destination to which the flow log data is to be published.
|
void |
setLogFormat(String logFormat)
The fields to include in the flow log record, in the order in which they should appear.
|
void |
setLogGroupName(String logGroupName)
The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.
|
void |
setMaxAggregationInterval(Integer maxAggregationInterval)
The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.
|
void |
setResourceIds(Collection<String> resourceIds)
The ID of the subnet, network interface, or VPC for which you want to create a flow log.
|
void |
setResourceType(FlowLogsResourceType resourceType)
The type of resource for which to create the flow log.
|
void |
setResourceType(String resourceType)
The type of resource for which to create the flow log.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the flow logs.
|
void |
setTrafficType(String trafficType)
The type of traffic to log.
|
void |
setTrafficType(TrafficType trafficType)
The type of traffic to log.
|
String |
toString()
Returns a string representation of this object.
|
CreateFlowLogsRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateFlowLogsRequest |
withDeliverLogsPermissionArn(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.
|
CreateFlowLogsRequest |
withLogDestination(String logDestination)
Specifies the destination to which the flow log data is to be published.
|
CreateFlowLogsRequest |
withLogDestinationType(LogDestinationType logDestinationType)
Specifies the type of destination to which the flow log data is to be published.
|
CreateFlowLogsRequest |
withLogDestinationType(String logDestinationType)
Specifies the type of destination to which the flow log data is to be published.
|
CreateFlowLogsRequest |
withLogFormat(String logFormat)
The fields to include in the flow log record, in the order in which they should appear.
|
CreateFlowLogsRequest |
withLogGroupName(String logGroupName)
The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.
|
CreateFlowLogsRequest |
withMaxAggregationInterval(Integer maxAggregationInterval)
The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.
|
CreateFlowLogsRequest |
withResourceIds(Collection<String> resourceIds)
The ID of the subnet, network interface, or VPC for which you want to create a flow log.
|
CreateFlowLogsRequest |
withResourceIds(String... resourceIds)
The ID of the subnet, network interface, or VPC for which you want to create a flow log.
|
CreateFlowLogsRequest |
withResourceType(FlowLogsResourceType resourceType)
The type of resource for which to create the flow log.
|
CreateFlowLogsRequest |
withResourceType(String resourceType)
The type of resource for which to create the flow log.
|
CreateFlowLogsRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the flow logs.
|
CreateFlowLogsRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the flow logs.
|
CreateFlowLogsRequest |
withTrafficType(String trafficType)
The type of traffic to log.
|
CreateFlowLogsRequest |
withTrafficType(TrafficType trafficType)
The type of traffic to log.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
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 getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
public CreateFlowLogsRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to Ensure
Idempotency.public void setDeliverLogsPermissionArn(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
.
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
.
public String getDeliverLogsPermissionArn()
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 CreateFlowLogsRequest withDeliverLogsPermissionArn(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
.
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
.
public void setLogGroupName(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
.
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
.
public String getLogGroupName()
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 CreateFlowLogsRequest withLogGroupName(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
.
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
.
public List<String> getResourceIds()
The ID of the subnet, network interface, or VPC for which you want to create a flow log.
Constraints: Maximum of 1000 resources
Constraints: Maximum of 1000 resources
public void setResourceIds(Collection<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
resourceIds
- The ID of the subnet, network interface, or VPC for which you want to create a flow log.
Constraints: Maximum of 1000 resources
public CreateFlowLogsRequest withResourceIds(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
NOTE: This method appends the values to the existing list (if any). Use
setResourceIds(java.util.Collection)
or withResourceIds(java.util.Collection)
if you want to
override the existing values.
resourceIds
- The ID of the subnet, network interface, or VPC for which you want to create a flow log.
Constraints: Maximum of 1000 resources
public CreateFlowLogsRequest withResourceIds(Collection<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
resourceIds
- The ID of the subnet, network interface, or VPC for which you want to create a flow log.
Constraints: Maximum of 1000 resources
public void setResourceType(String 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.
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.FlowLogsResourceType
public String getResourceType()
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.
ResourceId
property, specify VPC
for this property.FlowLogsResourceType
public CreateFlowLogsRequest withResourceType(String 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.
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.FlowLogsResourceType
public void setResourceType(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.
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.FlowLogsResourceType
public CreateFlowLogsRequest withResourceType(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.
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.FlowLogsResourceType
public void setTrafficType(String trafficType)
The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
trafficType
- The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.TrafficType
public String getTrafficType()
The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
TrafficType
public CreateFlowLogsRequest withTrafficType(String trafficType)
The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
trafficType
- The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.TrafficType
public void setTrafficType(TrafficType trafficType)
The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
trafficType
- The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.TrafficType
public CreateFlowLogsRequest withTrafficType(TrafficType trafficType)
The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
trafficType
- The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.TrafficType
public void setLogDestinationType(String 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
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
LogDestinationType
public String getLogDestinationType()
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
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
LogDestinationType
public CreateFlowLogsRequest withLogDestinationType(String 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
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
LogDestinationType
public void setLogDestinationType(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
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
LogDestinationType
public CreateFlowLogsRequest withLogDestinationType(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
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
LogDestinationType
public void setLogDestination(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.
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.
public String getLogDestination()
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 CreateFlowLogsRequest withLogDestination(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.
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.
public void setLogFormat(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.
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.
public String getLogFormat()
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 CreateFlowLogsRequest withLogFormat(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.
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.
public List<TagSpecification> getTagSpecifications()
The tags to apply to the flow logs.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the flow logs.
tagSpecifications
- The tags to apply to the flow logs.public CreateFlowLogsRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the flow logs.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the flow logs.public CreateFlowLogsRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the flow logs.
tagSpecifications
- The tags to apply to the flow logs.public void setMaxAggregationInterval(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
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
public Integer getMaxAggregationInterval()
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 withMaxAggregationInterval(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
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
public Request<CreateFlowLogsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateFlowLogsRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateFlowLogsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()