Module Values_0.CommandSource

Describes a command request.

Sourcetype nonrec t = {
  1. commandId : CommandId.t option;
    (*

    A unique identifier for this command.

    *)
  2. documentName : DocumentName.t option;
    (*

    The name of the document requested for execution.

    *)
  3. documentVersion : DocumentVersion.t option;
    (*

    The Systems Manager document (SSM document) version.

    *)
  4. comment : Comment.t option;
    (*

    User-specified information about the command, such as a brief description of what the command should do.

    *)
  5. expiresAfter : DateTime.t option;
    (*

    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.

    *)
  6. parameters : Parameters.t option;
    (*

    The parameter values to be inserted in the document when running the command.

    *)
  7. instanceIds : InstanceIdList.t option;
    (*

    The managed node IDs against which this command was requested.

    *)
  8. targets : Targets.t option;
    (*

    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.

    *)
  9. requestedDateTime : DateTime.t option;
    (*

    The date and time the command was requested.

    *)
  10. status : CommandStatus.t option;
    (*

    The status of the command.

    *)
  11. statusDetails : StatusDetails.t option;
    (*

    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.

    *)
  12. outputS3Region : S3Region.t option;
    (*

    (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.

    *)
  13. outputS3BucketName : S3BucketName.t option;
    (*

    The S3 bucket where the responses to the command executions should be stored. This was requested when issuing the command.

    *)
  14. outputS3KeyPrefix : S3KeyPrefix.t option;
    (*

    The S3 directory path inside the bucket where the responses to the command executions should be stored. This was requested when issuing the command.

    *)
  15. maxConcurrency : MaxConcurrency.t option;
    (*

    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.

    *)
  16. maxErrors : MaxErrors.t option;
    (*

    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.

    *)
  17. targetCount : TargetCount.t option;
    (*

    The number of targets for the command.

    *)
  18. completedCount : CompletedCount.t option;
    (*

    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.

    *)
  19. errorCount : ErrorCount.t option;
    (*

    The number of targets for which the status is Failed or Execution Timed Out.

    *)
  20. deliveryTimedOutCount : DeliveryTimedOutCount.t option;
    (*

    The number of targets for which the status is Delivery Timed Out.

    *)
  21. serviceRole : ServiceRole.t option;
    (*

    The Identity and Access Management (IAM) service role that Run Command, a tool in Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes.

    *)
  22. notificationConfig : NotificationConfig.t option;
    (*

    Configurations for sending notifications about command status changes.

    *)
  23. cloudWatchOutputConfig : CloudWatchOutputConfig.t option;
    (*

    Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command output.

    *)
  24. timeoutSeconds : TimeoutSeconds.t option;
    (*

    The TimeoutSeconds value specified for a command.

    *)
  25. alarmConfiguration : AlarmConfiguration.t option;
    (*

    The details for the CloudWatch alarm applied to your command.

    *)
  26. triggeredAlarms : AlarmStateInformationList.t option;
    (*

    The CloudWatch alarm that was invoked by the command.

    *)
}
Sourceval make : ?commandId:??? -> ?documentName:??? -> ?documentVersion:??? -> ?comment:??? -> ?expiresAfter:??? -> ?parameters:??? -> ?instanceIds:??? -> ?targets:??? -> ?requestedDateTime:??? -> ?status:??? -> ?statusDetails:??? -> ?outputS3Region:??? -> ?outputS3BucketName:??? -> ?outputS3KeyPrefix:??? -> ?maxConcurrency:??? -> ?maxErrors:??? -> ?targetCount:??? -> ?completedCount:??? -> ?errorCount:??? -> ?deliveryTimedOutCount:??? -> ?serviceRole:??? -> ?notificationConfig:??? -> ?cloudWatchOutputConfig:??? -> ?timeoutSeconds:??? -> ?alarmConfiguration:??? -> ?triggeredAlarms:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of TargetCount.t | `List of [> `String of InstanceId.t | `Structure of (string * [> `Enum of string | `List of [> `String of TargetValue.t ] list | `String of TargetKey.t ]) list ] list | `Map of ([> `String of ParameterName.t ] * [> `List of [> `String of ParameterValue.t ] list ]) list | `String of CommandId.t | `Structure of (string * [> `Boolean of CloudWatchOutputEnabled.t | `Enum of string | `List of [> `Enum of string | `Structure of (string * [> `String of AlarmName.t ]) list ] list | `String of NotificationArn.t ]) list | `Timestamp of DateTime.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t