Returns a list of all frameworks for an Amazon Web Services account and Amazon Web Services Region.
Parameters:
-
max_results
(Optional[MaxFrameworkInputs], default:
None
)
–
The number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.
-
next_token
(Optional[string], default:
None
)
–
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
Raises:
Source code in docs_src/capo_backup/_services/async_backup.py
| async def list_frameworks(
self,
*,
config_overrides: Optional[AsyncBackupClientConfig] = None,
max_results: Optional[
"capo_backup.types.max_framework_inputs.MaxFrameworkInputs"
] = None,
next_token: Optional["capo_backup.types.string.string"] = None,
) -> "capo_backup.types.list_frameworks_output.ListFrameworksOutput":
"""<p>Returns a list of all frameworks for an Amazon Web Services account and Amazon Web Services Region.</p>
Args:
max_results: <p>The number of desired results from 1 to 1000. Optional. If unspecified, the query will return 1 MB of data.</p>
next_token: <p>An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.</p>
Raises:
capo_backup.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>Indicates that something is wrong with a parameter's value. For example, the value is out of range.</p>
capo_backup.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request failed due to a temporary failure of the server.</p>
capo_backup.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_backup.types.list_frameworks_input.ListFrameworksInput]",
) -> AsyncOperationResponse[
"capo_backup.types.list_frameworks_output.ListFrameworksOutput"
]:
import capo_backup._operations.cryo_controller_user_manager.list_frameworks
(
output,
http_response,
) = await capo_backup._operations.cryo_controller_user_manager.list_frameworks.async_list_frameworks(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListFrameworks")
)
input_: capo_backup.types.list_frameworks_input.ListFrameworksInput = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|