CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change.
Returns the specified dashboard.
Parameters:
-
dashboard_id
(DashboardArn)
–
The name or ARN for the dashboard.
Raises:
Source code in docs_src/capo_cloudtrail/_services/cloud_trail.py
| def get_dashboard(
self,
dashboard_id: "capo_cloudtrail.types.dashboard_arn.DashboardArn",
*,
config_overrides: Optional[CloudTrailClientConfig] = None,
) -> "capo_cloudtrail.types.get_dashboard_response.GetDashboardResponse":
"""<important> <p>CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-service-availability-change.html">CloudTrail Lake availability change</a>.</p> </important> <p> Returns the specified dashboard. </p>
Args:
dashboard_id: <p> The name or ARN for the dashboard. </p>
Raises:
capo_cloudtrail.errors.resource_not_found_exception.ResourceNotFoundException: <p>This exception is thrown when the specified resource is not found.</p>
capo_cloudtrail.errors.unsupported_operation_exception.UnsupportedOperationException: <p>This exception is thrown when the requested operation is not supported.</p>
capo_cloudtrail.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cloudtrail.types.get_dashboard_request.GetDashboardRequest]",
) -> OperationResponse[
"capo_cloudtrail.types.get_dashboard_response.GetDashboardResponse"
]:
import capo_cloudtrail._operations.cloud_trail_20131101.get_dashboard
output, http_response = (
capo_cloudtrail._operations.cloud_trail_20131101.get_dashboard.get_dashboard(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDashboard")
)
input_: capo_cloudtrail.types.get_dashboard_request.GetDashboardRequest = {
"dashboard_id": dashboard_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|