public static interface CreateFlowLogsRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateFlowLogsRequest.Builder,CreateFlowLogsRequest>
Modifier and Type | Method and Description |
---|---|
CreateFlowLogsRequest.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateFlowLogsRequest.Builder |
deliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a log group.
|
CreateFlowLogsRequest.Builder |
logDestination(String logDestination)
Specifies the destination to which the flow log data is to be published.
|
CreateFlowLogsRequest.Builder |
logDestinationType(LogDestinationType logDestinationType)
Specifies the type of destination to which the flow log data is to be published.
|
CreateFlowLogsRequest.Builder |
logDestinationType(String logDestinationType)
Specifies the type of destination to which the flow log data is to be published.
|
CreateFlowLogsRequest.Builder |
logGroupName(String logGroupName)
The name of the log group.
|
CreateFlowLogsRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateFlowLogsRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateFlowLogsRequest.Builder |
resourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
|
CreateFlowLogsRequest.Builder |
resourceIds(String... resourceIds)
One or more subnet, network interface, or VPC IDs.
|
CreateFlowLogsRequest.Builder |
resourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.
|
CreateFlowLogsRequest.Builder |
resourceType(String resourceType)
The type of resource on which to create the flow log.
|
CreateFlowLogsRequest.Builder |
trafficType(String trafficType)
The type of traffic to log.
|
CreateFlowLogsRequest.Builder |
trafficType(TrafficType trafficType)
The type of traffic to log.
|
build
overrideConfiguration
copy
applyMutation, build
CreateFlowLogsRequest.Builder clientToken(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.CreateFlowLogsRequest.Builder deliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a log group.
deliverLogsPermissionArn
- The ARN for the IAM role that's used to post flow logs to a log group.CreateFlowLogsRequest.Builder logGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.CreateFlowLogsRequest.Builder resourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
resourceIds
- One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
CreateFlowLogsRequest.Builder resourceIds(String... resourceIds)
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
resourceIds
- One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
CreateFlowLogsRequest.Builder resourceType(String resourceType)
The type of resource on which to create the flow log.
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
,
FlowLogsResourceType
CreateFlowLogsRequest.Builder resourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
,
FlowLogsResourceType
CreateFlowLogsRequest.Builder trafficType(String trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
,
TrafficType
CreateFlowLogsRequest.Builder trafficType(TrafficType trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
,
TrafficType
CreateFlowLogsRequest.Builder logDestinationType(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
.
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
.
Default: cloud-watch-logs
LogDestinationType
,
LogDestinationType
CreateFlowLogsRequest.Builder logDestinationType(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
.
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
.
Default: cloud-watch-logs
LogDestinationType
,
LogDestinationType
CreateFlowLogsRequest.Builder logDestination(String logDestination)
Specifies the destination to which the flow log data is to be published. Flow log data can be published to an 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.
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 an 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.
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.
CreateFlowLogsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateFlowLogsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.