CloudHSMClient#
Auto-generated documentation for CloudHSM type annotations stubs module mypy-boto3-cloudhsm.
CloudHSMClient#
Type annotations and code completion for boto3.client("cloudhsm")
.
boto3 documentation
# CloudHSMClient usage example
from boto3.session import Session
from mypy_boto3_cloudhsm.client import CloudHSMClient
def get_cloudhsm_client() -> CloudHSMClient:
return Session().client("cloudhsm")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("cloudhsm").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("cloudhsm")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.CloudHsmInternalException,
client.exceptions.CloudHsmServiceException,
client.exceptions.InvalidRequestException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_cloudhsm.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
add_tags_to_resource#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").add_tags_to_resource
method.
boto3 documentation
# add_tags_to_resource method definition
def add_tags_to_resource(
self,
*,
ResourceArn: str,
TagList: Sequence[TagTypeDef], # (1)
) -> AddTagsToResourceResponseTypeDef: # (2)
...
# add_tags_to_resource method usage example with argument unpacking
kwargs: AddTagsToResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagList": ...,
}
parent.add_tags_to_resource(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("cloudhsm").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("cloudhsm").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_hapg#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").create_hapg
method.
boto3 documentation
# create_hapg method definition
def create_hapg(
self,
*,
Label: str,
) -> CreateHapgResponseTypeDef: # (1)
...
# create_hapg method usage example with argument unpacking
kwargs: CreateHapgRequestRequestTypeDef = { # (1)
"Label": ...,
}
parent.create_hapg(**kwargs)
create_hsm#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").create_hsm
method.
boto3 documentation
# create_hsm method definition
def create_hsm(
self,
*,
SubnetId: str,
SshKey: str,
IamRoleArn: str,
SubscriptionType: SubscriptionTypeType, # (1)
EniIp: str = ...,
ExternalId: str = ...,
ClientToken: str = ...,
SyslogIp: str = ...,
) -> CreateHsmResponseTypeDef: # (2)
...
# create_hsm method usage example with argument unpacking
kwargs: CreateHsmRequestRequestTypeDef = { # (1)
"SubnetId": ...,
"SshKey": ...,
"IamRoleArn": ...,
"SubscriptionType": ...,
}
parent.create_hsm(**kwargs)
create_luna_client#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").create_luna_client
method.
boto3 documentation
# create_luna_client method definition
def create_luna_client(
self,
*,
Certificate: str,
Label: str = ...,
) -> CreateLunaClientResponseTypeDef: # (1)
...
# create_luna_client method usage example with argument unpacking
kwargs: CreateLunaClientRequestRequestTypeDef = { # (1)
"Certificate": ...,
}
parent.create_luna_client(**kwargs)
delete_hapg#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").delete_hapg
method.
boto3 documentation
# delete_hapg method definition
def delete_hapg(
self,
*,
HapgArn: str,
) -> DeleteHapgResponseTypeDef: # (1)
...
# delete_hapg method usage example with argument unpacking
kwargs: DeleteHapgRequestRequestTypeDef = { # (1)
"HapgArn": ...,
}
parent.delete_hapg(**kwargs)
delete_hsm#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").delete_hsm
method.
boto3 documentation
# delete_hsm method definition
def delete_hsm(
self,
*,
HsmArn: str,
) -> DeleteHsmResponseTypeDef: # (1)
...
# delete_hsm method usage example with argument unpacking
kwargs: DeleteHsmRequestRequestTypeDef = { # (1)
"HsmArn": ...,
}
parent.delete_hsm(**kwargs)
delete_luna_client#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").delete_luna_client
method.
boto3 documentation
# delete_luna_client method definition
def delete_luna_client(
self,
*,
ClientArn: str,
) -> DeleteLunaClientResponseTypeDef: # (1)
...
# delete_luna_client method usage example with argument unpacking
kwargs: DeleteLunaClientRequestRequestTypeDef = { # (1)
"ClientArn": ...,
}
parent.delete_luna_client(**kwargs)
describe_hapg#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").describe_hapg
method.
boto3 documentation
# describe_hapg method definition
def describe_hapg(
self,
*,
HapgArn: str,
) -> DescribeHapgResponseTypeDef: # (1)
...
# describe_hapg method usage example with argument unpacking
kwargs: DescribeHapgRequestRequestTypeDef = { # (1)
"HapgArn": ...,
}
parent.describe_hapg(**kwargs)
describe_hsm#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").describe_hsm
method.
boto3 documentation
# describe_hsm method definition
def describe_hsm(
self,
*,
HsmArn: str = ...,
HsmSerialNumber: str = ...,
) -> DescribeHsmResponseTypeDef: # (1)
...
# describe_hsm method usage example with argument unpacking
kwargs: DescribeHsmRequestRequestTypeDef = { # (1)
"HsmArn": ...,
}
parent.describe_hsm(**kwargs)
describe_luna_client#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").describe_luna_client
method.
boto3 documentation
# describe_luna_client method definition
def describe_luna_client(
self,
*,
ClientArn: str = ...,
CertificateFingerprint: str = ...,
) -> DescribeLunaClientResponseTypeDef: # (1)
...
# describe_luna_client method usage example with argument unpacking
kwargs: DescribeLunaClientRequestRequestTypeDef = { # (1)
"ClientArn": ...,
}
parent.describe_luna_client(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("cloudhsm").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_config#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").get_config
method.
boto3 documentation
# get_config method definition
def get_config(
self,
*,
ClientArn: str,
ClientVersion: ClientVersionType, # (1)
HapgList: Sequence[str],
) -> GetConfigResponseTypeDef: # (2)
...
# get_config method usage example with argument unpacking
kwargs: GetConfigRequestRequestTypeDef = { # (1)
"ClientArn": ...,
"ClientVersion": ...,
"HapgList": ...,
}
parent.get_config(**kwargs)
list_available_zones#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").list_available_zones
method.
boto3 documentation
# list_available_zones method definition
def list_available_zones(
self,
) -> ListAvailableZonesResponseTypeDef: # (1)
...
list_hapgs#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").list_hapgs
method.
boto3 documentation
# list_hapgs method definition
def list_hapgs(
self,
*,
NextToken: str = ...,
) -> ListHapgsResponseTypeDef: # (1)
...
# list_hapgs method usage example with argument unpacking
kwargs: ListHapgsRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_hapgs(**kwargs)
list_hsms#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").list_hsms
method.
boto3 documentation
# list_hsms method definition
def list_hsms(
self,
*,
NextToken: str = ...,
) -> ListHsmsResponseTypeDef: # (1)
...
# list_hsms method usage example with argument unpacking
kwargs: ListHsmsRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_hsms(**kwargs)
list_luna_clients#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").list_luna_clients
method.
boto3 documentation
# list_luna_clients method definition
def list_luna_clients(
self,
*,
NextToken: str = ...,
) -> ListLunaClientsResponseTypeDef: # (1)
...
# list_luna_clients method usage example with argument unpacking
kwargs: ListLunaClientsRequestRequestTypeDef = { # (1)
"NextToken": ...,
}
parent.list_luna_clients(**kwargs)
list_tags_for_resource#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
modify_hapg#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").modify_hapg
method.
boto3 documentation
# modify_hapg method definition
def modify_hapg(
self,
*,
HapgArn: str,
Label: str = ...,
PartitionSerialList: Sequence[str] = ...,
) -> ModifyHapgResponseTypeDef: # (1)
...
# modify_hapg method usage example with argument unpacking
kwargs: ModifyHapgRequestRequestTypeDef = { # (1)
"HapgArn": ...,
}
parent.modify_hapg(**kwargs)
modify_hsm#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").modify_hsm
method.
boto3 documentation
# modify_hsm method definition
def modify_hsm(
self,
*,
HsmArn: str,
SubnetId: str = ...,
EniIp: str = ...,
IamRoleArn: str = ...,
ExternalId: str = ...,
SyslogIp: str = ...,
) -> ModifyHsmResponseTypeDef: # (1)
...
# modify_hsm method usage example with argument unpacking
kwargs: ModifyHsmRequestRequestTypeDef = { # (1)
"HsmArn": ...,
}
parent.modify_hsm(**kwargs)
modify_luna_client#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").modify_luna_client
method.
boto3 documentation
# modify_luna_client method definition
def modify_luna_client(
self,
*,
ClientArn: str,
Certificate: str,
) -> ModifyLunaClientResponseTypeDef: # (1)
...
# modify_luna_client method usage example with argument unpacking
kwargs: ModifyLunaClientRequestRequestTypeDef = { # (1)
"ClientArn": ...,
"Certificate": ...,
}
parent.modify_luna_client(**kwargs)
remove_tags_from_resource#
This is documentation for AWS CloudHSM Classic.
Type annotations and code completion for boto3.client("cloudhsm").remove_tags_from_resource
method.
boto3 documentation
# remove_tags_from_resource method definition
def remove_tags_from_resource(
self,
*,
ResourceArn: str,
TagKeyList: Sequence[str],
) -> RemoveTagsFromResourceResponseTypeDef: # (1)
...
# remove_tags_from_resource method usage example with argument unpacking
kwargs: RemoveTagsFromResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeyList": ...,
}
parent.remove_tags_from_resource(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("cloudhsm").get_paginator
method with overloads.
client.get_paginator("list_hapgs")
-> ListHapgsPaginatorclient.get_paginator("list_hsms")
-> ListHsmsPaginatorclient.get_paginator("list_luna_clients")
-> ListLunaClientsPaginator