@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFlowLogsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateFlowLogsRequest>
Contains the parameters for CreateFlowLogs.
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's used to post flow logs to a log group.
|
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 |
getLogGroupName()
The name of the log group.
|
List<String> |
getResourceIds()
One or more subnet, network interface, or VPC IDs.
|
String |
getResourceType()
The type of resource on which to create the flow log.
|
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's used to post flow logs to a log group.
|
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 |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setResourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
|
void |
setResourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.
|
void |
setResourceType(String resourceType)
The type of resource on which to create the flow log.
|
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; useful for testing and debugging.
|
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's used to post flow logs to a log group.
|
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 |
withLogGroupName(String logGroupName)
The name of the log group.
|
CreateFlowLogsRequest |
withResourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
|
CreateFlowLogsRequest |
withResourceIds(String... resourceIds)
One or more subnet, network interface, or VPC IDs.
|
CreateFlowLogsRequest |
withResourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.
|
CreateFlowLogsRequest |
withResourceType(String resourceType)
The type of resource on which to create the flow log.
|
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'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.public String getDeliverLogsPermissionArn()
The ARN for the IAM role that's used to post flow logs to a log group.
public CreateFlowLogsRequest withDeliverLogsPermissionArn(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.public void setLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public String getLogGroupName()
The name of the log group.
public CreateFlowLogsRequest withLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public List<String> getResourceIds()
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
Constraints: Maximum of 1000 resources
public void setResourceIds(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
public CreateFlowLogsRequest withResourceIds(String... resourceIds)
One or more subnet, network interface, or VPC IDs.
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
- One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
public CreateFlowLogsRequest withResourceIds(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
public void setResourceType(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
public String getResourceType()
The type of resource on which to create the flow log.
FlowLogsResourceType
public CreateFlowLogsRequest withResourceType(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
public void setResourceType(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
public CreateFlowLogsRequest withResourceType(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
public void setTrafficType(String trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
public String getTrafficType()
The type of traffic to log.
TrafficType
public CreateFlowLogsRequest withTrafficType(String trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
public void setTrafficType(TrafficType trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.TrafficType
public CreateFlowLogsRequest withTrafficType(TrafficType trafficType)
The type of traffic to log.
trafficType
- The type of traffic to log.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
.
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
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
.
Default: cloud-watch-logs
cloud-watch-logs
. To publish flow log data to Amazon S3, specify s3
.
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
.
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
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
.
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
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
.
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
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 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/
.
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/
.
public String getLogDestination()
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/
.
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/
.
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 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/
.
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/
.
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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.