Skip to content

Commit c22758d

Browse files
author
awstools
committed
feat(client-databrew): Enabled FIPS us-gov-west-1 endpoints in SDK.
1 parent 98c0783 commit c22758d

File tree

5 files changed

+94
-97
lines changed

5 files changed

+94
-97
lines changed

clients/client-databrew/src/DataBrew.ts

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -200,43 +200,41 @@ import { DataBrewClient } from "./DataBrewClient";
200200
export class DataBrew extends DataBrewClient {
201201
/**
202202
* <p>Deletes one or more versions of a recipe at a time.</p>
203-
*
204-
* <p>The entire request will be rejected if:</p>
205-
* <ul>
203+
* <p>The entire request will be rejected if:</p>
204+
* <ul>
206205
* <li>
207-
* <p>The recipe does not exist.</p>
206+
* <p>The recipe does not exist.</p>
208207
* </li>
209208
* <li>
210-
* <p>There is an invalid version identifier in the list of versions.</p>
209+
* <p>There is an invalid version identifier in the list of versions.</p>
211210
* </li>
212211
* <li>
213-
* <p>The version list is empty.</p>
212+
* <p>The version list is empty.</p>
214213
* </li>
215214
* <li>
216-
* <p>The version list size exceeds 50.</p>
215+
* <p>The version list size exceeds 50.</p>
217216
* </li>
218217
* <li>
219-
* <p>The version list contains duplicate entries.</p>
218+
* <p>The version list contains duplicate entries.</p>
220219
* </li>
221220
* </ul>
222-
*
223-
* <p>The request will complete successfully, but with partial failures, if:</p>
224-
* <ul>
221+
* <p>The request will complete successfully, but with partial failures, if:</p>
222+
* <ul>
225223
* <li>
226-
* <p>A version does not exist.</p>
224+
* <p>A version does not exist.</p>
227225
* </li>
228226
* <li>
229-
* <p>A version is being used by a job.</p>
227+
* <p>A version is being used by a job.</p>
230228
* </li>
231229
* <li>
232-
* <p>You specify <code>LATEST_WORKING</code>, but it's being used by a
230+
* <p>You specify <code>LATEST_WORKING</code>, but it's being used by a
233231
* project.</p>
234232
* </li>
235233
* <li>
236-
* <p>The version fails to be deleted.</p>
234+
* <p>The version fails to be deleted.</p>
237235
* </li>
238236
* </ul>
239-
* <p>The <code>LATEST_WORKING</code> version will only be deleted if the recipe has no
237+
* <p>The <code>LATEST_WORKING</code> version will only be deleted if the recipe has no
240238
* other versions. If you try to delete <code>LATEST_WORKING</code> while other versions
241239
* exist (or if they can't be deleted), then <code>LATEST_WORKING</code> will be listed as
242240
* partial failure in the response.</p>

clients/client-databrew/src/commands/BatchDeleteRecipeVersionCommand.ts

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,43 +30,41 @@ export interface BatchDeleteRecipeVersionCommandOutput extends BatchDeleteRecipe
3030

3131
/**
3232
* <p>Deletes one or more versions of a recipe at a time.</p>
33-
*
34-
* <p>The entire request will be rejected if:</p>
35-
* <ul>
33+
* <p>The entire request will be rejected if:</p>
34+
* <ul>
3635
* <li>
37-
* <p>The recipe does not exist.</p>
36+
* <p>The recipe does not exist.</p>
3837
* </li>
3938
* <li>
40-
* <p>There is an invalid version identifier in the list of versions.</p>
39+
* <p>There is an invalid version identifier in the list of versions.</p>
4140
* </li>
4241
* <li>
43-
* <p>The version list is empty.</p>
42+
* <p>The version list is empty.</p>
4443
* </li>
4544
* <li>
46-
* <p>The version list size exceeds 50.</p>
45+
* <p>The version list size exceeds 50.</p>
4746
* </li>
4847
* <li>
49-
* <p>The version list contains duplicate entries.</p>
48+
* <p>The version list contains duplicate entries.</p>
5049
* </li>
5150
* </ul>
52-
*
53-
* <p>The request will complete successfully, but with partial failures, if:</p>
54-
* <ul>
51+
* <p>The request will complete successfully, but with partial failures, if:</p>
52+
* <ul>
5553
* <li>
56-
* <p>A version does not exist.</p>
54+
* <p>A version does not exist.</p>
5755
* </li>
5856
* <li>
59-
* <p>A version is being used by a job.</p>
57+
* <p>A version is being used by a job.</p>
6058
* </li>
6159
* <li>
62-
* <p>You specify <code>LATEST_WORKING</code>, but it's being used by a
60+
* <p>You specify <code>LATEST_WORKING</code>, but it's being used by a
6361
* project.</p>
6462
* </li>
6563
* <li>
66-
* <p>The version fails to be deleted.</p>
64+
* <p>The version fails to be deleted.</p>
6765
* </li>
6866
* </ul>
69-
* <p>The <code>LATEST_WORKING</code> version will only be deleted if the recipe has no
67+
* <p>The <code>LATEST_WORKING</code> version will only be deleted if the recipe has no
7068
* other versions. If you try to delete <code>LATEST_WORKING</code> while other versions
7169
* exist (or if they can't be deleted), then <code>LATEST_WORKING</code> will be listed as
7270
* partial failure in the response.</p>

clients/client-databrew/src/endpoint/EndpointParameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
2424
};
2525

2626
export interface EndpointParameters extends __EndpointParameters {
27-
Region?: string;
27+
Region: string;
2828
UseDualStack?: boolean;
2929
UseFIPS?: boolean;
3030
Endpoint?: string;

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

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

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

0 commit comments

Comments
 (0)