def batch_get_view(
self,
*,
config_overrides: Optional[ResourceExplorer2ClientConfig] = None,
view_arns: Optional[
"capo_resource_explorer_2.types.view_arn_list.ViewArnList"
] = None,
) -> "capo_resource_explorer_2.types.batch_get_view_output.BatchGetViewOutput":
"""<p>Retrieves details about a list of views.</p>
Args:
view_arns: <p>A list of <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon resource names (ARNs)</a> that identify the views you want details for.</p>
Raises:
capo_resource_explorer_2.errors.access_denied_exception.AccessDeniedException: <p>The credentials that you used to call this operation don't have the minimum required permissions.</p>
capo_resource_explorer_2.errors.internal_server_exception.InternalServerException: <p>The request failed because of internal service error. Try your request again later.</p>
capo_resource_explorer_2.errors.throttling_exception.ThrottlingException: <p>The request failed because you exceeded a rate limit for this operation. For more information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for Resource Explorer</a>.</p>
capo_resource_explorer_2.errors.unauthorized_exception.UnauthorizedException: <p>The principal making the request isn't permitted to perform the operation.</p>
capo_resource_explorer_2.errors.validation_exception.ValidationException: <p>You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.</p>
capo_resource_explorer_2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_resource_explorer_2.types.batch_get_view_input.BatchGetViewInput]",
) -> OperationResponse[
"capo_resource_explorer_2.types.batch_get_view_output.BatchGetViewOutput"
]:
import capo_resource_explorer_2._operations.resource_explorer.batch_get_view
output, http_response = (
capo_resource_explorer_2._operations.resource_explorer.batch_get_view.batch_get_view(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_resource_explorer_2.types.batch_get_view_output.BatchGetViewOutput",
) -> dict[str, Any]:
import capo_resource_explorer_2.types.batch_get_view_output
return (
capo_resource_explorer_2.types.batch_get_view_output.redact_sensitive(
output
)
)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("BatchGetView", redact_output=_redact_output),
)
input_: capo_resource_explorer_2.types.batch_get_view_input.BatchGetViewInput = {}
if view_arns is not None:
input_["view_arns"] = view_arns
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output