@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's used to post flow logs to a log group.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
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 |
logGroupName()
The name of the log group.
|
List<String> |
resourceIds()
One or more subnet, network interface, or VPC IDs.
|
FlowLogsResourceType |
resourceType()
The type of resource on which to create the flow log.
|
String |
resourceTypeAsString()
The type of resource on which to create the flow log.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateFlowLogsRequest.Builder> |
serializableBuilderClass() |
CreateFlowLogsRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
TrafficType |
trafficType()
The type of traffic to log.
|
String |
trafficTypeAsString()
The type of traffic to log.
|
overrideConfiguration
copy
public 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's used to post flow logs to a log group.
public String logGroupName()
The name of the log group.
public List<String> resourceIds()
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Constraints: Maximum of 1000 resources
public FlowLogsResourceType resourceType()
The type of resource on which to create the flow log.
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()
.
FlowLogsResourceType
public String resourceTypeAsString()
The type of resource on which to create the flow log.
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()
.
FlowLogsResourceType
public TrafficType trafficType()
The type of traffic to 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 to 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 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
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
.
Default: cloud-watch-logs
LogDestinationType
public 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
.
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
.
Default: cloud-watch-logs
LogDestinationType
public 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.
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.
public CreateFlowLogsRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateFlowLogsRequest.Builder,CreateFlowLogsRequest>
toBuilder
in class Ec2Request
public static CreateFlowLogsRequest.Builder builder()
public static Class<? extends CreateFlowLogsRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.