Smaws_Client_CloudHSMV2.Typestype nonrec tag_key_list = tag_key listtype nonrec untag_resource_request = {tag_key_list : tag_key_list;A list of one or more tag keys for the tags that you are removing. Specify only the tag keys, not the tag values.
*)resource_id : resource_id;The cluster identifier (ID) for the cluster whose tags you are removing. To find the cluster ID, use DescribeClusters.
}The request was rejected because of a tagging failure. Verify the tag conditions in all applicable policies, and then retry the request.
The request was rejected because an error occurred.
The request was rejected because it refers to a resource that cannot be found.
The request was rejected because it is not a valid request.
The request was rejected because of an CloudHSM internal failure. The request can be retried.
The request was rejected because the requester does not have permission to perform the requested operation.
type nonrec tag_list = tag listtype nonrec tag_resource_request = {tag_list : tag_list;A list of one or more tags.
*)resource_id : resource_id;The cluster identifier (ID) for the cluster that you are tagging. To find the cluster ID, use DescribeClusters.
}The request was rejected because it exceeds an CloudHSM limit.
type nonrec subnet_ids = subnet_id listtype nonrec strings = string_ listtype nonrec backup = {mode : cluster_mode option;The mode of the cluster that was backed up.
*)hsm_type : hsm_type option;The HSM type used to create the backup.
*)tag_list : tag_list option;The list of tags for the backup.
*)delete_timestamp : timestamp option;The date and time when the backup will be permanently deleted.
*)source_cluster : cluster_id option;The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
*)source_backup : backup_id option;The identifier (ID) of the source backup from which the new backup was copied.
*)source_region : region option;The AWS Region that contains the source backup from which the new backup was copied.
*)never_expires : boolean_ option;Specifies whether the service should exempt a backup from the retention policy for the cluster. True exempts a backup from the retention policy. False means the service applies the backup retention policy defined at the cluster.
copy_timestamp : timestamp option;The date and time when the backup was copied from a source backup.
*)create_timestamp : timestamp option;The date and time when the backup was created.
*)cluster_id : cluster_id option;The identifier (ID) of the cluster that was backed up.
*)backup_state : backup_state option;The state of the backup.
*)backup_arn : backup_arn option;The Amazon Resource Name (ARN) of the backup.
*)backup_id : backup_id;The identifier (ID) of the backup.
*)}Contains information about a backup of an CloudHSM cluster. All backup objects contain the BackupId, BackupState, ClusterId, and CreateTimestamp parameters. Backups that were copied into a destination region additionally contain the CopyTimestamp, SourceBackup, SourceCluster, and SourceRegion parameters. A backup that is pending deletion will include the DeleteTimestamp parameter.
type nonrec restore_backup_response = {backup : backup option;Information on the Backup object created.
}type nonrec restore_backup_request = {backup_id : backup_id;The ID of the backup to be restored. To find the ID of a backup, use the DescribeBackups operation.
}type nonrec put_resource_policy_response = {policy : resource_policy option;The policy attached to a resource.
*)resource_arn : cloud_hsm_arn option;Amazon Resource Name (ARN) of the resource to which a policy is attached.
*)}type nonrec put_resource_policy_request = {policy : resource_policy option;The policy you want to associate with a resource.
For an example policy, see Working with shared backups in the CloudHSM User Guide
*)resource_arn : cloud_hsm_arn option;Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
*)}type nonrec backup_retention_policy = {value : backup_retention_value option;Use a value between 7 - 379.
*)type_ : backup_retention_type option;The type of backup retention policy. For the DAYS type, the value is the number of days to retain backups.
}A policy that defines the number of days to retain backups.
type nonrec hsm = {state_message : string_ option;A description of the HSM's state.
*)state : hsm_state option;The HSM's state.
*)hsm_type : hsm_type option;The type of HSM.
*)hsm_id : hsm_id;The HSM's identifier (ID).
*)eni_ip_v6 : ip_v6_address option;The IPv6 address (if any) of the HSM's elastic network interface (ENI).
*)eni_ip : ip_address option;The IP address of the HSM's elastic network interface (ENI).
*)eni_id : eni_id option;The identifier (ID) of the HSM's elastic network interface (ENI).
*)subnet_id : subnet_id option;The subnet that contains the HSM's elastic network interface (ENI).
*)cluster_id : cluster_id option;The identifier (ID) of the cluster that contains the HSM.
*)availability_zone : external_az option;The Availability Zone that contains the HSM.
*)}Contains information about a hardware security module (HSM) in an CloudHSM cluster.
type nonrec hsms = hsm listtype nonrec external_subnet_mapping = (external_az * subnet_id) listtype nonrec certificates = {cluster_certificate : cert option;The cluster certificate issued (signed) by the issuing certificate authority (CA) of the cluster's owner.
*)manufacturer_hardware_certificate : cert option;The HSM hardware certificate issued (signed) by the hardware manufacturer.
*)aws_hardware_certificate : cert option;The HSM hardware certificate issued (signed) by CloudHSM.
*)hsm_certificate : cert option;The HSM certificate issued (signed) by the HSM hardware.
*)cluster_csr : cert option;The cluster's certificate signing request (CSR). The CSR exists only when the cluster's state is UNINITIALIZED.
}Contains one or more certificates or a certificate signing request (CSR).
type nonrec cluster = {mode : cluster_mode option;The mode of the cluster.
*)tag_list : tag_list option;The list of tags for the cluster.
*)certificates : certificates option;Contains one or more certificates or a certificate signing request (CSR).
*)network_type : network_type option;The cluster's NetworkType can be IPv4 (the default) or DUALSTACK. The IPv4 NetworkType restricts communication between your application and the hardware security modules (HSMs) to the IPv4 protocol only. The DUALSTACK NetworkType enables communication over both IPv4 and IPv6 protocols. To use DUALSTACK, configure your virtual private cloud (VPC) and subnets to support both IPv4 and IPv6. This configuration involves adding IPv6 Classless Inter-Domain Routing (CIDR) blocks to the existing IPv4 CIDR blocks in your subnets. The NetworkType you choose affects the network addressing options for your cluster. DUALSTACK provides more flexibility by supporting both IPv4 and IPv6 communication.
*)vpc_id : vpc_id option;The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
*)subnet_mapping : external_subnet_mapping option;A map from availability zone to the cluster’s subnet in that availability zone.
*)state_message : state_message option;A description of the cluster's state.
*)state : cluster_state option;The cluster's state.
*)source_backup_id : backup_id option;The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
*)security_group : security_group option;The identifier (ID) of the cluster's security group.
*)pre_co_password : pre_co_password option;The default password for the cluster's Pre-Crypto Officer (PRECO) user.
*)hsm_type_rollback_expiration : timestamp option;The timestamp until when the cluster can be rolled back to its original HSM type.
*)hsm_type : hsm_type option;The type of HSM that the cluster contains.
*)hsms : hsms option;Contains information about the HSMs in the cluster.
*)create_timestamp : timestamp option;The date and time when the cluster was created.
*)cluster_id : cluster_id option;The cluster's identifier (ID).
*)backup_retention_policy : backup_retention_policy option;A policy that defines how the service retains backups.
*)backup_policy : backup_policy option;The cluster's backup policy.
*)}Contains information about an CloudHSM cluster.
type nonrec modify_cluster_request = {cluster_id : cluster_id;The identifier (ID) of the cluster that you want to modify. To find the cluster ID, use DescribeClusters.
backup_retention_policy : backup_retention_policy option;A policy that defines how the service retains backups.
*)hsm_type : hsm_type option;The desired HSM type of the cluster.
*)}type nonrec modify_backup_attributes_request = {never_expires : boolean_;Specifies whether the service should exempt a backup from the retention policy for the cluster. True exempts a backup from the retention policy. False means the service applies the backup retention policy defined at the cluster.
backup_id : backup_id;The identifier (ID) of the backup to modify. To find the ID of a backup, use the DescribeBackups operation.
}type nonrec initialize_cluster_response = {state_message : state_message option;A description of the cluster's state.
*)state : cluster_state option;The cluster's state.
*)}type nonrec initialize_cluster_request = {trust_anchor : cert;The issuing certificate of the issuing certificate authority (CA) that issued (signed) the cluster certificate. You must use a self-signed certificate. The certificate used to sign the HSM CSR must be directly available, and thus must be the root certificate. The certificate must be in PEM format and can contain a maximum of 5000 characters.
*)signed_cert : cert;The cluster certificate issued (signed) by your issuing certificate authority (CA). The certificate must be in PEM format and can contain a maximum of 5000 characters.
*)cluster_id : cluster_id;The identifier (ID) of the cluster that you are claiming. To find the cluster ID, use DescribeClusters.
}type nonrec get_resource_policy_response = {policy : resource_policy option;The policy attached to a resource.
*)}type nonrec get_resource_policy_request = {resource_arn : cloud_hsm_arn option;Amazon Resource Name (ARN) of the resource to which a policy is attached.
*)}type nonrec destination_backup = {source_cluster : cluster_id option;The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
*)source_backup : backup_id option;The identifier (ID) of the source backup from which the new backup was copied.
*)source_region : region option;The AWS region that contains the source backup from which the new backup was copied.
*)create_timestamp : timestamp option;The date and time when both the source backup was created.
*)}Contains information about the backup that will be copied and created by the CopyBackupToRegion operation.
type nonrec clusters = cluster listtype nonrec describe_clusters_response = {next_token : next_token option;An opaque string that indicates that the response contains only a subset of clusters. Use this value in a subsequent DescribeClusters request to get more clusters.
clusters : clusters option;A list of clusters.
*)}type nonrec describe_clusters_request = {max_results : clusters_max_size option;The maximum number of clusters to return in the response. When there are more clusters than the number you specify, the response contains a NextToken value.
next_token : next_token option;The NextToken value that you received in the previous response. Use this value to get more clusters.
filters : filters option;One or more filters to limit the items returned in the response.
Use the clusterIds filter to return only the specified clusters. Specify clusters by their cluster identifier (ID).
Use the vpcIds filter to return only the clusters in the specified virtual private clouds (VPCs). Specify VPCs by their VPC identifier (ID).
Use the states filter to return only clusters that match the specified state.
}type nonrec backups = backup listtype nonrec describe_backups_response = {next_token : next_token option;An opaque string that indicates that the response contains only a subset of backups. Use this value in a subsequent DescribeBackups request to get more backups.
backups : backups option;A list of backups.
*)}type nonrec describe_backups_request = {sort_ascending : boolean_ option;Designates whether or not to sort the return backups by ascending chronological order of generation.
*)filters : filters option;One or more filters to limit the items returned in the response.
Use the backupIds filter to return only the specified backups. Specify backups by their backup identifier (ID).
Use the sourceBackupIds filter to return only the backups created from a source backup. The sourceBackupID of a source backup is returned by the CopyBackupToRegion operation.
Use the clusterIds filter to return only the backups for the specified clusters. Specify clusters by their cluster identifier (ID).
Use the states filter to return only backups that match the specified state.
Use the neverExpires filter to return backups filtered by the value in the neverExpires parameter. True returns all backups exempt from the backup retention policy. False returns all backups with a backup retention policy defined at the cluster.
max_results : backups_max_size option;The maximum number of backups to return in the response. When there are more backups than the number you specify, the response contains a NextToken value.
next_token : next_token option;The NextToken value that you received in the previous response. Use this value to get more backups.
}type nonrec delete_resource_policy_response = {policy : resource_policy option;The policy previously attached to the resource.
*)resource_arn : cloud_hsm_arn option;Amazon Resource Name (ARN) of the resource from which the policy was deleted.
*)}type nonrec delete_resource_policy_request = {resource_arn : cloud_hsm_arn option;Amazon Resource Name (ARN) of the resource from which the policy will be removed.
*)}type nonrec delete_hsm_response = {hsm_id : hsm_id option;The identifier (ID) of the HSM that was deleted.
*)}type nonrec delete_hsm_request = {eni_ip : ip_address option;The IP address of the elastic network interface (ENI) of the HSM that you are deleting.
*)eni_id : eni_id option;The identifier (ID) of the elastic network interface (ENI) of the HSM that you are deleting.
*)hsm_id : hsm_id option;The identifier (ID) of the HSM that you are deleting.
*)cluster_id : cluster_id;The identifier (ID) of the cluster that contains the HSM that you are deleting.
*)}type nonrec delete_cluster_response = {cluster : cluster option;Information about the cluster that was deleted.
*)}type nonrec delete_cluster_request = {cluster_id : cluster_id;The identifier (ID) of the cluster that you are deleting. To find the cluster ID, use DescribeClusters.
}type nonrec delete_backup_response = {backup : backup option;Information on the Backup object deleted.
}type nonrec delete_backup_request = {backup_id : backup_id;The ID of the backup to be deleted. To find the ID of a backup, use the DescribeBackups operation.
}type nonrec create_hsm_response = {hsm : hsm option;Information about the HSM that was created.
*)}type nonrec create_hsm_request = {ip_address : ip_address option;The HSM's IP address. If you specify an IP address, use an available address from the subnet that maps to the Availability Zone where you are creating the HSM. If you don't specify an IP address, one is chosen for you from that subnet.
*)availability_zone : external_az;The Availability Zone where you are creating the HSM. To find the cluster's Availability Zones, use DescribeClusters.
cluster_id : cluster_id;The identifier (ID) of the HSM's cluster. To find the cluster ID, use DescribeClusters.
}type nonrec create_cluster_response = {cluster : cluster option;Information about the cluster that was created.
*)}type nonrec create_cluster_request = {mode : cluster_mode option;The mode to use in the cluster. The allowed values are FIPS and NON_FIPS.
tag_list : tag_list option;Tags to apply to the CloudHSM cluster during creation.
*)network_type : network_type option;The NetworkType to create a cluster with. The allowed values are IPV4 and DUALSTACK.
subnet_ids : subnet_ids;The identifiers (IDs) of the subnets where you are creating the cluster. You must specify at least one subnet. If you specify multiple subnets, they must meet the following criteria:
source_backup_id : backup_arn option;The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to restore. Use this value to restore the cluster from a backup instead of creating a new cluster. To find the backup ID or ARN, use DescribeBackups. If using a backup in another account, the full ARN must be supplied.
hsm_type : hsm_type;The type of HSM to use in the cluster. The allowed values are hsm1.medium and hsm2m.medium.
backup_retention_policy : backup_retention_policy option;A policy that defines how the service retains backups.
*)}type nonrec copy_backup_to_region_response = {destination_backup : destination_backup option;Information on the backup that will be copied to the destination region, including CreateTimestamp, SourceBackup, SourceCluster, and Source Region. CreateTimestamp of the destination backup will be the same as that of the source backup.
You will need to use the sourceBackupID returned in this operation to use the DescribeBackups operation on the backup that will be copied to the destination region.
}type nonrec copy_backup_to_region_request = {tag_list : tag_list option;Tags to apply to the destination backup during creation. If you specify tags, only these tags will be applied to the destination backup. If you do not specify tags, the service copies tags from the source backup to the destination backup.
*)backup_id : backup_id;The ID of the backup that will be copied to the destination region.
*)destination_region : region;The AWS region that will contain your copied CloudHSM cluster backup.
*)}