@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MaintenanceWindowRunCommandParameters extends Object implements Serializable, Cloneable, StructuredPojo
The parameters for a RUN_COMMAND task type.
For information about specifying and updating task parameters, see RegisterTaskWithMaintenanceWindow and UpdateMaintenanceWindowTask.
LoggingInfo
has been deprecated. To specify an S3 bucket to contain logs, instead use the
OutputS3BucketName
and OutputS3KeyPrefix
options in the
TaskInvocationParameters
structure. For information about how Systems Manager handles these options for
the supported Maintenance Window task types, see MaintenanceWindowTaskInvocationParameters.
TaskParameters
has been deprecated. To specify parameters to pass to a task when it runs, instead use
the Parameters
option in the TaskInvocationParameters
structure. For information about how
Systems Manager handles these options for the supported Maintenance Window task types, see
MaintenanceWindowTaskInvocationParameters.
For Run Command tasks, Systems Manager uses specified values for TaskParameters
and
LoggingInfo
only if no values are specified for TaskInvocationParameters
.
Constructor and Description |
---|
MaintenanceWindowRunCommandParameters() |
Modifier and Type | Method and Description |
---|---|
MaintenanceWindowRunCommandParameters |
addParametersEntry(String key,
List<String> value) |
MaintenanceWindowRunCommandParameters |
clearParametersEntries()
Removes all the entries added into Parameters.
|
MaintenanceWindowRunCommandParameters |
clone() |
boolean |
equals(Object obj) |
String |
getComment()
Information about the command(s) to execute.
|
String |
getDocumentHash()
The SHA-256 or SHA-1 hash created by the system when the document was created.
|
String |
getDocumentHashType()
SHA-256 or SHA-1.
|
NotificationConfig |
getNotificationConfig()
Configurations for sending notifications about command status changes on a per-instance basis.
|
String |
getOutputS3BucketName()
The name of the Amazon S3 bucket.
|
String |
getOutputS3KeyPrefix()
The Amazon S3 bucket subfolder.
|
Map<String,List<String>> |
getParameters()
The parameters for the RUN_COMMAND task execution.
|
String |
getServiceRoleArn()
The IAM service role to assume during task execution.
|
Integer |
getTimeoutSeconds()
If this time is reached and the command has not already started executing, it doesn not execute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComment(String comment)
Information about the command(s) to execute.
|
void |
setDocumentHash(String documentHash)
The SHA-256 or SHA-1 hash created by the system when the document was created.
|
void |
setDocumentHashType(String documentHashType)
SHA-256 or SHA-1.
|
void |
setNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes on a per-instance basis.
|
void |
setOutputS3BucketName(String outputS3BucketName)
The name of the Amazon S3 bucket.
|
void |
setOutputS3KeyPrefix(String outputS3KeyPrefix)
The Amazon S3 bucket subfolder.
|
void |
setParameters(Map<String,List<String>> parameters)
The parameters for the RUN_COMMAND task execution.
|
void |
setServiceRoleArn(String serviceRoleArn)
The IAM service role to assume during task execution.
|
void |
setTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started executing, it doesn not execute.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MaintenanceWindowRunCommandParameters |
withComment(String comment)
Information about the command(s) to execute.
|
MaintenanceWindowRunCommandParameters |
withDocumentHash(String documentHash)
The SHA-256 or SHA-1 hash created by the system when the document was created.
|
MaintenanceWindowRunCommandParameters |
withDocumentHashType(DocumentHashType documentHashType)
SHA-256 or SHA-1.
|
MaintenanceWindowRunCommandParameters |
withDocumentHashType(String documentHashType)
SHA-256 or SHA-1.
|
MaintenanceWindowRunCommandParameters |
withNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes on a per-instance basis.
|
MaintenanceWindowRunCommandParameters |
withOutputS3BucketName(String outputS3BucketName)
The name of the Amazon S3 bucket.
|
MaintenanceWindowRunCommandParameters |
withOutputS3KeyPrefix(String outputS3KeyPrefix)
The Amazon S3 bucket subfolder.
|
MaintenanceWindowRunCommandParameters |
withParameters(Map<String,List<String>> parameters)
The parameters for the RUN_COMMAND task execution.
|
MaintenanceWindowRunCommandParameters |
withServiceRoleArn(String serviceRoleArn)
The IAM service role to assume during task execution.
|
MaintenanceWindowRunCommandParameters |
withTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started executing, it doesn not execute.
|
public MaintenanceWindowRunCommandParameters()
public void setComment(String comment)
Information about the command(s) to execute.
comment
- Information about the command(s) to execute.public String getComment()
Information about the command(s) to execute.
public MaintenanceWindowRunCommandParameters withComment(String comment)
Information about the command(s) to execute.
comment
- Information about the command(s) to execute.public void setDocumentHash(String documentHash)
The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
documentHash
- The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been
deprecated.public String getDocumentHash()
The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
public MaintenanceWindowRunCommandParameters withDocumentHash(String documentHash)
The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
documentHash
- The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been
deprecated.public void setDocumentHashType(String documentHashType)
SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
documentHashType
- SHA-256 or SHA-1. SHA-1 hashes have been deprecated.DocumentHashType
public String getDocumentHashType()
SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
DocumentHashType
public MaintenanceWindowRunCommandParameters withDocumentHashType(String documentHashType)
SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
documentHashType
- SHA-256 or SHA-1. SHA-1 hashes have been deprecated.DocumentHashType
public MaintenanceWindowRunCommandParameters withDocumentHashType(DocumentHashType documentHashType)
SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
documentHashType
- SHA-256 or SHA-1. SHA-1 hashes have been deprecated.DocumentHashType
public void setNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes on a per-instance basis.
notificationConfig
- Configurations for sending notifications about command status changes on a per-instance basis.public NotificationConfig getNotificationConfig()
Configurations for sending notifications about command status changes on a per-instance basis.
public MaintenanceWindowRunCommandParameters withNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes on a per-instance basis.
notificationConfig
- Configurations for sending notifications about command status changes on a per-instance basis.public void setOutputS3BucketName(String outputS3BucketName)
The name of the Amazon S3 bucket.
outputS3BucketName
- The name of the Amazon S3 bucket.public String getOutputS3BucketName()
The name of the Amazon S3 bucket.
public MaintenanceWindowRunCommandParameters withOutputS3BucketName(String outputS3BucketName)
The name of the Amazon S3 bucket.
outputS3BucketName
- The name of the Amazon S3 bucket.public void setOutputS3KeyPrefix(String outputS3KeyPrefix)
The Amazon S3 bucket subfolder.
outputS3KeyPrefix
- The Amazon S3 bucket subfolder.public String getOutputS3KeyPrefix()
The Amazon S3 bucket subfolder.
public MaintenanceWindowRunCommandParameters withOutputS3KeyPrefix(String outputS3KeyPrefix)
The Amazon S3 bucket subfolder.
outputS3KeyPrefix
- The Amazon S3 bucket subfolder.public Map<String,List<String>> getParameters()
The parameters for the RUN_COMMAND task execution.
public void setParameters(Map<String,List<String>> parameters)
The parameters for the RUN_COMMAND task execution.
parameters
- The parameters for the RUN_COMMAND task execution.public MaintenanceWindowRunCommandParameters withParameters(Map<String,List<String>> parameters)
The parameters for the RUN_COMMAND task execution.
parameters
- The parameters for the RUN_COMMAND task execution.public MaintenanceWindowRunCommandParameters addParametersEntry(String key, List<String> value)
public MaintenanceWindowRunCommandParameters clearParametersEntries()
public void setServiceRoleArn(String serviceRoleArn)
The IAM service role to assume during task execution.
serviceRoleArn
- The IAM service role to assume during task execution.public String getServiceRoleArn()
The IAM service role to assume during task execution.
public MaintenanceWindowRunCommandParameters withServiceRoleArn(String serviceRoleArn)
The IAM service role to assume during task execution.
serviceRoleArn
- The IAM service role to assume during task execution.public void setTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started executing, it doesn not execute.
timeoutSeconds
- If this time is reached and the command has not already started executing, it doesn not execute.public Integer getTimeoutSeconds()
If this time is reached and the command has not already started executing, it doesn not execute.
public MaintenanceWindowRunCommandParameters withTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started executing, it doesn not execute.
timeoutSeconds
- If this time is reached and the command has not already started executing, it doesn not execute.public String toString()
toString
in class Object
Object.toString()
public MaintenanceWindowRunCommandParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.