Skip to content

Commit 1552f49

Browse files
author
awstools
committed
feat(client-cloudhsm): Deprecating CloudHSM Classic API Service.
1 parent 9b6655a commit 1552f49

22 files changed

+720
-336
lines changed

clients/client-cloudhsm/src/commands/AddTagsToResourceCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface AddTagsToResourceCommandOutput extends AddTagsToResourceRespons
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/CreateHapgCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface CreateHapgCommandOutput extends CreateHapgResponse, __MetadataB
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/CreateHsmCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface CreateHsmCommandOutput extends CreateHsmResponse, __MetadataBea
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
@@ -68,7 +70,7 @@ export interface CreateHsmCommandOutput extends CreateHsmResponse, __MetadataBea
6870
* EniIp: "STRING_VALUE",
6971
* IamRoleArn: "STRING_VALUE", // required
7072
* ExternalId: "STRING_VALUE",
71-
* SubscriptionType: "STRING_VALUE", // required
73+
* SubscriptionType: "PRODUCTION", // required
7274
* ClientToken: "STRING_VALUE",
7375
* SyslogIp: "STRING_VALUE",
7476
* };

clients/client-cloudhsm/src/commands/CreateLunaClientCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface CreateLunaClientCommandOutput extends CreateLunaClientResponse,
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/DeleteHapgCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface DeleteHapgCommandOutput extends DeleteHapgResponse, __MetadataB
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/DeleteHsmCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface DeleteHsmCommandOutput extends DeleteHsmResponse, __MetadataBea
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/DeleteLunaClientCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface DeleteLunaClientCommandOutput extends DeleteLunaClientResponse,
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/DescribeHapgCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface DescribeHapgCommandOutput extends DescribeHapgResponse, __Metad
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
@@ -75,7 +77,7 @@ export interface DescribeHapgCommandOutput extends DescribeHapgResponse, __Metad
7577
* // PartitionSerialList: [ // PartitionSerialList
7678
* // "STRING_VALUE",
7779
* // ],
78-
* // State: "STRING_VALUE",
80+
* // State: "READY" || "UPDATING" || "DEGRADED",
7981
* // };
8082
*
8183
* ```

clients/client-cloudhsm/src/commands/DescribeHsmCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface DescribeHsmCommandOutput extends DescribeHsmResponse, __Metadat
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
@@ -62,12 +64,12 @@ export interface DescribeHsmCommandOutput extends DescribeHsmResponse, __Metadat
6264
* const response = await client.send(command);
6365
* // { // DescribeHsmResponse
6466
* // HsmArn: "STRING_VALUE",
65-
* // Status: "STRING_VALUE",
67+
* // Status: "PENDING" || "RUNNING" || "UPDATING" || "SUSPENDED" || "TERMINATING" || "TERMINATED" || "DEGRADED",
6668
* // StatusDetails: "STRING_VALUE",
6769
* // AvailabilityZone: "STRING_VALUE",
6870
* // EniId: "STRING_VALUE",
6971
* // EniIp: "STRING_VALUE",
70-
* // SubscriptionType: "STRING_VALUE",
72+
* // SubscriptionType: "PRODUCTION",
7173
* // SubscriptionStartDate: "STRING_VALUE",
7274
* // SubscriptionEndDate: "STRING_VALUE",
7375
* // VpcId: "STRING_VALUE",

clients/client-cloudhsm/src/commands/DescribeLunaClientCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface DescribeLunaClientCommandOutput extends DescribeLunaClientRespo
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/GetConfigCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface GetConfigCommandOutput extends GetConfigResponse, __MetadataBea
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
@@ -56,7 +58,7 @@ export interface GetConfigCommandOutput extends GetConfigResponse, __MetadataBea
5658
* const client = new CloudHSMClient(config);
5759
* const input = { // GetConfigRequest
5860
* ClientArn: "STRING_VALUE", // required
59-
* ClientVersion: "STRING_VALUE", // required
61+
* ClientVersion: "5.1" || "5.3", // required
6062
* HapgList: [ // HapgList // required
6163
* "STRING_VALUE",
6264
* ],

clients/client-cloudhsm/src/commands/ListAvailableZonesCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface ListAvailableZonesCommandOutput extends ListAvailableZonesRespo
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/ListHapgsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface ListHapgsCommandOutput extends ListHapgsResponse, __MetadataBea
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/ListHsmsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface ListHsmsCommandOutput extends ListHsmsResponse, __MetadataBeare
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/ListLunaClientsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface ListLunaClientsCommandOutput extends ListLunaClientsResponse, _
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/ListTagsForResourceCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/ModifyHapgCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface ModifyHapgCommandOutput extends ModifyHapgResponse, __MetadataB
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/ModifyHsmCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface ModifyHsmCommandOutput extends ModifyHsmResponse, __MetadataBea
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/ModifyLunaClientCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface ModifyLunaClientCommandOutput extends ModifyLunaClientResponse,
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/commands/RemoveTagsFromResourceCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export interface RemoveTagsFromResourceCommandOutput extends RemoveTagsFromResou
3636

3737
/**
3838
* @public
39+
* @deprecated
40+
*
3941
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
4042
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
4143
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS

clients/client-cloudhsm/src/endpoint/ruleset.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ import { RuleSetObject } from "@smithy/types";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/cloudhsm.json */
88

9-
const p="required",
10-
q="fn",
11-
r="argv",
12-
s="ref";
13-
const a="PartitionResult",
9+
const q="required",
10+
r="fn",
11+
s="argv",
12+
t="ref";
13+
const a="isSet",
1414
b="tree",
1515
c="error",
1616
d="endpoint",
17-
e={[p]:false,"type":"String"},
18-
f={[p]:true,"default":false,"type":"Boolean"},
19-
g={[s]:"Endpoint"},
20-
h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
21-
i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
22-
j={},
23-
k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]},
24-
l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]},
25-
m=[g],
26-
n=[h],
27-
o=[i];
28-
const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://cloudhsm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://cloudhsm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloudhsm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloudhsm.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]};
17+
e="PartitionResult",
18+
f={[q]:false,"type":"String"},
19+
g={[q]:true,"default":false,"type":"Boolean"},
20+
h={[t]:"Endpoint"},
21+
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
22+
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
23+
k={},
24+
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
25+
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
26+
n=[i],
27+
o=[j],
28+
p=[{[t]:"Region"}];
29+
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]},{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{endpoint:{url:"https://cloudhsm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://cloudhsm-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{endpoint:{url:"https://cloudhsm.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://cloudhsm.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"Invalid Configuration: Missing Region",type:c}]};
2930
export const ruleSet: RuleSetObject = _data;

0 commit comments

Comments
 (0)