@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Command extends Object implements Serializable, Cloneable, StructuredPojo
Describes a command request.
Constructor and Description |
---|
Command() |
Modifier and Type | Method and Description |
---|---|
Command |
addParametersEntry(String key,
List<String> value)
Add a single Parameters entry
|
Command |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Command |
clone() |
boolean |
equals(Object obj) |
AlarmConfiguration |
getAlarmConfiguration()
The details for the CloudWatch alarm applied to your command.
|
CloudWatchOutputConfig |
getCloudWatchOutputConfig()
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
|
String |
getCommandId()
A unique identifier for this command.
|
String |
getComment()
User-specified information about the command, such as a brief description of what the command should do.
|
Integer |
getCompletedCount()
The number of targets for which the command invocation reached a terminal state.
|
Integer |
getDeliveryTimedOutCount()
The number of targets for which the status is Delivery Timed Out.
|
String |
getDocumentName()
The name of the document requested for execution.
|
String |
getDocumentVersion()
The Systems Manager document (SSM document) version.
|
Integer |
getErrorCount()
The number of targets for which the status is Failed or Execution Timed Out.
|
Date |
getExpiresAfter()
If a command expires, it changes status to
DeliveryTimedOut for all invocations that have the status
InProgress , Pending , or Delayed . |
List<String> |
getInstanceIds()
The managed node IDs against which this command was requested.
|
String |
getMaxConcurrency()
The maximum number of managed nodes that are allowed to run the command at the same time.
|
String |
getMaxErrors()
The maximum number of errors allowed before the system stops sending the command to additional targets.
|
NotificationConfig |
getNotificationConfig()
Configurations for sending notifications about command status changes.
|
String |
getOutputS3BucketName()
The S3 bucket where the responses to the command executions should be stored.
|
String |
getOutputS3KeyPrefix()
The S3 directory path inside the bucket where the responses to the command executions should be stored.
|
String |
getOutputS3Region()
(Deprecated) You can no longer specify this parameter.
|
Map<String,List<String>> |
getParameters()
The parameter values to be inserted in the document when running the command.
|
Date |
getRequestedDateTime()
The date and time the command was requested.
|
String |
getServiceRole()
The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web Services
Systems Manager, uses to act on your behalf when sending notifications about command status changes.
|
String |
getStatus()
The status of the command.
|
String |
getStatusDetails()
A detailed status of the command execution.
|
Integer |
getTargetCount()
The number of targets for the command.
|
List<Target> |
getTargets()
An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
|
Integer |
getTimeoutSeconds()
The
TimeoutSeconds value specified for a command. |
List<AlarmStateInformation> |
getTriggeredAlarms()
The CloudWatch alarm that was invoked by the command.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlarmConfiguration(AlarmConfiguration alarmConfiguration)
The details for the CloudWatch alarm applied to your command.
|
void |
setCloudWatchOutputConfig(CloudWatchOutputConfig cloudWatchOutputConfig)
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
|
void |
setCommandId(String commandId)
A unique identifier for this command.
|
void |
setComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
|
void |
setCompletedCount(Integer completedCount)
The number of targets for which the command invocation reached a terminal state.
|
void |
setDeliveryTimedOutCount(Integer deliveryTimedOutCount)
The number of targets for which the status is Delivery Timed Out.
|
void |
setDocumentName(String documentName)
The name of the document requested for execution.
|
void |
setDocumentVersion(String documentVersion)
The Systems Manager document (SSM document) version.
|
void |
setErrorCount(Integer errorCount)
The number of targets for which the status is Failed or Execution Timed Out.
|
void |
setExpiresAfter(Date expiresAfter)
If a command expires, it changes status to
DeliveryTimedOut for all invocations that have the status
InProgress , Pending , or Delayed . |
void |
setInstanceIds(Collection<String> instanceIds)
The managed node IDs against which this command was requested.
|
void |
setMaxConcurrency(String maxConcurrency)
The maximum number of managed nodes that are allowed to run the command at the same time.
|
void |
setMaxErrors(String maxErrors)
The maximum number of errors allowed before the system stops sending the command to additional targets.
|
void |
setNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes.
|
void |
setOutputS3BucketName(String outputS3BucketName)
The S3 bucket where the responses to the command executions should be stored.
|
void |
setOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 directory path inside the bucket where the responses to the command executions should be stored.
|
void |
setOutputS3Region(String outputS3Region)
(Deprecated) You can no longer specify this parameter.
|
void |
setParameters(Map<String,List<String>> parameters)
The parameter values to be inserted in the document when running the command.
|
void |
setRequestedDateTime(Date requestedDateTime)
The date and time the command was requested.
|
void |
setServiceRole(String serviceRole)
The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web Services
Systems Manager, uses to act on your behalf when sending notifications about command status changes.
|
void |
setStatus(CommandStatus status)
The status of the command.
|
void |
setStatus(String status)
The status of the command.
|
void |
setStatusDetails(String statusDetails)
A detailed status of the command execution.
|
void |
setTargetCount(Integer targetCount)
The number of targets for the command.
|
void |
setTargets(Collection<Target> targets)
An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
|
void |
setTimeoutSeconds(Integer timeoutSeconds)
The
TimeoutSeconds value specified for a command. |
void |
setTriggeredAlarms(Collection<AlarmStateInformation> triggeredAlarms)
The CloudWatch alarm that was invoked by the command.
|
String |
toString()
Returns a string representation of this object.
|
Command |
withAlarmConfiguration(AlarmConfiguration alarmConfiguration)
The details for the CloudWatch alarm applied to your command.
|
Command |
withCloudWatchOutputConfig(CloudWatchOutputConfig cloudWatchOutputConfig)
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
|
Command |
withCommandId(String commandId)
A unique identifier for this command.
|
Command |
withComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
|
Command |
withCompletedCount(Integer completedCount)
The number of targets for which the command invocation reached a terminal state.
|
Command |
withDeliveryTimedOutCount(Integer deliveryTimedOutCount)
The number of targets for which the status is Delivery Timed Out.
|
Command |
withDocumentName(String documentName)
The name of the document requested for execution.
|
Command |
withDocumentVersion(String documentVersion)
The Systems Manager document (SSM document) version.
|
Command |
withErrorCount(Integer errorCount)
The number of targets for which the status is Failed or Execution Timed Out.
|
Command |
withExpiresAfter(Date expiresAfter)
If a command expires, it changes status to
DeliveryTimedOut for all invocations that have the status
InProgress , Pending , or Delayed . |
Command |
withInstanceIds(Collection<String> instanceIds)
The managed node IDs against which this command was requested.
|
Command |
withInstanceIds(String... instanceIds)
The managed node IDs against which this command was requested.
|
Command |
withMaxConcurrency(String maxConcurrency)
The maximum number of managed nodes that are allowed to run the command at the same time.
|
Command |
withMaxErrors(String maxErrors)
The maximum number of errors allowed before the system stops sending the command to additional targets.
|
Command |
withNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes.
|
Command |
withOutputS3BucketName(String outputS3BucketName)
The S3 bucket where the responses to the command executions should be stored.
|
Command |
withOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 directory path inside the bucket where the responses to the command executions should be stored.
|
Command |
withOutputS3Region(String outputS3Region)
(Deprecated) You can no longer specify this parameter.
|
Command |
withParameters(Map<String,List<String>> parameters)
The parameter values to be inserted in the document when running the command.
|
Command |
withRequestedDateTime(Date requestedDateTime)
The date and time the command was requested.
|
Command |
withServiceRole(String serviceRole)
The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web Services
Systems Manager, uses to act on your behalf when sending notifications about command status changes.
|
Command |
withStatus(CommandStatus status)
The status of the command.
|
Command |
withStatus(String status)
The status of the command.
|
Command |
withStatusDetails(String statusDetails)
A detailed status of the command execution.
|
Command |
withTargetCount(Integer targetCount)
The number of targets for the command.
|
Command |
withTargets(Collection<Target> targets)
An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
|
Command |
withTargets(Target... targets)
An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
|
Command |
withTimeoutSeconds(Integer timeoutSeconds)
The
TimeoutSeconds value specified for a command. |
Command |
withTriggeredAlarms(AlarmStateInformation... triggeredAlarms)
The CloudWatch alarm that was invoked by the command.
|
Command |
withTriggeredAlarms(Collection<AlarmStateInformation> triggeredAlarms)
The CloudWatch alarm that was invoked by the command.
|
public void setCommandId(String commandId)
A unique identifier for this command.
commandId
- A unique identifier for this command.public String getCommandId()
A unique identifier for this command.
public Command withCommandId(String commandId)
A unique identifier for this command.
commandId
- A unique identifier for this command.public void setDocumentName(String documentName)
The name of the document requested for execution.
documentName
- The name of the document requested for execution.public String getDocumentName()
The name of the document requested for execution.
public Command withDocumentName(String documentName)
The name of the document requested for execution.
documentName
- The name of the document requested for execution.public void setDocumentVersion(String documentVersion)
The Systems Manager document (SSM document) version.
documentVersion
- The Systems Manager document (SSM document) version.public String getDocumentVersion()
The Systems Manager document (SSM document) version.
public Command withDocumentVersion(String documentVersion)
The Systems Manager document (SSM document) version.
documentVersion
- The Systems Manager document (SSM document) version.public void setComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
comment
- User-specified information about the command, such as a brief description of what the command should do.public String getComment()
User-specified information about the command, such as a brief description of what the command should do.
public Command withComment(String comment)
User-specified information about the command, such as a brief description of what the command should do.
comment
- User-specified information about the command, such as a brief description of what the command should do.public void setExpiresAfter(Date expiresAfter)
If a command expires, it changes status to DeliveryTimedOut
for all invocations that have the status
InProgress
, Pending
, or Delayed
. ExpiresAfter
is calculated
based on the total timeout for the overall command. For more information, see Understanding command timeout values in the Amazon Web Services Systems Manager User Guide.
expiresAfter
- If a command expires, it changes status to DeliveryTimedOut
for all invocations that have the
status InProgress
, Pending
, or Delayed
. ExpiresAfter
is calculated based on the total timeout for the overall command. For more information, see Understanding command timeout values in the Amazon Web Services Systems Manager User Guide.public Date getExpiresAfter()
If a command expires, it changes status to DeliveryTimedOut
for all invocations that have the status
InProgress
, Pending
, or Delayed
. ExpiresAfter
is calculated
based on the total timeout for the overall command. For more information, see Understanding command timeout values in the Amazon Web Services Systems Manager User Guide.
DeliveryTimedOut
for all invocations that have
the status InProgress
, Pending
, or Delayed
.
ExpiresAfter
is calculated based on the total timeout for the overall command. For more
information, see Understanding command timeout values in the Amazon Web Services Systems Manager User Guide.public Command withExpiresAfter(Date expiresAfter)
If a command expires, it changes status to DeliveryTimedOut
for all invocations that have the status
InProgress
, Pending
, or Delayed
. ExpiresAfter
is calculated
based on the total timeout for the overall command. For more information, see Understanding command timeout values in the Amazon Web Services Systems Manager User Guide.
expiresAfter
- If a command expires, it changes status to DeliveryTimedOut
for all invocations that have the
status InProgress
, Pending
, or Delayed
. ExpiresAfter
is calculated based on the total timeout for the overall command. For more information, see Understanding command timeout values in the Amazon Web Services Systems Manager User Guide.public Map<String,List<String>> getParameters()
The parameter values to be inserted in the document when running the command.
public void setParameters(Map<String,List<String>> parameters)
The parameter values to be inserted in the document when running the command.
parameters
- The parameter values to be inserted in the document when running the command.public Command withParameters(Map<String,List<String>> parameters)
The parameter values to be inserted in the document when running the command.
parameters
- The parameter values to be inserted in the document when running the command.public Command addParametersEntry(String key, List<String> value)
public Command clearParametersEntries()
public List<String> getInstanceIds()
The managed node IDs against which this command was requested.
public void setInstanceIds(Collection<String> instanceIds)
The managed node IDs against which this command was requested.
instanceIds
- The managed node IDs against which this command was requested.public Command withInstanceIds(String... instanceIds)
The managed node IDs against which this command was requested.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceIds(java.util.Collection)
or withInstanceIds(java.util.Collection)
if you want to
override the existing values.
instanceIds
- The managed node IDs against which this command was requested.public Command withInstanceIds(Collection<String> instanceIds)
The managed node IDs against which this command was requested.
instanceIds
- The managed node IDs against which this command was requested.public List<Target> getTargets()
An array of search criteria that targets managed nodes using a Key,Value combination that you specify. Targets is required if you don't provide one or more managed node IDs in the call.
public void setTargets(Collection<Target> targets)
An array of search criteria that targets managed nodes using a Key,Value combination that you specify. Targets is required if you don't provide one or more managed node IDs in the call.
targets
- An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
Targets is required if you don't provide one or more managed node IDs in the call.public Command withTargets(Target... targets)
An array of search criteria that targets managed nodes using a Key,Value combination that you specify. Targets is required if you don't provide one or more managed node IDs in the call.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
Targets is required if you don't provide one or more managed node IDs in the call.public Command withTargets(Collection<Target> targets)
An array of search criteria that targets managed nodes using a Key,Value combination that you specify. Targets is required if you don't provide one or more managed node IDs in the call.
targets
- An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
Targets is required if you don't provide one or more managed node IDs in the call.public void setRequestedDateTime(Date requestedDateTime)
The date and time the command was requested.
requestedDateTime
- The date and time the command was requested.public Date getRequestedDateTime()
The date and time the command was requested.
public Command withRequestedDateTime(Date requestedDateTime)
The date and time the command was requested.
requestedDateTime
- The date and time the command was requested.public void setStatus(String status)
The status of the command.
status
- The status of the command.CommandStatus
public String getStatus()
The status of the command.
CommandStatus
public Command withStatus(String status)
The status of the command.
status
- The status of the command.CommandStatus
public void setStatus(CommandStatus status)
The status of the command.
status
- The status of the command.CommandStatus
public Command withStatus(CommandStatus status)
The status of the command.
status
- The status of the command.CommandStatus
public void setStatusDetails(String statusDetails)
A detailed status of the command execution. StatusDetails
includes more information than
Status
because it includes states resulting from error and concurrency control parameters.
StatusDetails
can show different results than Status. For more information about these statuses, see
Understanding
command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of
the following values:
Pending: The command hasn't been sent to any managed nodes.
In Progress: The command has been sent to at least one managed node but hasn't reached a final state on all managed nodes.
Success: The command successfully ran on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all managed nodes and one or more invocations doesn't have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Cancelled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of managed nodes targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before running it on any managed node. This is a terminal state.
Delayed: The system attempted to send the command to the managed node but wasn't successful. The system retries again.
statusDetails
- A detailed status of the command execution. StatusDetails
includes more information than
Status
because it includes states resulting from error and concurrency control parameters.
StatusDetails
can show different results than Status. For more information about these
statuses, see Understanding
command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be
one of the following values:
Pending: The command hasn't been sent to any managed nodes.
In Progress: The command has been sent to at least one managed node but hasn't reached a final state on all managed nodes.
Success: The command successfully ran on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all managed nodes and one or more invocations doesn't have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Cancelled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of managed nodes targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before running it on any managed node. This is a terminal state.
Delayed: The system attempted to send the command to the managed node but wasn't successful. The system retries again.
public String getStatusDetails()
A detailed status of the command execution. StatusDetails
includes more information than
Status
because it includes states resulting from error and concurrency control parameters.
StatusDetails
can show different results than Status. For more information about these statuses, see
Understanding
command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of
the following values:
Pending: The command hasn't been sent to any managed nodes.
In Progress: The command has been sent to at least one managed node but hasn't reached a final state on all managed nodes.
Success: The command successfully ran on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all managed nodes and one or more invocations doesn't have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Cancelled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of managed nodes targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before running it on any managed node. This is a terminal state.
Delayed: The system attempted to send the command to the managed node but wasn't successful. The system retries again.
StatusDetails
includes more information than
Status
because it includes states resulting from error and concurrency control parameters.
StatusDetails
can show different results than Status. For more information about these
statuses, see Understanding
command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be
one of the following values:
Pending: The command hasn't been sent to any managed nodes.
In Progress: The command has been sent to at least one managed node but hasn't reached a final state on all managed nodes.
Success: The command successfully ran on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all managed nodes and one or more invocations doesn't have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Cancelled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of managed nodes targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before running it on any managed node. This is a terminal state.
Delayed: The system attempted to send the command to the managed node but wasn't successful. The system retries again.
public Command withStatusDetails(String statusDetails)
A detailed status of the command execution. StatusDetails
includes more information than
Status
because it includes states resulting from error and concurrency control parameters.
StatusDetails
can show different results than Status. For more information about these statuses, see
Understanding
command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of
the following values:
Pending: The command hasn't been sent to any managed nodes.
In Progress: The command has been sent to at least one managed node but hasn't reached a final state on all managed nodes.
Success: The command successfully ran on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all managed nodes and one or more invocations doesn't have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Cancelled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of managed nodes targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before running it on any managed node. This is a terminal state.
Delayed: The system attempted to send the command to the managed node but wasn't successful. The system retries again.
statusDetails
- A detailed status of the command execution. StatusDetails
includes more information than
Status
because it includes states resulting from error and concurrency control parameters.
StatusDetails
can show different results than Status. For more information about these
statuses, see Understanding
command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be
one of the following values:
Pending: The command hasn't been sent to any managed nodes.
In Progress: The command has been sent to at least one managed node but hasn't reached a final state on all managed nodes.
Success: The command successfully ran on all invocations. This is a terminal state.
Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of Delivery Timed Out. This is a terminal state.
Execution Timed Out: The value of MaxErrors or more command invocations shows a status of Execution Timed Out. This is a terminal state.
Failed: The value of MaxErrors or more command invocations shows a status of Failed. This is a terminal state.
Incomplete: The command was attempted on all managed nodes and one or more invocations doesn't have a value of Success but not enough invocations failed for the status to be Failed. This is a terminal state.
Cancelled: The command was terminated before it was completed. This is a terminal state.
Rate Exceeded: The number of managed nodes targeted by the command exceeded the account limit for pending invocations. The system has canceled the command before running it on any managed node. This is a terminal state.
Delayed: The system attempted to send the command to the managed node but wasn't successful. The system retries again.
public void setOutputS3Region(String outputS3Region)
(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon Web Services Region of the S3 bucket.
outputS3Region
- (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager
automatically determines the Amazon Web Services Region of the S3 bucket.public String getOutputS3Region()
(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon Web Services Region of the S3 bucket.
public Command withOutputS3Region(String outputS3Region)
(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager automatically determines the Amazon Web Services Region of the S3 bucket.
outputS3Region
- (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager
automatically determines the Amazon Web Services Region of the S3 bucket.public void setOutputS3BucketName(String outputS3BucketName)
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
outputS3BucketName
- The S3 bucket where the responses to the command executions should be stored. This was requested when
issuing the command.public String getOutputS3BucketName()
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
public Command withOutputS3BucketName(String outputS3BucketName)
The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.
outputS3BucketName
- The S3 bucket where the responses to the command executions should be stored. This was requested when
issuing the command.public void setOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
outputS3KeyPrefix
- The S3 directory path inside the bucket where the responses to the command executions should be stored.
This was requested when issuing the command.public String getOutputS3KeyPrefix()
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
public Command withOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.
outputS3KeyPrefix
- The S3 directory path inside the bucket where the responses to the command executions should be stored.
This was requested when issuing the command.public void setMaxConcurrency(String maxConcurrency)
The maximum number of managed nodes that are allowed to run the command at the same time. You can specify a
number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The default value is 50. For more
information about how to use MaxConcurrency
, see Amazon Web Services Systems
Manager Run Command in the Amazon Web Services Systems Manager User Guide.
maxConcurrency
- The maximum number of managed nodes that are allowed to run the command at the same time. You can specify
a number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The default value is 50. For
more information about how to use MaxConcurrency
, see Amazon Web Services
Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.public String getMaxConcurrency()
The maximum number of managed nodes that are allowed to run the command at the same time. You can specify a
number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The default value is 50. For more
information about how to use MaxConcurrency
, see Amazon Web Services Systems
Manager Run Command in the Amazon Web Services Systems Manager User Guide.
MaxConcurrency
, see Amazon Web Services
Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.public Command withMaxConcurrency(String maxConcurrency)
The maximum number of managed nodes that are allowed to run the command at the same time. You can specify a
number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The default value is 50. For more
information about how to use MaxConcurrency
, see Amazon Web Services Systems
Manager Run Command in the Amazon Web Services Systems Manager User Guide.
maxConcurrency
- The maximum number of managed nodes that are allowed to run the command at the same time. You can specify
a number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The default value is 50. For
more information about how to use MaxConcurrency
, see Amazon Web Services
Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.public void setMaxErrors(String maxErrors)
The maximum number of errors allowed before the system stops sending the command to additional targets. You can
specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is
0
. For more information about how to use MaxErrors
, see Amazon Web Services Systems
Manager Run Command in the Amazon Web Services Systems Manager User Guide.
maxErrors
- The maximum number of errors allowed before the system stops sending the command to additional targets.
You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value
is 0
. For more information about how to use MaxErrors
, see Amazon Web Services
Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.public String getMaxErrors()
The maximum number of errors allowed before the system stops sending the command to additional targets. You can
specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is
0
. For more information about how to use MaxErrors
, see Amazon Web Services Systems
Manager Run Command in the Amazon Web Services Systems Manager User Guide.
0
. For more information about how to use MaxErrors
, see Amazon Web Services
Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.public Command withMaxErrors(String maxErrors)
The maximum number of errors allowed before the system stops sending the command to additional targets. You can
specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is
0
. For more information about how to use MaxErrors
, see Amazon Web Services Systems
Manager Run Command in the Amazon Web Services Systems Manager User Guide.
maxErrors
- The maximum number of errors allowed before the system stops sending the command to additional targets.
You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value
is 0
. For more information about how to use MaxErrors
, see Amazon Web Services
Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.public void setTargetCount(Integer targetCount)
The number of targets for the command.
targetCount
- The number of targets for the command.public Integer getTargetCount()
The number of targets for the command.
public Command withTargetCount(Integer targetCount)
The number of targets for the command.
targetCount
- The number of targets for the command.public void setCompletedCount(Integer completedCount)
The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Cancelled, Terminated, or Undeliverable.
completedCount
- The number of targets for which the command invocation reached a terminal state. Terminal states include
the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Cancelled, Terminated, or
Undeliverable.public Integer getCompletedCount()
The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Cancelled, Terminated, or Undeliverable.
public Command withCompletedCount(Integer completedCount)
The number of targets for which the command invocation reached a terminal state. Terminal states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Cancelled, Terminated, or Undeliverable.
completedCount
- The number of targets for which the command invocation reached a terminal state. Terminal states include
the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Cancelled, Terminated, or
Undeliverable.public void setErrorCount(Integer errorCount)
The number of targets for which the status is Failed or Execution Timed Out.
errorCount
- The number of targets for which the status is Failed or Execution Timed Out.public Integer getErrorCount()
The number of targets for which the status is Failed or Execution Timed Out.
public Command withErrorCount(Integer errorCount)
The number of targets for which the status is Failed or Execution Timed Out.
errorCount
- The number of targets for which the status is Failed or Execution Timed Out.public void setDeliveryTimedOutCount(Integer deliveryTimedOutCount)
The number of targets for which the status is Delivery Timed Out.
deliveryTimedOutCount
- The number of targets for which the status is Delivery Timed Out.public Integer getDeliveryTimedOutCount()
The number of targets for which the status is Delivery Timed Out.
public Command withDeliveryTimedOutCount(Integer deliveryTimedOutCount)
The number of targets for which the status is Delivery Timed Out.
deliveryTimedOutCount
- The number of targets for which the status is Delivery Timed Out.public void setServiceRole(String serviceRole)
The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes.
serviceRole
- The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web
Services Systems Manager, uses to act on your behalf when sending notifications about command status
changes.public String getServiceRole()
The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes.
public Command withServiceRole(String serviceRole)
The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes.
serviceRole
- The Identity and Access Management (IAM) service role that Run Command, a capability of Amazon Web
Services Systems Manager, uses to act on your behalf when sending notifications about command status
changes.public void setNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes.
notificationConfig
- Configurations for sending notifications about command status changes.public NotificationConfig getNotificationConfig()
Configurations for sending notifications about command status changes.
public Command withNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes.
notificationConfig
- Configurations for sending notifications about command status changes.public void setCloudWatchOutputConfig(CloudWatchOutputConfig cloudWatchOutputConfig)
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
cloudWatchOutputConfig
- Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command
output.public CloudWatchOutputConfig getCloudWatchOutputConfig()
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
public Command withCloudWatchOutputConfig(CloudWatchOutputConfig cloudWatchOutputConfig)
Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.
cloudWatchOutputConfig
- Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command
output.public void setTimeoutSeconds(Integer timeoutSeconds)
The TimeoutSeconds
value specified for a command.
timeoutSeconds
- The TimeoutSeconds
value specified for a command.public Integer getTimeoutSeconds()
The TimeoutSeconds
value specified for a command.
TimeoutSeconds
value specified for a command.public Command withTimeoutSeconds(Integer timeoutSeconds)
The TimeoutSeconds
value specified for a command.
timeoutSeconds
- The TimeoutSeconds
value specified for a command.public void setAlarmConfiguration(AlarmConfiguration alarmConfiguration)
The details for the CloudWatch alarm applied to your command.
alarmConfiguration
- The details for the CloudWatch alarm applied to your command.public AlarmConfiguration getAlarmConfiguration()
The details for the CloudWatch alarm applied to your command.
public Command withAlarmConfiguration(AlarmConfiguration alarmConfiguration)
The details for the CloudWatch alarm applied to your command.
alarmConfiguration
- The details for the CloudWatch alarm applied to your command.public List<AlarmStateInformation> getTriggeredAlarms()
The CloudWatch alarm that was invoked by the command.
public void setTriggeredAlarms(Collection<AlarmStateInformation> triggeredAlarms)
The CloudWatch alarm that was invoked by the command.
triggeredAlarms
- The CloudWatch alarm that was invoked by the command.public Command withTriggeredAlarms(AlarmStateInformation... triggeredAlarms)
The CloudWatch alarm that was invoked by the command.
NOTE: This method appends the values to the existing list (if any). Use
setTriggeredAlarms(java.util.Collection)
or withTriggeredAlarms(java.util.Collection)
if you
want to override the existing values.
triggeredAlarms
- The CloudWatch alarm that was invoked by the command.public Command withTriggeredAlarms(Collection<AlarmStateInformation> triggeredAlarms)
The CloudWatch alarm that was invoked by the command.
triggeredAlarms
- The CloudWatch alarm that was invoked by the command.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.