Skip to content

Commit

Permalink
docs(client-resource-explorer-2): Documentation updates for APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Mar 16, 2023
1 parent bef86a1 commit 7dc47d1
Show file tree
Hide file tree
Showing 9 changed files with 226 additions and 1,863 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ export interface CreateIndexCommandOutput extends CreateIndexOutput, __MetadataB
* permissions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>You tried to create a new view or index when one already exists, and you either didn't
* specify or specified a different idempotency token as the original request.</p>
* <p>The request failed because either you specified parameters that didn’t match the
* original request, or you attempted to create a view with a name that already exists in
* this Amazon Web Services Region.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>The request failed because of internal service error. Try your request again
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export interface CreateViewCommandOutput extends CreateViewOutput, __MetadataBea
* permissions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>You tried to create a new view or index when one already exists, and you either didn't
* specify or specified a different idempotency token as the original request.</p>
* <p>The request failed because either you specified parameters that didn’t match the
* original request, or you attempted to create a view with a name that already exists in
* this Amazon Web Services Region.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>The request failed because of internal service error. Try your request again
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
* permissions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>You tried to create a new view or index when one already exists, and you either didn't
* specify or specified a different idempotency token as the original request.</p>
* <p>The request failed because either you specified parameters that didn’t match the
* original request, or you attempted to create a view with a name that already exists in
* this Amazon Web Services Region.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>The request failed because of internal service error. Try your request again
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ export interface UpdateIndexTypeCommandOutput extends UpdateIndexTypeOutput, __M
* permissions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>You tried to create a new view or index when one already exists, and you either didn't
* specify or specified a different idempotency token as the original request.</p>
* <p>The request failed because either you specified parameters that didn’t match the
* original request, or you attempted to create a view with a name that already exists in
* this Amazon Web Services Region.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>The request failed because of internal service error. Try your request again
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const resolveClientEndpointParameters = <T>(
};

export interface EndpointParameters extends __EndpointParameters {
Region: string;
Region?: string;
UseFIPS?: boolean;
Endpoint?: string;
}
36 changes: 19 additions & 17 deletions clients/client-resource-explorer-2/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/resource-explorer-2.json */

const p="argv",
q="ref";
const a=true,
b=false,
c="String",
d="PartitionResult",
e="tree",
f="booleanEquals",
g="error",
h="endpoint",
const r="argv",
s="ref";
const a=false,
b=true,
c="isSet",
d="tree",
e="booleanEquals",
f="error",
g="endpoint",
h="PartitionResult",
i="getAttr",
j={[q]:"Endpoint"},
k={},
l={[q]:d},
m={[g]:"FIPS is enabled but this partition does not support FIPS","type":g},
n=[{"fn":f,[p]:[{[q]:"UseFIPS"},true]}],
o=[{"fn":f,[p]:[true,{"fn":i,[p]:[l,"supportsFIPS"]}]}];
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseFIPS:{required:a,default:b,type:"Boolean"},Endpoint:{required:b,type:c}},rules:[{conditions:[{fn:"aws.partition",[p]:[{[q]:"Region"}],assign:d}],type:e,rules:[{conditions:[{fn:"isSet",[p]:[j]}],type:e,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:g},{endpoint:{url:j,properties:k,headers:k},type:h}]},{type:e,rules:[{conditions:[{fn:f,[p]:[a,{fn:i,[p]:[l,"supportsDualStack"]}]}],type:e,rules:[{conditions:n,type:e,rules:[{conditions:o,type:e,rules:[{endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:h}]},m]},{endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:h}]},{type:e,rules:[{conditions:n,type:e,rules:[{conditions:o,type:e,rules:[{endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:h}]},m]},{endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:h}]}]}]}]};
j={"required":false,"type":"String"},
k={[s]:"Endpoint"},
l={},
m={[s]:h},
n={[f]:"FIPS is enabled but this partition does not support FIPS","type":f},
o=[{"fn":e,[r]:[{[s]:"UseFIPS"},true]}],
p=[{[s]:"Region"}],
q=[{"fn":e,[r]:[true,{"fn":i,[r]:[m,"supportsFIPS"]}]}];
const _data={version:"1.0",parameters:{Region:j,UseFIPS:{required:b,default:a,type:"Boolean"},Endpoint:j},rules:[{conditions:[{fn:c,[r]:[k]}],type:d,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{endpoint:{url:k,properties:l,headers:l},type:g}]},{type:d,rules:[{conditions:[{fn:c,[r]:p}],type:d,rules:[{conditions:[{fn:"aws.partition",[r]:p,assign:h}],type:d,rules:[{type:d,rules:[{conditions:[{fn:e,[r]:[b,{fn:i,[r]:[m,"supportsDualStack"]}]}],type:d,rules:[{conditions:o,type:d,rules:[{conditions:q,type:d,rules:[{endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},n]},{endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{type:d,rules:[{conditions:o,type:d,rules:[{conditions:q,type:d,rules:[{type:d,rules:[{endpoint:{url:"https://resource-explorer-2-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},n]},{type:d,rules:[{endpoint:{url:"https://resource-explorer-2.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]}]}]}]},{error:"Invalid Configuration: Missing Region",type:f}]}]};
export const ruleSet: RuleSetObject = _data;
5 changes: 3 additions & 2 deletions clients/client-resource-explorer-2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,9 @@ export class UnauthorizedException extends __BaseException {
}

/**
* <p>You tried to create a new view or index when one already exists, and you either didn't
* specify or specified a different idempotency token as the original request.</p>
* <p>The request failed because either you specified parameters that didn’t match the
* original request, or you attempted to create a view with a name that already exists in
* this Amazon Web Services Region.</p>
*/
export class ConflictException extends __BaseException {
readonly name: "ConflictException" = "ConflictException";
Expand Down
8 changes: 6 additions & 2 deletions clients/client-resource-explorer-2/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"extends": ["../../typedoc.client.json"],
"entryPoints": ["src/index.ts"],
"extends": [
"../../typedoc.client.json"
],
"entryPoints": [
"src/index.ts"
],
"out": "docs",
"readme": "README.md"
}
Loading

0 comments on commit 7dc47d1

Please sign in to comment.