@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 Amazon Simple Storage Service (Amazon S3) bucket to
contain logs, instead use the OutputS3BucketName
and OutputS3KeyPrefix
options in the
TaskInvocationParameters
structure. For information about how Amazon Web Services 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 Amazon Web Services Systems Manager document (SSM document) version to use in the request.
|
NotificationConfig |
getNotificationConfig()
Configurations for sending notifications about command status changes on a per-managed node basis.
|
String |
getOutputS3BucketName()
The name of the Amazon Simple Storage Service (Amazon S3) bucket.
|
String |
getOutputS3KeyPrefix()
The S3 bucket subfolder.
|
Map<String,List<String>> |
getParameters()
The parameters for the
RUN_COMMAND task execution. |
String |
getServiceRoleArn()
The Amazon Resource Name (ARN) of the Identity and Access Management (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 hasn't 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 Amazon Web Services Systems Manager document (SSM document) version to use in the request.
|
void |
setNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes on a per-managed node basis.
|
void |
setOutputS3BucketName(String outputS3BucketName)
The name of the Amazon Simple Storage Service (Amazon 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 Amazon Resource Name (ARN) of the Identity and Access Management (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 hasn't 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 Amazon Web Services Systems Manager document (SSM document) version to use in the request.
|
MaintenanceWindowRunCommandParameters |
withNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes on a per-managed node basis.
|
MaintenanceWindowRunCommandParameters |
withOutputS3BucketName(String outputS3BucketName)
The name of the Amazon Simple Storage Service (Amazon 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 Amazon Resource Name (ARN) of the Identity and Access Management (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 hasn't 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 Amazon Web Services Systems Manager document (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
Amazon Web Services 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 Amazon Web Services Systems Manager document (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 Amazon Web Services 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 Amazon Web Services Systems Manager document (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
Amazon Web Services 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"
$DEFAULT
, $LATEST
, or a specific version number. If you run commands by
using the Amazon Web Services 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 MaintenanceWindowRunCommandParameters withDocumentVersion(String documentVersion)
The Amazon Web Services Systems Manager document (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
Amazon Web Services 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 Amazon Web Services Systems Manager document (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 Amazon Web Services 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-managed node basis.
notificationConfig
- Configurations for sending notifications about command status changes on a per-managed node basis.public NotificationConfig getNotificationConfig()
Configurations for sending notifications about command status changes on a per-managed node basis.
public MaintenanceWindowRunCommandParameters withNotificationConfig(NotificationConfig notificationConfig)
Configurations for sending notifications about command status changes on a per-managed node basis.
notificationConfig
- Configurations for sending notifications about command status changes on a per-managed node basis.public void setOutputS3BucketName(String outputS3BucketName)
The name of the Amazon Simple Storage Service (Amazon S3) bucket.
outputS3BucketName
- The name of the Amazon Simple Storage Service (Amazon S3) bucket.public String getOutputS3BucketName()
The name of the Amazon Simple Storage Service (Amazon S3) bucket.
public MaintenanceWindowRunCommandParameters withOutputS3BucketName(String outputS3BucketName)
The name of the Amazon Simple Storage Service (Amazon S3) bucket.
outputS3BucketName
- The name of the Amazon Simple Storage Service (Amazon 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.
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 Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
serviceRoleArn
- The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish
Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.public String getServiceRoleArn()
The Amazon Resource Name (ARN) of the Identity and Access Management (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 Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.
serviceRoleArn
- The Amazon Resource Name (ARN) of the Identity and Access Management (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 hasn't already started running, it doesn't run.
timeoutSeconds
- If this time is reached and the command hasn't already started running, it doesn't run.public Integer getTimeoutSeconds()
If this time is reached and the command hasn't already started running, it doesn't run.
public MaintenanceWindowRunCommandParameters withTimeoutSeconds(Integer timeoutSeconds)
If this time is reached and the command hasn't already started running, it doesn't run.
timeoutSeconds
- If this time is reached and the command hasn't 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.