@Generated(value="software.amazon.awssdk:codegen") public class CreateFlowLogsRequest extends EC2Request implements software.amazon.awssdk.utils.builder.ToCopyableBuilder<CreateFlowLogsRequest.Builder,CreateFlowLogsRequest>
Contains the parameters for CreateFlowLogs.
| 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 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 CloudWatch Logs log group.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
logGroupName()
The name of the CloudWatch 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.
|
static Class<? extends CreateFlowLogsRequest.Builder> |
serializableBuilderClass() |
CreateFlowLogsRequest.Builder |
toBuilder() |
String |
toString() |
TrafficType |
trafficType()
The type of traffic to log.
|
String |
trafficTypeAsString()
The type of traffic to log.
|
requestOverrideConfigpublic String clientToken()
Unique, case-sensitive identifier 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 CloudWatch Logs log group.
public String logGroupName()
The name of the CloudWatch 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().
FlowLogsResourceTypepublic 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().
FlowLogsResourceTypepublic 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().
TrafficTypepublic 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().
TrafficTypepublic CreateFlowLogsRequest.Builder toBuilder()
toBuilder in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<CreateFlowLogsRequest.Builder,CreateFlowLogsRequest>toBuilder in class EC2Requestpublic static CreateFlowLogsRequest.Builder builder()
public static Class<? extends CreateFlowLogsRequest.Builder> serializableBuilderClass()
Copyright © 2018. All rights reserved.