{
  "version":"2.0",
  "metadata":{
    "apiVersion":"2017-04-28",
    "endpointPrefix":"cloudhsmv2",
    "jsonVersion":"1.1",
    "protocol":"json",
    "protocols":["json"],
    "serviceAbbreviation":"CloudHSM V2",
    "serviceFullName":"AWS CloudHSM V2",
    "serviceId":"CloudHSM V2",
    "signatureVersion":"v4",
    "signingName":"cloudhsm",
    "targetPrefix":"BaldrApiService",
    "uid":"cloudhsmv2-2017-04-28",
    "auth":["aws.auth#sigv4"]
  },
  "operations":{
    "CopyBackupToRegion":{
      "name":"CopyBackupToRegion",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"CopyBackupToRegionRequest"},
      "output":{"shape":"CopyBackupToRegionResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmTagException"}
      ],
      "documentation":"<p>Copy an CloudHSM cluster backup to a different region.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.</p>"
    },
    "CreateCluster":{
      "name":"CreateCluster",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"CreateClusterRequest"},
      "output":{"shape":"CreateClusterResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmTagException"}
      ],
      "documentation":"<p>Creates a new CloudHSM cluster.</p> <p> <b>Cross-account use:</b> Yes. To perform this operation with an CloudHSM backup in a different AWS account, specify the full backup ARN in the value of the SourceBackupId parameter.</p>"
    },
    "CreateHsm":{
      "name":"CreateHsm",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"CreateHsmRequest"},
      "output":{"shape":"CreateHsmResponse"},
      "errors":[
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmAccessDeniedException"}
      ],
      "documentation":"<p>Creates a new hardware security module (HSM) in the specified CloudHSM cluster.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Service account.</p>"
    },
    "DeleteBackup":{
      "name":"DeleteBackup",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DeleteBackupRequest"},
      "output":{"shape":"DeleteBackupResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"}
      ],
      "documentation":"<p>Deletes a specified CloudHSM backup. A backup can be restored up to 7 days after the DeleteBackup request is made. For more information on restoring a backup, see <a>RestoreBackup</a>.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.</p>"
    },
    "DeleteCluster":{
      "name":"DeleteCluster",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DeleteClusterRequest"},
      "output":{"shape":"DeleteClusterResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmTagException"}
      ],
      "documentation":"<p>Deletes the specified CloudHSM cluster. Before you can delete a cluster, you must delete all HSMs in the cluster. To see if the cluster contains any HSMs, use <a>DescribeClusters</a>. To delete an HSM, use <a>DeleteHsm</a>.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.</p>"
    },
    "DeleteHsm":{
      "name":"DeleteHsm",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DeleteHsmRequest"},
      "output":{"shape":"DeleteHsmResponse"},
      "errors":[
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmAccessDeniedException"}
      ],
      "documentation":"<p>Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to specify only one of these values. To find these values, use <a>DescribeClusters</a>.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM hsm in a different Amazon Web Services account.</p>"
    },
    "DeleteResourcePolicy":{
      "name":"DeleteResourcePolicy",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DeleteResourcePolicyRequest"},
      "output":{"shape":"DeleteResourcePolicyResponse"},
      "errors":[
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmAccessDeniedException"}
      ],
      "documentation":"<p> Deletes an CloudHSM resource policy. Deleting a resource policy will result in the resource being unshared and removed from any RAM resource shares. Deleting the resource policy attached to a backup will not impact any clusters created from that backup.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.</p>"
    },
    "DescribeBackups":{
      "name":"DescribeBackups",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DescribeBackupsRequest"},
      "output":{"shape":"DescribeBackupsResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmTagException"}
      ],
      "documentation":"<p>Gets information about backups of CloudHSM clusters. Lists either the backups you own or the backups shared with you when the Shared parameter is true.</p> <p>This is a paginated operation, which means that each response might contain only a subset of all the backups. When the response contains only a subset of backups, it includes a <code>NextToken</code> value. Use this value in a subsequent <code>DescribeBackups</code> request to get more backups. When you receive a response with no <code>NextToken</code> (or an empty or null value), that means there are no more backups to get.</p> <p> <b>Cross-account use:</b> Yes. Customers can describe backups in other Amazon Web Services accounts that are shared with them.</p>"
    },
    "DescribeClusters":{
      "name":"DescribeClusters",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"DescribeClustersRequest"},
      "output":{"shape":"DescribeClustersResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmTagException"}
      ],
      "documentation":"<p>Gets information about CloudHSM clusters.</p> <p>This is a paginated operation, which means that each response might contain only a subset of all the clusters. When the response contains only a subset of clusters, it includes a <code>NextToken</code> value. Use this value in a subsequent <code>DescribeClusters</code> request to get more clusters. When you receive a response with no <code>NextToken</code> (or an empty or null value), that means there are no more clusters to get.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on CloudHSM clusters in a different Amazon Web Services account.</p>"
    },
    "GetResourcePolicy":{
      "name":"GetResourcePolicy",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"GetResourcePolicyRequest"},
      "output":{"shape":"GetResourcePolicyResponse"},
      "errors":[
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmAccessDeniedException"}
      ],
      "documentation":"<p> Retrieves the resource policy document attached to a given resource. </p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.</p>"
    },
    "InitializeCluster":{
      "name":"InitializeCluster",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"InitializeClusterRequest"},
      "output":{"shape":"InitializeClusterResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"}
      ],
      "documentation":"<p>Claims an CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use <a>DescribeClusters</a>.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.</p>"
    },
    "ListTags":{
      "name":"ListTags",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"ListTagsRequest"},
      "output":{"shape":"ListTagsResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmTagException"}
      ],
      "documentation":"<p>Gets a list of tags for the specified CloudHSM cluster.</p> <p>This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a <code>NextToken</code> value. Use this value in a subsequent <code>ListTags</code> request to get more tags. When you receive a response with no <code>NextToken</code> (or an empty or null value), that means there are no more tags to get.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.</p>"
    },
    "ModifyBackupAttributes":{
      "name":"ModifyBackupAttributes",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"ModifyBackupAttributesRequest"},
      "output":{"shape":"ModifyBackupAttributesResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"}
      ],
      "documentation":"<p>Modifies attributes for CloudHSM backup.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.</p>"
    },
    "ModifyCluster":{
      "name":"ModifyCluster",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"ModifyClusterRequest"},
      "output":{"shape":"ModifyClusterResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"}
      ],
      "documentation":"<p>Modifies CloudHSM cluster.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Services account.</p>"
    },
    "PutResourcePolicy":{
      "name":"PutResourcePolicy",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"PutResourcePolicyRequest"},
      "output":{"shape":"PutResourcePolicyResponse"},
      "errors":[
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmAccessDeniedException"}
      ],
      "documentation":"<p>Creates or updates an CloudHSM resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your CloudHSM resources. The following resources support CloudHSM resource policies: </p> <ul> <li> <p> Backup - The resource policy allows you to describe the backup and restore a cluster from the backup in another Amazon Web Services account.</p> </li> </ul> <p>In order to share a backup, it must be in a 'READY' state and you must own it.</p> <important> <p>While you can share a backup using the CloudHSM PutResourcePolicy operation, we recommend using Resource Access Manager (RAM) instead. Using RAM provides multiple benefits as it creates the policy for you, allows multiple resources to be shared at one time, and increases the discoverability of shared resources. If you use PutResourcePolicy and want consumers to be able to describe the backups you share with them, you must promote the backup to a standard RAM Resource Share using the RAM PromoteResourceShareCreatedFromPolicy API operation. For more information, see <a href=\"https://docs.aws.amazon.com/cloudhsm/latest/userguide/sharing.html\"> Working with shared backups</a> in the CloudHSM User Guide</p> </important> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.</p>"
    },
    "RestoreBackup":{
      "name":"RestoreBackup",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"RestoreBackupRequest"},
      "output":{"shape":"RestoreBackupResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"}
      ],
      "documentation":"<p>Restores a specified CloudHSM backup that is in the <code>PENDING_DELETION</code> state. For more information on deleting a backup, see <a>DeleteBackup</a>.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM backup in a different Amazon Web Services account.</p>"
    },
    "TagResource":{
      "name":"TagResource",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"TagResourceRequest"},
      "output":{"shape":"TagResourceResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceLimitExceededException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmTagException"}
      ],
      "documentation":"<p>Adds or overwrites one or more tags for the specified CloudHSM cluster.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.</p>"
    },
    "UntagResource":{
      "name":"UntagResource",
      "http":{
        "method":"POST",
        "requestUri":"/"
      },
      "input":{"shape":"UntagResourceRequest"},
      "output":{"shape":"UntagResourceResponse"},
      "errors":[
        {"shape":"CloudHsmAccessDeniedException"},
        {"shape":"CloudHsmInternalFailureException"},
        {"shape":"CloudHsmInvalidRequestException"},
        {"shape":"CloudHsmResourceNotFoundException"},
        {"shape":"CloudHsmServiceException"},
        {"shape":"CloudHsmTagException"}
      ],
      "documentation":"<p>Removes the specified tag or tags from the specified CloudHSM cluster.</p> <p> <b>Cross-account use:</b> No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.</p>"
    }
  },
  "shapes":{
    "Backup":{
      "type":"structure",
      "required":["BackupId"],
      "members":{
        "BackupId":{
          "shape":"BackupId",
          "documentation":"<p>The identifier (ID) of the backup.</p>"
        },
        "BackupArn":{
          "shape":"BackupArn",
          "documentation":"<p>The Amazon Resource Name (ARN) of the backup.</p>"
        },
        "BackupState":{
          "shape":"BackupState",
          "documentation":"<p>The state of the backup.</p>"
        },
        "ClusterId":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the cluster that was backed up.</p>"
        },
        "CreateTimestamp":{
          "shape":"Timestamp",
          "documentation":"<p>The date and time when the backup was created.</p>"
        },
        "CopyTimestamp":{
          "shape":"Timestamp",
          "documentation":"<p>The date and time when the backup was copied from a source backup.</p>"
        },
        "NeverExpires":{
          "shape":"Boolean",
          "documentation":"<p>Specifies whether the service should exempt a backup from the retention policy for the cluster. <code>True</code> exempts a backup from the retention policy. <code>False</code> means the service applies the backup retention policy defined at the cluster.</p>"
        },
        "SourceRegion":{
          "shape":"Region",
          "documentation":"<p>The AWS Region that contains the source backup from which the new backup was copied.</p>"
        },
        "SourceBackup":{
          "shape":"BackupId",
          "documentation":"<p>The identifier (ID) of the source backup from which the new backup was copied.</p>"
        },
        "SourceCluster":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the cluster containing the source backup from which the new backup was copied.</p>"
        },
        "DeleteTimestamp":{
          "shape":"Timestamp",
          "documentation":"<p>The date and time when the backup will be permanently deleted.</p>"
        },
        "TagList":{
          "shape":"TagList",
          "documentation":"<p>The list of tags for the backup.</p>"
        },
        "HsmType":{
          "shape":"HsmType",
          "documentation":"<p>The HSM type used to create the backup.</p>"
        },
        "Mode":{
          "shape":"ClusterMode",
          "documentation":"<p>The mode of the cluster that was backed up.</p>"
        }
      },
      "documentation":"<p>Contains information about a backup of an CloudHSM cluster. All backup objects contain the <code>BackupId</code>, <code>BackupState</code>, <code>ClusterId</code>, and <code>CreateTimestamp</code> parameters. Backups that were copied into a destination region additionally contain the <code>CopyTimestamp</code>, <code>SourceBackup</code>, <code>SourceCluster</code>, and <code>SourceRegion</code> parameters. A backup that is pending deletion will include the <code>DeleteTimestamp</code> parameter.</p>"
    },
    "BackupArn":{
      "type":"string",
      "pattern":"^(arn:aws(-(us-gov))?:cloudhsm:([a-z]{2}(-(gov|isob|iso))?-(east|west|north|south|central){1,2}-[0-9]{1}):[0-9]{12}:backup/)?backup-[2-7a-zA-Z]{11,16}"
    },
    "BackupId":{
      "type":"string",
      "pattern":"backup-[2-7a-zA-Z]{11,16}"
    },
    "BackupPolicy":{
      "type":"string",
      "enum":["DEFAULT"]
    },
    "BackupRetentionPolicy":{
      "type":"structure",
      "members":{
        "Type":{
          "shape":"BackupRetentionType",
          "documentation":"<p>The type of backup retention policy. For the <code>DAYS</code> type, the value is the number of days to retain backups.</p>"
        },
        "Value":{
          "shape":"BackupRetentionValue",
          "documentation":"<p>Use a value between 7 - 379.</p>"
        }
      },
      "documentation":"<p>A policy that defines the number of days to retain backups.</p>"
    },
    "BackupRetentionType":{
      "type":"string",
      "enum":["DAYS"]
    },
    "BackupRetentionValue":{
      "type":"string",
      "max":3,
      "min":1,
      "pattern":"[0-9]+"
    },
    "BackupState":{
      "type":"string",
      "enum":[
        "CREATE_IN_PROGRESS",
        "READY",
        "DELETED",
        "PENDING_DELETION"
      ]
    },
    "Backups":{
      "type":"list",
      "member":{"shape":"Backup"}
    },
    "BackupsMaxSize":{
      "type":"integer",
      "max":50,
      "min":1
    },
    "Boolean":{"type":"boolean"},
    "Cert":{
      "type":"string",
      "max":20000,
      "pattern":"[a-zA-Z0-9+-/=\\s]*"
    },
    "Certificates":{
      "type":"structure",
      "members":{
        "ClusterCsr":{
          "shape":"Cert",
          "documentation":"<p>The cluster's certificate signing request (CSR). The CSR exists only when the cluster's state is <code>UNINITIALIZED</code>.</p>"
        },
        "HsmCertificate":{
          "shape":"Cert",
          "documentation":"<p>The HSM certificate issued (signed) by the HSM hardware.</p>"
        },
        "AwsHardwareCertificate":{
          "shape":"Cert",
          "documentation":"<p>The HSM hardware certificate issued (signed) by CloudHSM.</p>"
        },
        "ManufacturerHardwareCertificate":{
          "shape":"Cert",
          "documentation":"<p>The HSM hardware certificate issued (signed) by the hardware manufacturer.</p>"
        },
        "ClusterCertificate":{
          "shape":"Cert",
          "documentation":"<p>The cluster certificate issued (signed) by the issuing certificate authority (CA) of the cluster's owner.</p>"
        }
      },
      "documentation":"<p>Contains one or more certificates or a certificate signing request (CSR).</p>"
    },
    "CloudHsmAccessDeniedException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"errorMessage"}
      },
      "documentation":"<p>The request was rejected because the requester does not have permission to perform the requested operation.</p>",
      "exception":true
    },
    "CloudHsmArn":{
      "type":"string",
      "pattern":"arn:aws(-(us-gov))?:cloudhsm:([a-z]{2}(-(gov|isob|iso))?-(east|west|north|south|central){1,2}-[0-9]{1}):[0-9]{12}:(backup/backup|cluster/cluster|hsm/hsm)-[2-7a-zA-Z]{11,16}"
    },
    "CloudHsmInternalFailureException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"errorMessage"}
      },
      "documentation":"<p>The request was rejected because of an CloudHSM internal failure. The request can be retried.</p>",
      "exception":true,
      "fault":true
    },
    "CloudHsmInvalidRequestException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"errorMessage"}
      },
      "documentation":"<p>The request was rejected because it is not a valid request.</p>",
      "exception":true
    },
    "CloudHsmResourceLimitExceededException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"errorMessage"}
      },
      "documentation":"<p>The request was rejected because it exceeds an CloudHSM limit.</p>",
      "exception":true
    },
    "CloudHsmResourceNotFoundException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"errorMessage"}
      },
      "documentation":"<p>The request was rejected because it refers to a resource that cannot be found.</p>",
      "exception":true
    },
    "CloudHsmServiceException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"errorMessage"}
      },
      "documentation":"<p>The request was rejected because an error occurred.</p>",
      "exception":true
    },
    "CloudHsmTagException":{
      "type":"structure",
      "members":{
        "Message":{"shape":"errorMessage"}
      },
      "documentation":"<p>The request was rejected because of a tagging failure. Verify the tag conditions in all applicable policies, and then retry the request.</p>",
      "exception":true
    },
    "Cluster":{
      "type":"structure",
      "members":{
        "BackupPolicy":{
          "shape":"BackupPolicy",
          "documentation":"<p>The cluster's backup policy.</p>"
        },
        "BackupRetentionPolicy":{
          "shape":"BackupRetentionPolicy",
          "documentation":"<p>A policy that defines how the service retains backups.</p>"
        },
        "ClusterId":{
          "shape":"ClusterId",
          "documentation":"<p>The cluster's identifier (ID).</p>"
        },
        "CreateTimestamp":{
          "shape":"Timestamp",
          "documentation":"<p>The date and time when the cluster was created.</p>"
        },
        "Hsms":{
          "shape":"Hsms",
          "documentation":"<p>Contains information about the HSMs in the cluster.</p>"
        },
        "HsmType":{
          "shape":"HsmType",
          "documentation":"<p>The type of HSM that the cluster contains.</p>"
        },
        "HsmTypeRollbackExpiration":{
          "shape":"Timestamp",
          "documentation":"<p>The timestamp until when the cluster can be rolled back to its original HSM type.</p>"
        },
        "PreCoPassword":{
          "shape":"PreCoPassword",
          "documentation":"<p>The default password for the cluster's Pre-Crypto Officer (PRECO) user.</p>"
        },
        "SecurityGroup":{
          "shape":"SecurityGroup",
          "documentation":"<p>The identifier (ID) of the cluster's security group.</p>"
        },
        "SourceBackupId":{
          "shape":"BackupId",
          "documentation":"<p>The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.</p>"
        },
        "State":{
          "shape":"ClusterState",
          "documentation":"<p>The cluster's state.</p>"
        },
        "StateMessage":{
          "shape":"StateMessage",
          "documentation":"<p>A description of the cluster's state.</p>"
        },
        "SubnetMapping":{
          "shape":"ExternalSubnetMapping",
          "documentation":"<p>A map from availability zone to the cluster’s subnet in that availability zone.</p>"
        },
        "VpcId":{
          "shape":"VpcId",
          "documentation":"<p>The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.</p>"
        },
        "NetworkType":{
          "shape":"NetworkType",
          "documentation":"<p>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.</p>"
        },
        "Certificates":{
          "shape":"Certificates",
          "documentation":"<p>Contains one or more certificates or a certificate signing request (CSR).</p>"
        },
        "TagList":{
          "shape":"TagList",
          "documentation":"<p>The list of tags for the cluster.</p>"
        },
        "Mode":{
          "shape":"ClusterMode",
          "documentation":"<p>The mode of the cluster.</p>"
        }
      },
      "documentation":"<p>Contains information about an CloudHSM cluster.</p>"
    },
    "ClusterId":{
      "type":"string",
      "pattern":"cluster-[2-7a-zA-Z]{11,16}"
    },
    "ClusterMode":{
      "type":"string",
      "enum":[
        "FIPS",
        "NON_FIPS"
      ]
    },
    "ClusterState":{
      "type":"string",
      "enum":[
        "CREATE_IN_PROGRESS",
        "UNINITIALIZED",
        "INITIALIZE_IN_PROGRESS",
        "INITIALIZED",
        "ACTIVE",
        "UPDATE_IN_PROGRESS",
        "MODIFY_IN_PROGRESS",
        "ROLLBACK_IN_PROGRESS",
        "DELETE_IN_PROGRESS",
        "DELETED",
        "DEGRADED"
      ]
    },
    "Clusters":{
      "type":"list",
      "member":{"shape":"Cluster"}
    },
    "ClustersMaxSize":{
      "type":"integer",
      "max":25,
      "min":1
    },
    "CopyBackupToRegionRequest":{
      "type":"structure",
      "required":[
        "DestinationRegion",
        "BackupId"
      ],
      "members":{
        "DestinationRegion":{
          "shape":"Region",
          "documentation":"<p>The AWS region that will contain your copied CloudHSM cluster backup.</p>"
        },
        "BackupId":{
          "shape":"BackupId",
          "documentation":"<p>The ID of the backup that will be copied to the destination region. </p>"
        },
        "TagList":{
          "shape":"TagList",
          "documentation":"<p>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.</p>"
        }
      }
    },
    "CopyBackupToRegionResponse":{
      "type":"structure",
      "members":{
        "DestinationBackup":{
          "shape":"DestinationBackup",
          "documentation":"<p>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.</p> <p>You will need to use the <code>sourceBackupID</code> returned in this operation to use the <a>DescribeBackups</a> operation on the backup that will be copied to the destination region.</p>"
        }
      }
    },
    "CreateClusterRequest":{
      "type":"structure",
      "required":[
        "HsmType",
        "SubnetIds"
      ],
      "members":{
        "BackupRetentionPolicy":{
          "shape":"BackupRetentionPolicy",
          "documentation":"<p>A policy that defines how the service retains backups.</p>"
        },
        "HsmType":{
          "shape":"HsmType",
          "documentation":"<p>The type of HSM to use in the cluster. The allowed values are <code>hsm1.medium</code> and <code>hsm2m.medium</code>.</p>"
        },
        "SourceBackupId":{
          "shape":"BackupArn",
          "documentation":"<p>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 <a>DescribeBackups</a>. <i>If using a backup in another account, the full ARN must be supplied.</i> </p>"
        },
        "SubnetIds":{
          "shape":"SubnetIds",
          "documentation":"<p>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:</p> <ul> <li> <p>All subnets must be in the same virtual private cloud (VPC).</p> </li> <li> <p>You can specify only one subnet per Availability Zone.</p> </li> </ul>"
        },
        "NetworkType":{
          "shape":"NetworkType",
          "documentation":"<p>The NetworkType to create a cluster with. The allowed values are <code>IPV4</code> and <code>DUALSTACK</code>. </p>"
        },
        "TagList":{
          "shape":"TagList",
          "documentation":"<p>Tags to apply to the CloudHSM cluster during creation.</p>"
        },
        "Mode":{
          "shape":"ClusterMode",
          "documentation":"<p>The mode to use in the cluster. The allowed values are <code>FIPS</code> and <code>NON_FIPS</code>.</p>"
        }
      }
    },
    "CreateClusterResponse":{
      "type":"structure",
      "members":{
        "Cluster":{
          "shape":"Cluster",
          "documentation":"<p>Information about the cluster that was created.</p>"
        }
      }
    },
    "CreateHsmRequest":{
      "type":"structure",
      "required":[
        "ClusterId",
        "AvailabilityZone"
      ],
      "members":{
        "ClusterId":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the HSM's cluster. To find the cluster ID, use <a>DescribeClusters</a>.</p>"
        },
        "AvailabilityZone":{
          "shape":"ExternalAz",
          "documentation":"<p>The Availability Zone where you are creating the HSM. To find the cluster's Availability Zones, use <a>DescribeClusters</a>.</p>"
        },
        "IpAddress":{
          "shape":"IpAddress",
          "documentation":"<p>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.</p>"
        }
      }
    },
    "CreateHsmResponse":{
      "type":"structure",
      "members":{
        "Hsm":{
          "shape":"Hsm",
          "documentation":"<p>Information about the HSM that was created.</p>"
        }
      }
    },
    "DeleteBackupRequest":{
      "type":"structure",
      "required":["BackupId"],
      "members":{
        "BackupId":{
          "shape":"BackupId",
          "documentation":"<p>The ID of the backup to be deleted. To find the ID of a backup, use the <a>DescribeBackups</a> operation.</p>"
        }
      }
    },
    "DeleteBackupResponse":{
      "type":"structure",
      "members":{
        "Backup":{
          "shape":"Backup",
          "documentation":"<p>Information on the <code>Backup</code> object deleted.</p>"
        }
      }
    },
    "DeleteClusterRequest":{
      "type":"structure",
      "required":["ClusterId"],
      "members":{
        "ClusterId":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the cluster that you are deleting. To find the cluster ID, use <a>DescribeClusters</a>.</p>"
        }
      }
    },
    "DeleteClusterResponse":{
      "type":"structure",
      "members":{
        "Cluster":{
          "shape":"Cluster",
          "documentation":"<p>Information about the cluster that was deleted.</p>"
        }
      }
    },
    "DeleteHsmRequest":{
      "type":"structure",
      "required":["ClusterId"],
      "members":{
        "ClusterId":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the cluster that contains the HSM that you are deleting.</p>"
        },
        "HsmId":{
          "shape":"HsmId",
          "documentation":"<p>The identifier (ID) of the HSM that you are deleting.</p>"
        },
        "EniId":{
          "shape":"EniId",
          "documentation":"<p>The identifier (ID) of the elastic network interface (ENI) of the HSM that you are deleting.</p>"
        },
        "EniIp":{
          "shape":"IpAddress",
          "documentation":"<p>The IP address of the elastic network interface (ENI) of the HSM that you are deleting.</p>"
        }
      }
    },
    "DeleteHsmResponse":{
      "type":"structure",
      "members":{
        "HsmId":{
          "shape":"HsmId",
          "documentation":"<p>The identifier (ID) of the HSM that was deleted.</p>"
        }
      }
    },
    "DeleteResourcePolicyRequest":{
      "type":"structure",
      "members":{
        "ResourceArn":{
          "shape":"CloudHsmArn",
          "documentation":"<p>Amazon Resource Name (ARN) of the resource from which the policy will be removed. </p>"
        }
      }
    },
    "DeleteResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "ResourceArn":{
          "shape":"CloudHsmArn",
          "documentation":"<p>Amazon Resource Name (ARN) of the resource from which the policy was deleted. </p>"
        },
        "Policy":{
          "shape":"ResourcePolicy",
          "documentation":"<p>The policy previously attached to the resource.</p>"
        }
      }
    },
    "DescribeBackupsRequest":{
      "type":"structure",
      "members":{
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>The <code>NextToken</code> value that you received in the previous response. Use this value to get more backups.</p>"
        },
        "MaxResults":{
          "shape":"BackupsMaxSize",
          "documentation":"<p>The maximum number of backups to return in the response. When there are more backups than the number you specify, the response contains a <code>NextToken</code> value.</p>"
        },
        "Filters":{
          "shape":"Filters",
          "documentation":"<p>One or more filters to limit the items returned in the response.</p> <p>Use the <code>backupIds</code> filter to return only the specified backups. Specify backups by their backup identifier (ID).</p> <p>Use the <code>sourceBackupIds</code> filter to return only the backups created from a source backup. The <code>sourceBackupID</code> of a source backup is returned by the <a>CopyBackupToRegion</a> operation.</p> <p>Use the <code>clusterIds</code> filter to return only the backups for the specified clusters. Specify clusters by their cluster identifier (ID).</p> <p>Use the <code>states</code> filter to return only backups that match the specified state.</p> <p>Use the <code>neverExpires</code> filter to return backups filtered by the value in the <code>neverExpires</code> parameter. <code>True</code> returns all backups exempt from the backup retention policy. <code>False</code> returns all backups with a backup retention policy defined at the cluster.</p>"
        },
        "Shared":{
          "shape":"Boolean",
          "documentation":"<p>Describe backups that are shared with you.</p> <note> <p>By default when using this option, the command returns backups that have been shared using a standard Resource Access Manager resource share. In order for a backup that was shared using the PutResourcePolicy command to be returned, the share must be promoted to a standard resource share using the RAM <a href=\"https://docs.aws.amazon.com/cli/latest/reference/ram/promote-resource-share-created-from-policy.html\">PromoteResourceShareCreatedFromPolicy</a> API operation. For more information about sharing backups, see <a href=\"https://docs.aws.amazon.com/cloudhsm/latest/userguide/sharing.html\"> Working with shared backups</a> in the CloudHSM User Guide.</p> </note>"
        },
        "SortAscending":{
          "shape":"Boolean",
          "documentation":"<p>Designates whether or not to sort the return backups by ascending chronological order of generation.</p>"
        }
      }
    },
    "DescribeBackupsResponse":{
      "type":"structure",
      "members":{
        "Backups":{
          "shape":"Backups",
          "documentation":"<p>A list of backups.</p>"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>An opaque string that indicates that the response contains only a subset of backups. Use this value in a subsequent <code>DescribeBackups</code> request to get more backups.</p>"
        }
      }
    },
    "DescribeClustersRequest":{
      "type":"structure",
      "members":{
        "Filters":{
          "shape":"Filters",
          "documentation":"<p>One or more filters to limit the items returned in the response.</p> <p>Use the <code>clusterIds</code> filter to return only the specified clusters. Specify clusters by their cluster identifier (ID).</p> <p>Use the <code>vpcIds</code> filter to return only the clusters in the specified virtual private clouds (VPCs). Specify VPCs by their VPC identifier (ID).</p> <p>Use the <code>states</code> filter to return only clusters that match the specified state.</p>"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>The <code>NextToken</code> value that you received in the previous response. Use this value to get more clusters.</p>"
        },
        "MaxResults":{
          "shape":"ClustersMaxSize",
          "documentation":"<p>The maximum number of clusters to return in the response. When there are more clusters than the number you specify, the response contains a <code>NextToken</code> value.</p>"
        }
      }
    },
    "DescribeClustersResponse":{
      "type":"structure",
      "members":{
        "Clusters":{
          "shape":"Clusters",
          "documentation":"<p>A list of clusters.</p>"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>An opaque string that indicates that the response contains only a subset of clusters. Use this value in a subsequent <code>DescribeClusters</code> request to get more clusters.</p>"
        }
      }
    },
    "DestinationBackup":{
      "type":"structure",
      "members":{
        "CreateTimestamp":{
          "shape":"Timestamp",
          "documentation":"<p>The date and time when both the source backup was created.</p>"
        },
        "SourceRegion":{
          "shape":"Region",
          "documentation":"<p>The AWS region that contains the source backup from which the new backup was copied.</p>"
        },
        "SourceBackup":{
          "shape":"BackupId",
          "documentation":"<p>The identifier (ID) of the source backup from which the new backup was copied.</p>"
        },
        "SourceCluster":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the cluster containing the source backup from which the new backup was copied.</p>"
        }
      },
      "documentation":"<p>Contains information about the backup that will be copied and created by the <a>CopyBackupToRegion</a> operation.</p>"
    },
    "EniId":{
      "type":"string",
      "pattern":"eni-[0-9a-fA-F]{8,17}"
    },
    "ExternalAz":{
      "type":"string",
      "pattern":"[a-z]{2}(-(gov))?-(east|west|north|south|central){1,2}-\\d[a-z]"
    },
    "ExternalSubnetMapping":{
      "type":"map",
      "key":{"shape":"ExternalAz"},
      "value":{"shape":"SubnetId"}
    },
    "Field":{
      "type":"string",
      "pattern":"[a-zA-Z0-9_-]+"
    },
    "Filters":{
      "type":"map",
      "key":{"shape":"Field"},
      "value":{"shape":"Strings"},
      "max":30
    },
    "GetResourcePolicyRequest":{
      "type":"structure",
      "members":{
        "ResourceArn":{
          "shape":"CloudHsmArn",
          "documentation":"<p>Amazon Resource Name (ARN) of the resource to which a policy is attached.</p>"
        }
      }
    },
    "GetResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "Policy":{
          "shape":"ResourcePolicy",
          "documentation":"<p>The policy attached to a resource.</p>"
        }
      }
    },
    "Hsm":{
      "type":"structure",
      "required":["HsmId"],
      "members":{
        "AvailabilityZone":{
          "shape":"ExternalAz",
          "documentation":"<p>The Availability Zone that contains the HSM.</p>"
        },
        "ClusterId":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the cluster that contains the HSM.</p>"
        },
        "SubnetId":{
          "shape":"SubnetId",
          "documentation":"<p>The subnet that contains the HSM's elastic network interface (ENI).</p>"
        },
        "EniId":{
          "shape":"EniId",
          "documentation":"<p>The identifier (ID) of the HSM's elastic network interface (ENI).</p>"
        },
        "EniIp":{
          "shape":"IpAddress",
          "documentation":"<p>The IP address of the HSM's elastic network interface (ENI).</p>"
        },
        "EniIpV6":{
          "shape":"IpV6Address",
          "documentation":"<p>The IPv6 address (if any) of the HSM's elastic network interface (ENI).</p>"
        },
        "HsmId":{
          "shape":"HsmId",
          "documentation":"<p>The HSM's identifier (ID).</p>"
        },
        "HsmType":{
          "shape":"HsmType",
          "documentation":"<p>The type of HSM.</p>"
        },
        "State":{
          "shape":"HsmState",
          "documentation":"<p>The HSM's state.</p>"
        },
        "StateMessage":{
          "shape":"String",
          "documentation":"<p>A description of the HSM's state.</p>"
        }
      },
      "documentation":"<p>Contains information about a hardware security module (HSM) in an CloudHSM cluster.</p>"
    },
    "HsmId":{
      "type":"string",
      "pattern":"hsm-[2-7a-zA-Z]{11,16}"
    },
    "HsmState":{
      "type":"string",
      "enum":[
        "CREATE_IN_PROGRESS",
        "ACTIVE",
        "DEGRADED",
        "DELETE_IN_PROGRESS",
        "DELETED"
      ]
    },
    "HsmType":{
      "type":"string",
      "max":32,
      "pattern":"((p|)hsm[0-9][a-z.]*\\.[a-zA-Z]+)"
    },
    "Hsms":{
      "type":"list",
      "member":{"shape":"Hsm"}
    },
    "InitializeClusterRequest":{
      "type":"structure",
      "required":[
        "ClusterId",
        "SignedCert",
        "TrustAnchor"
      ],
      "members":{
        "ClusterId":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the cluster that you are claiming. To find the cluster ID, use <a>DescribeClusters</a>.</p>"
        },
        "SignedCert":{
          "shape":"Cert",
          "documentation":"<p>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.</p>"
        },
        "TrustAnchor":{
          "shape":"Cert",
          "documentation":"<p>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.</p>"
        }
      }
    },
    "InitializeClusterResponse":{
      "type":"structure",
      "members":{
        "State":{
          "shape":"ClusterState",
          "documentation":"<p>The cluster's state.</p>"
        },
        "StateMessage":{
          "shape":"StateMessage",
          "documentation":"<p>A description of the cluster's state.</p>"
        }
      }
    },
    "IpAddress":{
      "type":"string",
      "pattern":"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"
    },
    "IpV6Address":{
      "type":"string",
      "max":100
    },
    "ListTagsRequest":{
      "type":"structure",
      "required":["ResourceId"],
      "members":{
        "ResourceId":{
          "shape":"ResourceId",
          "documentation":"<p>The cluster identifier (ID) for the cluster whose tags you are getting. To find the cluster ID, use <a>DescribeClusters</a>.</p>"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>The <code>NextToken</code> value that you received in the previous response. Use this value to get more tags.</p>"
        },
        "MaxResults":{
          "shape":"MaxSize",
          "documentation":"<p>The maximum number of tags to return in the response. When there are more tags than the number you specify, the response contains a <code>NextToken</code> value.</p>"
        }
      }
    },
    "ListTagsResponse":{
      "type":"structure",
      "required":["TagList"],
      "members":{
        "TagList":{
          "shape":"TagList",
          "documentation":"<p>A list of tags.</p>"
        },
        "NextToken":{
          "shape":"NextToken",
          "documentation":"<p>An opaque string that indicates that the response contains only a subset of tags. Use this value in a subsequent <code>ListTags</code> request to get more tags.</p>"
        }
      }
    },
    "MaxSize":{
      "type":"integer",
      "max":100,
      "min":1
    },
    "ModifyBackupAttributesRequest":{
      "type":"structure",
      "required":[
        "BackupId",
        "NeverExpires"
      ],
      "members":{
        "BackupId":{
          "shape":"BackupId",
          "documentation":"<p>The identifier (ID) of the backup to modify. To find the ID of a backup, use the <a>DescribeBackups</a> operation.</p>"
        },
        "NeverExpires":{
          "shape":"Boolean",
          "documentation":"<p>Specifies whether the service should exempt a backup from the retention policy for the cluster. <code>True</code> exempts a backup from the retention policy. <code>False</code> means the service applies the backup retention policy defined at the cluster.</p>"
        }
      }
    },
    "ModifyBackupAttributesResponse":{
      "type":"structure",
      "members":{
        "Backup":{"shape":"Backup"}
      }
    },
    "ModifyClusterRequest":{
      "type":"structure",
      "required":["ClusterId"],
      "members":{
        "HsmType":{
          "shape":"HsmType",
          "documentation":"<p>The desired HSM type of the cluster.</p>"
        },
        "BackupRetentionPolicy":{
          "shape":"BackupRetentionPolicy",
          "documentation":"<p>A policy that defines how the service retains backups.</p>"
        },
        "ClusterId":{
          "shape":"ClusterId",
          "documentation":"<p>The identifier (ID) of the cluster that you want to modify. To find the cluster ID, use <a>DescribeClusters</a>.</p>"
        }
      }
    },
    "ModifyClusterResponse":{
      "type":"structure",
      "members":{
        "Cluster":{"shape":"Cluster"}
      }
    },
    "NetworkType":{
      "type":"string",
      "enum":[
        "IPV4",
        "DUALSTACK"
      ]
    },
    "NextToken":{
      "type":"string",
      "max":256,
      "pattern":".*"
    },
    "PreCoPassword":{
      "type":"string",
      "max":32,
      "min":7
    },
    "PutResourcePolicyRequest":{
      "type":"structure",
      "members":{
        "ResourceArn":{
          "shape":"CloudHsmArn",
          "documentation":"<p>Amazon Resource Name (ARN) of the resource to which you want to attach a policy. </p>"
        },
        "Policy":{
          "shape":"ResourcePolicy",
          "documentation":"<p>The policy you want to associate with a resource. </p> <p>For an example policy, see <a href=\"https://docs.aws.amazon.com/cloudhsm/latest/userguide/sharing.html\"> Working with shared backups</a> in the CloudHSM User Guide</p>"
        }
      }
    },
    "PutResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "ResourceArn":{
          "shape":"CloudHsmArn",
          "documentation":"<p>Amazon Resource Name (ARN) of the resource to which a policy is attached.</p>"
        },
        "Policy":{
          "shape":"ResourcePolicy",
          "documentation":"<p>The policy attached to a resource.</p>"
        }
      }
    },
    "Region":{
      "type":"string",
      "pattern":"[a-z]{2}(-(gov))?-(east|west|north|south|central){1,2}-\\d"
    },
    "ResourceId":{
      "type":"string",
      "pattern":"(?:cluster|backup)-[2-7a-zA-Z]{11,16}"
    },
    "ResourcePolicy":{
      "type":"string",
      "max":20000,
      "min":1
    },
    "RestoreBackupRequest":{
      "type":"structure",
      "required":["BackupId"],
      "members":{
        "BackupId":{
          "shape":"BackupId",
          "documentation":"<p>The ID of the backup to be restored. To find the ID of a backup, use the <a>DescribeBackups</a> operation.</p>"
        }
      }
    },
    "RestoreBackupResponse":{
      "type":"structure",
      "members":{
        "Backup":{
          "shape":"Backup",
          "documentation":"<p>Information on the <code>Backup</code> object created.</p>"
        }
      }
    },
    "SecurityGroup":{
      "type":"string",
      "pattern":"sg-[0-9a-fA-F]{8,17}"
    },
    "StateMessage":{
      "type":"string",
      "max":300,
      "pattern":".*"
    },
    "String":{"type":"string"},
    "Strings":{
      "type":"list",
      "member":{"shape":"String"}
    },
    "SubnetId":{
      "type":"string",
      "pattern":"subnet-[0-9a-fA-F]{8,17}"
    },
    "SubnetIds":{
      "type":"list",
      "member":{"shape":"SubnetId"},
      "max":10,
      "min":1
    },
    "Tag":{
      "type":"structure",
      "required":[
        "Key",
        "Value"
      ],
      "members":{
        "Key":{
          "shape":"TagKey",
          "documentation":"<p>The key of the tag.</p>"
        },
        "Value":{
          "shape":"TagValue",
          "documentation":"<p>The value of the tag.</p>"
        }
      },
      "documentation":"<p>Contains a tag. A tag is a key-value pair.</p>"
    },
    "TagKey":{
      "type":"string",
      "max":128,
      "min":1,
      "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
    },
    "TagKeyList":{
      "type":"list",
      "member":{"shape":"TagKey"},
      "max":50,
      "min":1
    },
    "TagList":{
      "type":"list",
      "member":{"shape":"Tag"},
      "max":50,
      "min":1
    },
    "TagResourceRequest":{
      "type":"structure",
      "required":[
        "ResourceId",
        "TagList"
      ],
      "members":{
        "ResourceId":{
          "shape":"ResourceId",
          "documentation":"<p>The cluster identifier (ID) for the cluster that you are tagging. To find the cluster ID, use <a>DescribeClusters</a>.</p>"
        },
        "TagList":{
          "shape":"TagList",
          "documentation":"<p>A list of one or more tags.</p>"
        }
      }
    },
    "TagResourceResponse":{
      "type":"structure",
      "members":{
      }
    },
    "TagValue":{
      "type":"string",
      "max":256,
      "min":0,
      "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
    },
    "Timestamp":{"type":"timestamp"},
    "UntagResourceRequest":{
      "type":"structure",
      "required":[
        "ResourceId",
        "TagKeyList"
      ],
      "members":{
        "ResourceId":{
          "shape":"ResourceId",
          "documentation":"<p>The cluster identifier (ID) for the cluster whose tags you are removing. To find the cluster ID, use <a>DescribeClusters</a>.</p>"
        },
        "TagKeyList":{
          "shape":"TagKeyList",
          "documentation":"<p>A list of one or more tag keys for the tags that you are removing. Specify only the tag keys, not the tag values.</p>"
        }
      }
    },
    "UntagResourceResponse":{
      "type":"structure",
      "members":{
      }
    },
    "VpcId":{
      "type":"string",
      "pattern":"vpc-[0-9a-fA-F]"
    },
    "errorMessage":{"type":"string"}
  },
  "documentation":"<p>For more information about CloudHSM, see <a href=\"http://aws.amazon.com/cloudhsm/\">CloudHSM</a> and the <a href=\"https://docs.aws.amazon.com/cloudhsm/latest/userguide/\"> CloudHSM User Guide</a>.</p>"
}
