Describes one or more of your scheduling policies.
Parameters:
-
arns
(Optional[StringList], default:
None
)
–
A list of up to 100 scheduling policy Amazon Resource Name (ARN) entries.
Raises:
-
ClientException
–
These errors are usually caused by a client action. One example cause is using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier that's not valid.
-
ServerException
–
These errors are usually caused by a server issue.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_batch/_services/async_batch.py
| async def describe_scheduling_policies(
self,
*,
config_overrides: Optional[AsyncBatchClientConfig] = None,
arns: Optional["capo_batch.types.string_list.StringList"] = None,
) -> "capo_batch.types.describe_scheduling_policies_response.DescribeSchedulingPoliciesResponse":
"""<p>Describes one or more of your scheduling policies.</p>
Args:
arns: <p>A list of up to 100 scheduling policy Amazon Resource Name (ARN) entries.</p>
Raises:
capo_batch.errors.client_exception.ClientException: <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier that's not valid.</p>
capo_batch.errors.server_exception.ServerException: <p>These errors are usually caused by a server issue.</p>
capo_batch.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_batch.types.describe_scheduling_policies_request.DescribeSchedulingPoliciesRequest]",
) -> AsyncOperationResponse[
"capo_batch.types.describe_scheduling_policies_response.DescribeSchedulingPoliciesResponse"
]:
import capo_batch._operations.aws_batch_v20160810.describe_scheduling_policies
(
output,
http_response,
) = await capo_batch._operations.aws_batch_v20160810.describe_scheduling_policies.async_describe_scheduling_policies(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeSchedulingPolicies")
)
input_: capo_batch.types.describe_scheduling_policies_request.DescribeSchedulingPoliciesRequest = {}
if arns is not None:
input_["arns"] = arns
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|