modify_hsm
¶
modify_hsm(
hsm_arn: HsmArn,
*,
config_overrides: Optional[CloudHSMClientConfig] = None,
subnet_id: Optional[SubnetId] = None,
eni_ip: Optional[IpAddress] = None,
iam_role_arn: Optional[IamRoleArn] = None,
external_id: Optional[ExternalId] = None,
syslog_ip: Optional[IpAddress] = None,
) -> ModifyHsmResponse
This is documentation for AWS CloudHSM Classic. For more information, see AWS CloudHSM Classic FAQs, the AWS CloudHSM Classic User Guide, and the AWS CloudHSM Classic API Reference.
For information about the current version of AWS CloudHSM, see AWS CloudHSM, the AWS CloudHSM User Guide, and the AWS CloudHSM API Reference.
Modifies an HSM.
This operation can result in the HSM being offline for up to 15 minutes while the AWS CloudHSM service is reconfigured. If you are modifying a production HSM, you should ensure that your AWS CloudHSM service is configured for high availability, and consider executing this operation during a maintenance window.
Parameters:
-
hsm_arn(HsmArn) –The ARN of the HSM to modify.
-
subnet_id(Optional[SubnetId], default:None) –The new identifier of the subnet that the HSM is in. The new subnet must be in the same Availability Zone as the current subnet.
-
eni_ip(Optional[IpAddress], default:None) –The new IP address for the elastic network interface (ENI) attached to the HSM.
If the HSM is moved to a different subnet, and an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the new subnet.
-
iam_role_arn(Optional[IamRoleArn], default:None) –The new IAM role ARN.
-
external_id(Optional[ExternalId], default:None) –The new external ID.
-
syslog_ip(Optional[IpAddress], default:None) –The new IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server.
Raises:
-
CloudHsmInternalException–Indicates that an internal error occurred.
-
CloudHsmServiceException–Indicates that an exception occurred in the AWS CloudHSM service.
-
InvalidRequestException–Indicates that one or more of the request parameters are not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudhsm/_services/cloud_hsm.py
1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 | |