Skip to content

Commit 8f159c4

Browse files
feat(aws-android-sdk-kms): update models to latest (#3114)
Co-authored-by: Thomas Leing <[email protected]>
1 parent da29a16 commit 8f159c4

File tree

93 files changed

+12207
-2575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+12207
-2575
lines changed

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/AWSKMS.java

Lines changed: 652 additions & 305 deletions
Large diffs are not rendered by default.

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/AWSKMSClient.java

Lines changed: 666 additions & 305 deletions
Large diffs are not rendered by default.

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CloudHsmClusterInUseException.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
/**
2121
* <p>
2222
* The request was rejected because the specified CloudHSM cluster is already
23-
* associated with a custom key store or it shares a backup history with a
24-
* cluster that is associated with a custom key store. Each custom key store
25-
* must be associated with a different CloudHSM cluster.
23+
* associated with an CloudHSM key store in the account, or it shares a backup
24+
* history with an CloudHSM key store in the account. Each CloudHSM key store in
25+
* the account must be associated with a different CloudHSM cluster.
2626
* </p>
2727
* <p>
28-
* Clusters that share a backup history have the same cluster certificate. To
29-
* view the cluster certificate of a cluster, use the <a href=
28+
* CloudHSM clusters that share a backup history have the same cluster
29+
* certificate. To view the cluster certificate of an CloudHSM cluster, use the
30+
* <a href=
3031
* "https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
3132
* >DescribeClusters</a> operation.
3233
* </p>

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CloudHsmClusterInvalidConfigurationException.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
/**
2121
* <p>
2222
* The request was rejected because the associated CloudHSM cluster did not meet
23-
* the configuration requirements for a custom key store.
23+
* the configuration requirements for an CloudHSM key store.
2424
* </p>
2525
* <ul>
2626
* <li>
2727
* <p>
28-
* The cluster must be configured with private subnets in at least two different
29-
* Availability Zones in the Region.
28+
* The CloudHSM cluster must be configured with private subnets in at least two
29+
* different Availability Zones in the Region.
3030
* </p>
3131
* </li>
3232
* <li>
@@ -38,16 +38,16 @@
3838
* and outbound rules that allow TCP traffic on ports 2223-2225. The
3939
* <b>Source</b> in the inbound rules and the <b>Destination</b> in the outbound
4040
* rules must match the security group ID. These rules are set by default when
41-
* you create the cluster. Do not delete or change them. To get information
42-
* about a particular security group, use the <a href=
41+
* you create the CloudHSM cluster. Do not delete or change them. To get
42+
* information about a particular security group, use the <a href=
4343
* "https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html"
4444
* >DescribeSecurityGroups</a> operation.
4545
* </p>
4646
* </li>
4747
* <li>
4848
* <p>
49-
* The cluster must contain at least as many HSMs as the operation requires. To
50-
* add HSMs, use the CloudHSM <a href=
49+
* The CloudHSM cluster must contain at least as many HSMs as the operation
50+
* requires. To add HSMs, use the CloudHSM <a href=
5151
* "https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html"
5252
* >CreateHsm</a> operation.
5353
* </p>
@@ -62,7 +62,7 @@
6262
* </ul>
6363
* <p>
6464
* For information about the requirements for an CloudHSM cluster that is
65-
* associated with a custom key store, see <a href=
65+
* associated with an CloudHSM key store, see <a href=
6666
* "https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore"
6767
* >Assemble the Prerequisites</a> in the <i>Key Management Service Developer
6868
* Guide</i>. For information about creating a private subnet for an CloudHSM

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CloudHsmClusterNotActiveException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
/**
2121
* <p>
22-
* The request was rejected because the CloudHSM cluster that is associated with
23-
* the custom key store is not active. Initialize and activate the cluster and
24-
* try the command again. For detailed instructions, see <a href=
22+
* The request was rejected because the CloudHSM cluster associated with the
23+
* CloudHSM key store is not active. Initialize and activate the cluster and try
24+
* the command again. For detailed instructions, see <a href=
2525
* "https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html"
2626
* >Getting Started</a> in the <i>CloudHSM User Guide</i>.
2727
* </p>

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CloudHsmClusterNotRelatedException.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@
2121
* <p>
2222
* The request was rejected because the specified CloudHSM cluster has a
2323
* different cluster certificate than the original cluster. You cannot use the
24-
* operation to specify an unrelated cluster.
24+
* operation to specify an unrelated cluster for an CloudHSM key store.
2525
* </p>
2626
* <p>
27-
* Specify a cluster that shares a backup history with the original cluster.
28-
* This includes clusters that were created from a backup of the current
29-
* cluster, and clusters that were created from the same backup that produced
30-
* the current cluster.
27+
* Specify an CloudHSM cluster that shares a backup history with the original
28+
* cluster. This includes clusters that were created from a backup of the
29+
* current cluster, and clusters that were created from the same backup that
30+
* produced the current cluster.
3131
* </p>
3232
* <p>
33-
* Clusters that share a backup history have the same cluster certificate. To
34-
* view the cluster certificate of a cluster, use the <a href=
33+
* CloudHSM clusters that share a backup history have the same cluster
34+
* certificate. To view the cluster certificate of an CloudHSM cluster, use the
35+
* <a href=
3536
* "https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
3637
* >DescribeClusters</a> operation.
3738
* </p>

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/ConnectCustomKeyStoreRequest.java

Lines changed: 66 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,32 @@
2323
* <p>
2424
* Connects or reconnects a <a href=
2525
* "https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html"
26-
* >custom key store</a> to its associated CloudHSM cluster.
26+
* >custom key store</a> to its backing key store. For an CloudHSM key store,
27+
* <code>ConnectCustomKeyStore</code> connects the key store to its associated
28+
* CloudHSM cluster. For an external key store,
29+
* <code>ConnectCustomKeyStore</code> connects the key store to the external key
30+
* store proxy that communicates with your external key manager.
2731
* </p>
2832
* <p>
2933
* The custom key store must be connected before you can create KMS keys in the
3034
* key store or use the KMS keys it contains. You can disconnect and reconnect a
3135
* custom key store at any time.
3236
* </p>
3337
* <p>
34-
* To connect a custom key store, its associated CloudHSM cluster must have at
35-
* least one active HSM. To get the number of active HSMs in a cluster, use the
36-
* <a href=
37-
* "https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
38-
* >DescribeClusters</a> operation. To add HSMs to the cluster, use the <a href=
39-
* "https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html"
40-
* >CreateHsm</a> operation. Also, the <a href=
41-
* "https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser"
42-
* > <code>kmsuser</code> crypto user</a> (CU) must not be logged into the
43-
* cluster. This prevents KMS from using this account to log in.
44-
* </p>
45-
* <p>
46-
* The connection process can take an extended amount of time to complete; up to
47-
* 20 minutes. This operation starts the connection process, but it does not
48-
* wait for it to complete. When it succeeds, this operation quickly returns an
49-
* HTTP 200 response and a JSON object with no properties. However, this
38+
* The connection process for a custom key store can take an extended amount of
39+
* time to complete. This operation starts the connection process, but it does
40+
* not wait for it to complete. When it succeeds, this operation quickly returns
41+
* an HTTP 200 response and a JSON object with no properties. However, this
5042
* response does not indicate that the custom key store is connected. To get the
5143
* connection state of the custom key store, use the
5244
* <a>DescribeCustomKeyStores</a> operation.
5345
* </p>
5446
* <p>
55-
* During the connection process, KMS finds the CloudHSM cluster that is
56-
* associated with the custom key store, creates the connection infrastructure,
57-
* connects to the cluster, logs into the CloudHSM client as the
58-
* <code>kmsuser</code> CU, and rotates its password.
47+
* This operation is part of the <a href=
48+
* "https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html"
49+
* >custom key stores</a> feature in KMS, which combines the convenience and
50+
* extensive integration of KMS with the isolation and control of a key store
51+
* that you own and manage.
5952
* </p>
6053
* <p>
6154
* The <code>ConnectCustomKeyStore</code> operation might fail for various
@@ -71,10 +64,59 @@
7164
* <code>ConnectCustomKeyStore</code> again.
7265
* </p>
7366
* <p>
74-
* If you are having trouble connecting or disconnecting a custom key store, see
75-
* <a href=
67+
* <b>CloudHSM key store</b>
68+
* </p>
69+
* <p>
70+
* During the connection process for an CloudHSM key store, KMS finds the
71+
* CloudHSM cluster that is associated with the custom key store, creates the
72+
* connection infrastructure, connects to the cluster, logs into the CloudHSM
73+
* client as the <code>kmsuser</code> CU, and rotates its password.
74+
* </p>
75+
* <p>
76+
* To connect an CloudHSM key store, its associated CloudHSM cluster must have
77+
* at least one active HSM. To get the number of active HSMs in a cluster, use
78+
* the <a href=
79+
* "https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html"
80+
* >DescribeClusters</a> operation. To add HSMs to the cluster, use the <a href=
81+
* "https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html"
82+
* >CreateHsm</a> operation. Also, the <a href=
83+
* "https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser"
84+
* > <code>kmsuser</code> crypto user</a> (CU) must not be logged into the
85+
* cluster. This prevents KMS from using this account to log in.
86+
* </p>
87+
* <p>
88+
* If you are having trouble connecting or disconnecting a CloudHSM key store,
89+
* see <a href=
7690
* "https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html"
77-
* >Troubleshooting a Custom Key Store</a> in the <i>Key Management Service
91+
* >Troubleshooting an CloudHSM key store</a> in the <i>Key Management Service
92+
* Developer Guide</i>.
93+
* </p>
94+
* <p>
95+
* <b>External key store</b>
96+
* </p>
97+
* <p>
98+
* When you connect an external key store that uses public endpoint
99+
* connectivity, KMS tests its ability to communicate with your external key
100+
* manager by sending a request via the external key store proxy.
101+
* </p>
102+
* <p>
103+
* When you connect to an external key store that uses VPC endpoint service
104+
* connectivity, KMS establishes the networking elements that it needs to
105+
* communicate with your external key manager via the external key store proxy.
106+
* This includes creating an interface endpoint to the VPC endpoint service and
107+
* a private hosted zone for traffic between KMS and the VPC endpoint service.
108+
* </p>
109+
* <p>
110+
* To connect an external key store, KMS must be able to connect to the external
111+
* key store proxy, the external key store proxy must be able to communicate
112+
* with your external key manager, and the external key manager must be
113+
* available for cryptographic operations.
114+
* </p>
115+
* <p>
116+
* If you are having trouble connecting or disconnecting an external key store,
117+
* see <a href=
118+
* "https://docs.aws.amazon.com/kms/latest/developerguide/xks-troubleshooting.html"
119+
* >Troubleshooting an external key store</a> in the <i>Key Management Service
78120
* Developer Guide</i>.
79121
* </p>
80122
* <p>

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/ConnectionErrorCodeType.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ public enum ConnectionErrorCodeType {
3232
USER_NOT_FOUND("USER_NOT_FOUND"),
3333
USER_LOGGED_IN("USER_LOGGED_IN"),
3434
SUBNET_NOT_FOUND("SUBNET_NOT_FOUND"),
35-
INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET("INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET");
35+
INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET("INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET"),
36+
XKS_PROXY_ACCESS_DENIED("XKS_PROXY_ACCESS_DENIED"),
37+
XKS_PROXY_NOT_REACHABLE("XKS_PROXY_NOT_REACHABLE"),
38+
XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND("XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND"),
39+
XKS_PROXY_INVALID_RESPONSE("XKS_PROXY_INVALID_RESPONSE"),
40+
XKS_PROXY_INVALID_CONFIGURATION("XKS_PROXY_INVALID_CONFIGURATION"),
41+
XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION("XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION"),
42+
XKS_PROXY_TIMED_OUT("XKS_PROXY_TIMED_OUT"),
43+
XKS_PROXY_INVALID_TLS_CONFIGURATION("XKS_PROXY_INVALID_TLS_CONFIGURATION");
3644

3745
private String value;
3846

@@ -58,6 +66,15 @@ public String toString() {
5866
enumMap.put("USER_LOGGED_IN", USER_LOGGED_IN);
5967
enumMap.put("SUBNET_NOT_FOUND", SUBNET_NOT_FOUND);
6068
enumMap.put("INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET", INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET);
69+
enumMap.put("XKS_PROXY_ACCESS_DENIED", XKS_PROXY_ACCESS_DENIED);
70+
enumMap.put("XKS_PROXY_NOT_REACHABLE", XKS_PROXY_NOT_REACHABLE);
71+
enumMap.put("XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND", XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND);
72+
enumMap.put("XKS_PROXY_INVALID_RESPONSE", XKS_PROXY_INVALID_RESPONSE);
73+
enumMap.put("XKS_PROXY_INVALID_CONFIGURATION", XKS_PROXY_INVALID_CONFIGURATION);
74+
enumMap.put("XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION",
75+
XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION);
76+
enumMap.put("XKS_PROXY_TIMED_OUT", XKS_PROXY_TIMED_OUT);
77+
enumMap.put("XKS_PROXY_INVALID_TLS_CONFIGURATION", XKS_PROXY_INVALID_TLS_CONFIGURATION);
6178
}
6279

6380
/**

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CreateAliasRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Adding, deleting, or updating an alias can allow or deny permission to the
2929
* KMS key. For details, see <a
3030
* href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">ABAC
31-
* in KMS</a> in the <i>Key Management Service Developer Guide</i>.
31+
* for KMS</a> in the <i>Key Management Service Developer Guide</i>.
3232
* </p>
3333
* </note>
3434
* <p>

0 commit comments

Comments
 (0)