@Generated(value="software.amazon.awssdk:codegen") public final class MaintenanceWindowRunCommandParameters extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MaintenanceWindowRunCommandParameters.Builder,MaintenanceWindowRunCommandParameters>
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
.
Modifier and Type | Class and Description |
---|---|
static interface |
MaintenanceWindowRunCommandParameters.Builder |
Modifier and Type | Method and Description |
---|---|
static MaintenanceWindowRunCommandParameters.Builder |
builder() |
CloudWatchOutputConfig |
cloudWatchOutputConfig()
Returns the value of the CloudWatchOutputConfig property for this object.
|
String |
comment()
Information about the commands to run.
|
String |
documentHash()
The SHA-256 or SHA-1 hash created by the system when the document was created.
|
DocumentHashType |
documentHashType()
SHA-256 or SHA-1.
|
String |
documentHashTypeAsString()
SHA-256 or SHA-1.
|
String |
documentVersion()
The SSM document version to use in the request.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameters()
Returns true if the Parameters property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
NotificationConfig |
notificationConfig()
Configurations for sending notifications about command status changes on a per-instance basis.
|
String |
outputS3BucketName()
The name of the S3 bucket.
|
String |
outputS3KeyPrefix()
The S3 bucket subfolder.
|
Map<String,List<String>> |
parameters()
The parameters for the RUN_COMMAND task execution.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MaintenanceWindowRunCommandParameters.Builder> |
serializableBuilderClass() |
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.
|
Integer |
timeoutSeconds()
If this time is reached and the command has not already started running, it doesn't run.
|
MaintenanceWindowRunCommandParameters.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String comment()
Information about the commands to run.
public final CloudWatchOutputConfig cloudWatchOutputConfig()
public final String documentHash()
The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated.
public final DocumentHashType documentHashType()
SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
If the service returns an enum value that is not available in the current SDK version, documentHashType
will return DocumentHashType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from documentHashTypeAsString()
.
DocumentHashType
public final String documentHashTypeAsString()
SHA-256 or SHA-1. SHA-1 hashes have been deprecated.
If the service returns an enum value that is not available in the current SDK version, documentHashType
will return DocumentHashType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from documentHashTypeAsString()
.
DocumentHashType
public final 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"
--document-version "\$DEFAULT"
--document-version "\$LATEST"
--document-version "3"
public final NotificationConfig notificationConfig()
Configurations for sending notifications about command status changes on a per-instance basis.
public final String outputS3BucketName()
The name of the S3 bucket.
public final String outputS3KeyPrefix()
The S3 bucket subfolder.
public final boolean hasParameters()
public final Map<String,List<String>> parameters()
The parameters for the RUN_COMMAND task execution.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasParameters()
to see if a value was sent in this field.
public final 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.
public final Integer timeoutSeconds()
If this time is reached and the command has not already started running, it doesn't run.
public MaintenanceWindowRunCommandParameters.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MaintenanceWindowRunCommandParameters.Builder,MaintenanceWindowRunCommandParameters>
public static MaintenanceWindowRunCommandParameters.Builder builder()
public static Class<? extends MaintenanceWindowRunCommandParameters.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.