public class CreateExportTaskRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket.
This is an asynchronous call. If all the required information is provided,
this operation initiates an export task and responds with the ID of the task.
After the task has started, you can use DescribeExportTasks to get the
status of the export task. Each account can only have one active (
RUNNING
or PENDING
) export task at a time. To
cancel an export task, use CancelExportTask.
You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate out log data for each export task, you can specify a prefix to be used as the Amazon S3 key prefix for all exported objects.
Constructor and Description |
---|
CreateExportTaskRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestination()
The name of S3 bucket for the exported log data.
|
java.lang.String |
getDestinationPrefix()
The prefix used as the start of the key for every object exported.
|
java.lang.Long |
getFrom()
The start time of the range for the request, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
java.lang.String |
getLogGroupName()
The name of the log group.
|
java.lang.String |
getLogStreamNamePrefix()
Export only log streams that match the provided prefix.
|
java.lang.String |
getTaskName()
The name of the export task.
|
java.lang.Long |
getTo()
The end time of the range for the request, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
int |
hashCode() |
void |
setDestination(java.lang.String destination)
The name of S3 bucket for the exported log data.
|
void |
setDestinationPrefix(java.lang.String destinationPrefix)
The prefix used as the start of the key for every object exported.
|
void |
setFrom(java.lang.Long from)
The start time of the range for the request, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
void |
setLogStreamNamePrefix(java.lang.String logStreamNamePrefix)
Export only log streams that match the provided prefix.
|
void |
setTaskName(java.lang.String taskName)
The name of the export task.
|
void |
setTo(java.lang.Long to)
The end time of the range for the request, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateExportTaskRequest |
withDestination(java.lang.String destination)
The name of S3 bucket for the exported log data.
|
CreateExportTaskRequest |
withDestinationPrefix(java.lang.String destinationPrefix)
The prefix used as the start of the key for every object exported.
|
CreateExportTaskRequest |
withFrom(java.lang.Long from)
The start time of the range for the request, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
CreateExportTaskRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
CreateExportTaskRequest |
withLogStreamNamePrefix(java.lang.String logStreamNamePrefix)
Export only log streams that match the provided prefix.
|
CreateExportTaskRequest |
withTaskName(java.lang.String taskName)
The name of the export task.
|
CreateExportTaskRequest |
withTo(java.lang.Long to)
The end time of the range for the request, expressed as the number of
milliseconds after Jan 1, 1970 00:00:00 UTC.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getTaskName()
The name of the export task.
Constraints:
Length: 1 - 512
The name of the export task.
public void setTaskName(java.lang.String taskName)
The name of the export task.
Constraints:
Length: 1 - 512
taskName
- The name of the export task.
public CreateExportTaskRequest withTaskName(java.lang.String taskName)
The name of the export task.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
taskName
- The name of the export task.
public java.lang.String getLogGroupName()
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
The name of the log group.
public void setLogGroupName(java.lang.String logGroupName)
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public CreateExportTaskRequest withLogGroupName(java.lang.String logGroupName)
The name of the log group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public java.lang.String getLogStreamNamePrefix()
Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.
public void setLogStreamNamePrefix(java.lang.String logStreamNamePrefix)
Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamNamePrefix
- Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.
public CreateExportTaskRequest withLogStreamNamePrefix(java.lang.String logStreamNamePrefix)
Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamNamePrefix
- Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.
public java.lang.Long getFrom()
The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not exported.
Constraints:
Range: 0 -
The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not exported.
public void setFrom(java.lang.Long from)
The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not exported.
Constraints:
Range: 0 -
from
- The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not exported.
public CreateExportTaskRequest withFrom(java.lang.Long from)
The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not exported.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
from
- The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not exported.
public java.lang.Long getTo()
The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not exported.
Constraints:
Range: 0 -
The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not exported.
public void setTo(java.lang.Long to)
The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not exported.
Constraints:
Range: 0 -
to
- The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not exported.
public CreateExportTaskRequest withTo(java.lang.Long to)
The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not exported.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
to
- The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not exported.
public java.lang.String getDestination()
The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.
Constraints:
Length: 1 - 512
The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.
public void setDestination(java.lang.String destination)
The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.
Constraints:
Length: 1 - 512
destination
- The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.
public CreateExportTaskRequest withDestination(java.lang.String destination)
The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
destination
- The name of S3 bucket for the exported log data. The bucket must be in the same AWS region.
public java.lang.String getDestinationPrefix()
The prefix used as the start of the key for every object exported. If you
don't specify a value, the default is exportedlogs
.
The prefix used as the start of the key for every object
exported. If you don't specify a value, the default is
exportedlogs
.
public void setDestinationPrefix(java.lang.String destinationPrefix)
The prefix used as the start of the key for every object exported. If you
don't specify a value, the default is exportedlogs
.
destinationPrefix
-
The prefix used as the start of the key for every object
exported. If you don't specify a value, the default is
exportedlogs
.
public CreateExportTaskRequest withDestinationPrefix(java.lang.String destinationPrefix)
The prefix used as the start of the key for every object exported. If you
don't specify a value, the default is exportedlogs
.
Returns a reference to this object so that method calls can be chained together.
destinationPrefix
-
The prefix used as the start of the key for every object
exported. If you don't specify a value, the default is
exportedlogs
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.