@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)
Add a single Parameters entry
|
MaintenanceWindowRunCommandParameters |
clearParametersEntries()
Removes all the entries added into Parameters.
|
MaintenanceWindowRunCommandParameters |
clone() |
boolean |
equals(Object obj) |
CloudWatchOutputConfig |
getCloudWatchOutputConfig() |
String |
getComment()
Information about the commands to run.
|
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.
|
String |
getDocumentVersion()
The SSM document version to use in the request.
|
NotificationConfig |
getNotificationConfig()
Configurations for sending notifications about command status changes on a per-instance basis.
|
String |
getOutputS3BucketName()
The name of the S3 bucket.
|
String |
getOutputS3KeyPrefix()
The S3 bucket subfolder.
|
Map<String,List<String>> |
getParameters()
The parameters for the RUN_COMMAND task execution.
|
String |
getServiceRoleArn()
The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications
for maintenance window Run Command tasks.
|
Integer |
getTimeoutSeconds()
If this time is reached and the command has not already started running, it doesn't run.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCloudWatchOutputConfig(CloudWatchOutputConfig cloudWatchOutputConfig) |
void |
setComment(String comment)
Information about the commands to run.
|
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 |
setDocumentVersion(String documentVersion)
The SSM document version to use in the request.
|
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 S3 bucket.
|
void |
setOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 bucket subfolder.
|
void |
setParameters(Map<String,List<String>> parameters)
The parameters for the RUN_COMMAND task execution.
|
void |
setServiceRoleArn(String serviceRoleArn)
The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications
for maintenance window Run Command tasks.
|
void |
setTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started running, it doesn't run.
|
String |
toString()
Returns a string representation of this object.
|
MaintenanceWindowRunCommandParameters |
withCloudWatchOutputConfig(CloudWatchOutputConfig cloudWatchOutputConfig) |
MaintenanceWindowRunCommandParameters |
withComment(String comment)
Information about the commands to run.
|
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 |
withDocumentVersion(String documentVersion)
The SSM document version to use in the request.
|
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 S3 bucket.
|
MaintenanceWindowRunCommandParameters |
withOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 bucket subfolder.
|
MaintenanceWindowRunCommandParameters |
withParameters(Map<String,List<String>> parameters)
The parameters for the RUN_COMMAND task execution.
|
MaintenanceWindowRunCommandParameters |
withServiceRoleArn(String serviceRoleArn)
The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications
for maintenance window Run Command tasks.
|
MaintenanceWindowRunCommandParameters |
withTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started running, it doesn't run.
|
public MaintenanceWindowRunCommandParameters()
public void setComment(String comment)
Information about the commands to run.
comment
- Information about the commands to run.public String getComment()
Information about the commands to run.
public MaintenanceWindowRunCommandParameters withComment(String comment)
Information about the commands to run.
comment
- Information about the commands to run.public void setCloudWatchOutputConfig(CloudWatchOutputConfig cloudWatchOutputConfig)
cloudWatchOutputConfig
- public CloudWatchOutputConfig getCloudWatchOutputConfig()
public MaintenanceWindowRunCommandParameters withCloudWatchOutputConfig(CloudWatchOutputConfig cloudWatchOutputConfig)
cloudWatchOutputConfig
- 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 setDocumentVersion(String documentVersion)
The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version number. If you run commands by using the AWS CLI, then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example:
--document-version "\$DEFAULT"
--document-version "\$LATEST"
--document-version "3"
documentVersion
- The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version
number. If you run commands by using the AWS CLI, then you must escape the first two options by using a
backslash. If you specify a version number, then you don't need to use the backslash. For example:
--document-version "\$DEFAULT"
--document-version "\$LATEST"
--document-version "3"
public String getDocumentVersion()
The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version number. If you run commands by using the AWS CLI, then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example:
--document-version "\$DEFAULT"
--document-version "\$LATEST"
--document-version "3"
--document-version "\$DEFAULT"
--document-version "\$LATEST"
--document-version "3"
public MaintenanceWindowRunCommandParameters withDocumentVersion(String documentVersion)
The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version number. If you run commands by using the AWS CLI, then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example:
--document-version "\$DEFAULT"
--document-version "\$LATEST"
--document-version "3"
documentVersion
- The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version
number. If you run commands by using the AWS CLI, then you must escape the first two options by using a
backslash. If you specify a version number, then you don't need to use the backslash. For example:
--document-version "\$DEFAULT"
--document-version "\$LATEST"
--document-version "3"
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 S3 bucket.
outputS3BucketName
- The name of the S3 bucket.public String getOutputS3BucketName()
The name of the S3 bucket.
public MaintenanceWindowRunCommandParameters withOutputS3BucketName(String outputS3BucketName)
The name of the S3 bucket.
outputS3BucketName
- The name of the S3 bucket.public void setOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 bucket subfolder.
outputS3KeyPrefix
- The S3 bucket subfolder.public String getOutputS3KeyPrefix()
The S3 bucket subfolder.
public MaintenanceWindowRunCommandParameters withOutputS3KeyPrefix(String outputS3KeyPrefix)
The S3 bucket subfolder.
outputS3KeyPrefix
- The 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 ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
serviceRoleArn
- The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS)
notifications for maintenance window Run Command tasks.public String getServiceRoleArn()
The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
public MaintenanceWindowRunCommandParameters withServiceRoleArn(String serviceRoleArn)
The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
serviceRoleArn
- The ARN of the IAM service role to use to publish Amazon Simple Notification Service (Amazon SNS)
notifications for maintenance window Run Command tasks.public void setTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started running, it doesn't run.
timeoutSeconds
- If this time is reached and the command has not already started running, it doesn't run.public Integer getTimeoutSeconds()
If this time is reached and the command has not already started running, it doesn't run.
public MaintenanceWindowRunCommandParameters withTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command has not already started running, it doesn't run.
timeoutSeconds
- If this time is reached and the command has not already started running, it doesn't run.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.