ResilienceHubClient#
Index > ResilienceHub > ResilienceHubClient
Auto-generated documentation for ResilienceHub type annotations stubs module mypy-boto3-resiliencehub.
ResilienceHubClient#
Type annotations and code completion for boto3.client("resiliencehub")
.
boto3 documentation
# ResilienceHubClient usage example
from boto3.session import Session
from mypy_boto3_resiliencehub.client import ResilienceHubClient
def get_resiliencehub_client() -> ResilienceHubClient:
return Session().client("resiliencehub")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("resiliencehub").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("resiliencehub")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_resiliencehub.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
accept_resource_grouping_recommendations#
Accepts the resource grouping recommendations suggested by Resilience Hub for your application.
Type annotations and code completion for boto3.client("resiliencehub").accept_resource_grouping_recommendations
method.
boto3 documentation
# accept_resource_grouping_recommendations method definition
def accept_resource_grouping_recommendations(
self,
*,
appArn: str,
entries: Sequence[AcceptGroupingRecommendationEntryTypeDef], # (1)
) -> AcceptResourceGroupingRecommendationsResponseTypeDef: # (2)
...
- See AcceptGroupingRecommendationEntryTypeDef
- See AcceptResourceGroupingRecommendationsResponseTypeDef
# accept_resource_grouping_recommendations method usage example with argument unpacking
kwargs: AcceptResourceGroupingRecommendationsRequestRequestTypeDef = { # (1)
"appArn": ...,
"entries": ...,
}
parent.accept_resource_grouping_recommendations(**kwargs)
add_draft_app_version_resource_mappings#
Adds the source of resource-maps to the draft version of an application.
Type annotations and code completion for boto3.client("resiliencehub").add_draft_app_version_resource_mappings
method.
boto3 documentation
# add_draft_app_version_resource_mappings method definition
def add_draft_app_version_resource_mappings(
self,
*,
appArn: str,
resourceMappings: Sequence[ResourceMappingTypeDef], # (1)
) -> AddDraftAppVersionResourceMappingsResponseTypeDef: # (2)
...
# add_draft_app_version_resource_mappings method usage example with argument unpacking
kwargs: AddDraftAppVersionResourceMappingsRequestRequestTypeDef = { # (1)
"appArn": ...,
"resourceMappings": ...,
}
parent.add_draft_app_version_resource_mappings(**kwargs)
batch_update_recommendation_status#
Enables you to include or exclude one or more operational recommendations.
Type annotations and code completion for boto3.client("resiliencehub").batch_update_recommendation_status
method.
boto3 documentation
# batch_update_recommendation_status method definition
def batch_update_recommendation_status(
self,
*,
appArn: str,
requestEntries: Sequence[UpdateRecommendationStatusRequestEntryTypeDef], # (1)
) -> BatchUpdateRecommendationStatusResponseTypeDef: # (2)
...
- See UpdateRecommendationStatusRequestEntryTypeDef
- See BatchUpdateRecommendationStatusResponseTypeDef
# batch_update_recommendation_status method usage example with argument unpacking
kwargs: BatchUpdateRecommendationStatusRequestRequestTypeDef = { # (1)
"appArn": ...,
"requestEntries": ...,
}
parent.batch_update_recommendation_status(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("resiliencehub").can_paginate
method.