Smaws_Client_DataPipeline.SetStatusRequests that the status of the specified physical or logical pipeline objects be updated in the specified pipeline. This update might not occur immediately, but is eventually consistent. The status that can be set depends on the type of object (for example, DataNode or Activity). You cannot perform this operation on FINISHED pipelines and attempting to do so returns InvalidRequestException.
POST / HTTP/1.1 Content-Type: application/x-amz-json-1.1 X-Amz-Target: DataPipeline.SetStatus Content-Length: 100 Host: datapipeline.us-east-1.amazonaws.com X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT Authorization: AuthParams {"pipelineId": "df-0634701J7KEXAMPLE", "objectIds": ["o-08600941GHJWMBR9E2"], "status": "pause"} x-amzn-RequestId: e83b8ab7-076a-11e2-af6f-6bc7a6be60d9 Content-Type: application/x-amz-json-1.1 Content-Length: 0 Date: Mon, 12 Nov 2012 17:50:53 GMT Unexpected response: 200, OK, undefined
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceError of Types.internal_service_error
| `InvalidRequestException of Types.invalid_request_exception
| `PipelineDeletedException of Types.pipeline_deleted_exception
| `PipelineNotFoundException of Types.pipeline_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.set_status_input ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceError of Types.internal_service_error
| `InvalidRequestException of Types.invalid_request_exception
| `PipelineDeletedException of Types.pipeline_deleted_exception
| `PipelineNotFoundException of Types.pipeline_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.set_status_input ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServiceError of Types.internal_service_error
| `InvalidRequestException of Types.invalid_request_exception
| `PipelineDeletedException of Types.pipeline_deleted_exception
| `PipelineNotFoundException of Types.pipeline_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result