CloudHSMClient#
Auto-generated documentation for CloudHSM type annotations stubs module types-boto3-cloudhsm.
CloudHSMClient#
Type annotations and code completion for boto3.client("cloudhsm").
 boto3 documentation
# CloudHSMClient usage example
from boto3.session import Session
from types_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 types_boto3_cloudhsm.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
    ...Methods#
can_paginate#
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:
    ...generate_presigned_url#
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:
    ...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)
    ...- See Sequence[TagTypeDef]
- See AddTagsToResourceResponseTypeDef
# add_tags_to_resource method usage example with argument unpacking
kwargs: AddTagsToResourceRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagList": ...,
}
parent.add_tags_to_resource(**kwargs)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: CreateHapgRequestTypeDef = {  # (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: CreateHsmRequestTypeDef = {  # (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: CreateLunaClientRequestTypeDef = {  # (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: DeleteHapgRequestTypeDef = {  # (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: DeleteHsmRequestTypeDef = {  # (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: DeleteLunaClientRequestTypeDef = {  # (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: DescribeHapgRequestTypeDef = {  # (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: DescribeHsmRequestTypeDef = {  # (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: DescribeLunaClientRequestTypeDef = {  # (1)
    "ClientArn": ...,
}
parent.describe_luna_client(**kwargs)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: GetConfigRequestTypeDef = {  # (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: ListHapgsRequestTypeDef = {  # (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: ListHsmsRequestTypeDef = {  # (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: ListLunaClientsRequestTypeDef = {  # (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: ListTagsForResourceRequestTypeDef = {  # (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: ModifyHapgRequestTypeDef = {  # (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: ModifyHsmRequestTypeDef = {  # (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: ModifyLunaClientRequestTypeDef = {  # (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: RemoveTagsFromResourceRequestTypeDef = {  # (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")-> ListHapgsPaginator
- client.get_paginator("list_hsms")-> ListHsmsPaginator
- client.get_paginator("list_luna_clients")-> ListLunaClientsPaginator