Skip to content

Commit

Permalink
feat(client-cloudhsm): Deprecating CloudHSM Classic API Service.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Aug 31, 2023
1 parent 9b6655a commit 1552f49
Show file tree
Hide file tree
Showing 22 changed files with 720 additions and 336 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface AddTagsToResourceCommandOutput extends AddTagsToResourceRespons

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
2 changes: 2 additions & 0 deletions clients/client-cloudhsm/src/commands/CreateHapgCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface CreateHapgCommandOutput extends CreateHapgResponse, __MetadataB

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudhsm/src/commands/CreateHsmCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface CreateHsmCommandOutput extends CreateHsmResponse, __MetadataBea

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down Expand Up @@ -68,7 +70,7 @@ export interface CreateHsmCommandOutput extends CreateHsmResponse, __MetadataBea
* EniIp: "STRING_VALUE",
* IamRoleArn: "STRING_VALUE", // required
* ExternalId: "STRING_VALUE",
* SubscriptionType: "STRING_VALUE", // required
* SubscriptionType: "PRODUCTION", // required
* ClientToken: "STRING_VALUE",
* SyslogIp: "STRING_VALUE",
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface CreateLunaClientCommandOutput extends CreateLunaClientResponse,

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
2 changes: 2 additions & 0 deletions clients/client-cloudhsm/src/commands/DeleteHapgCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface DeleteHapgCommandOutput extends DeleteHapgResponse, __MetadataB

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
2 changes: 2 additions & 0 deletions clients/client-cloudhsm/src/commands/DeleteHsmCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface DeleteHsmCommandOutput extends DeleteHsmResponse, __MetadataBea

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface DeleteLunaClientCommandOutput extends DeleteLunaClientResponse,

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudhsm/src/commands/DescribeHapgCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface DescribeHapgCommandOutput extends DescribeHapgResponse, __Metad

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down Expand Up @@ -75,7 +77,7 @@ export interface DescribeHapgCommandOutput extends DescribeHapgResponse, __Metad
* // PartitionSerialList: [ // PartitionSerialList
* // "STRING_VALUE",
* // ],
* // State: "STRING_VALUE",
* // State: "READY" || "UPDATING" || "DEGRADED",
* // };
*
* ```
Expand Down
6 changes: 4 additions & 2 deletions clients/client-cloudhsm/src/commands/DescribeHsmCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface DescribeHsmCommandOutput extends DescribeHsmResponse, __Metadat

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand All @@ -62,12 +64,12 @@ export interface DescribeHsmCommandOutput extends DescribeHsmResponse, __Metadat
* const response = await client.send(command);
* // { // DescribeHsmResponse
* // HsmArn: "STRING_VALUE",
* // Status: "STRING_VALUE",
* // Status: "PENDING" || "RUNNING" || "UPDATING" || "SUSPENDED" || "TERMINATING" || "TERMINATED" || "DEGRADED",
* // StatusDetails: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // EniId: "STRING_VALUE",
* // EniIp: "STRING_VALUE",
* // SubscriptionType: "STRING_VALUE",
* // SubscriptionType: "PRODUCTION",
* // SubscriptionStartDate: "STRING_VALUE",
* // SubscriptionEndDate: "STRING_VALUE",
* // VpcId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface DescribeLunaClientCommandOutput extends DescribeLunaClientRespo

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
4 changes: 3 additions & 1 deletion clients/client-cloudhsm/src/commands/GetConfigCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface GetConfigCommandOutput extends GetConfigResponse, __MetadataBea

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand All @@ -56,7 +58,7 @@ export interface GetConfigCommandOutput extends GetConfigResponse, __MetadataBea
* const client = new CloudHSMClient(config);
* const input = { // GetConfigRequest
* ClientArn: "STRING_VALUE", // required
* ClientVersion: "STRING_VALUE", // required
* ClientVersion: "5.1" || "5.3", // required
* HapgList: [ // HapgList // required
* "STRING_VALUE",
* ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface ListAvailableZonesCommandOutput extends ListAvailableZonesRespo

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
2 changes: 2 additions & 0 deletions clients/client-cloudhsm/src/commands/ListHapgsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface ListHapgsCommandOutput extends ListHapgsResponse, __MetadataBea

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
2 changes: 2 additions & 0 deletions clients/client-cloudhsm/src/commands/ListHsmsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface ListHsmsCommandOutput extends ListHsmsResponse, __MetadataBeare

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface ListLunaClientsCommandOutput extends ListLunaClientsResponse, _

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
2 changes: 2 additions & 0 deletions clients/client-cloudhsm/src/commands/ModifyHapgCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface ModifyHapgCommandOutput extends ModifyHapgResponse, __MetadataB

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
2 changes: 2 additions & 0 deletions clients/client-cloudhsm/src/commands/ModifyHsmCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface ModifyHsmCommandOutput extends ModifyHsmResponse, __MetadataBea

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface ModifyLunaClientCommandOutput extends ModifyLunaClientResponse,

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export interface RemoveTagsFromResourceCommandOutput extends RemoveTagsFromResou

/**
* @public
* @deprecated
*
* <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
* more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
* Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
Expand Down
35 changes: 18 additions & 17 deletions clients/client-cloudhsm/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,25 @@ import { RuleSetObject } from "@smithy/types";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/cloudhsm.json */

const p="required",
q="fn",
r="argv",
s="ref";
const a="PartitionResult",
const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e={[p]:false,"type":"String"},
f={[p]:true,"default":false,"type":"Boolean"},
g={[s]:"Endpoint"},
h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
j={},
k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]},
l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]},
m=[g],
n=[h],
o=[i];
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}]}]};
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[{[t]:"Region"}];
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}]};
export const ruleSet: RuleSetObject = _data;
Loading

0 comments on commit 1552f49

Please sign in to comment.