Skip to content

Commit

Permalink
feat(client-outposts): Added paginator support to several APIs. Added…
Browse files Browse the repository at this point in the history
… the ISOLATED enum value to AssetState.
  • Loading branch information
awstools committed Jul 6, 2023
1 parent 1db6ac4 commit 18a5919
Show file tree
Hide file tree
Showing 16 changed files with 836 additions and 591 deletions.
10 changes: 5 additions & 5 deletions clients/client-outposts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

AWS SDK for JavaScript Outposts Client for Node.js, Browser and React Native.

<p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools to
customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts enables
customers to build and run applications on premises using the same programming interfaces as
in Amazon Web Services Regions, while using local compute and storage resources for lower latency and local
data processing needs.</p>
<p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools
to customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts
enables customers to build and run applications on premises using the same programming
interfaces as in Amazon Web Services Regions, while using local compute and storage resources for lower
latency and local data processing needs.</p>

## Installing

Expand Down
10 changes: 5 additions & 5 deletions clients/client-outposts/src/Outposts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,11 @@ export interface Outposts {

/**
* @public
* <p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools to
* customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts enables
* customers to build and run applications on premises using the same programming interfaces as
* in Amazon Web Services Regions, while using local compute and storage resources for lower latency and local
* data processing needs.</p>
* <p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools
* to customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts
* enables customers to build and run applications on premises using the same programming
* interfaces as in Amazon Web Services Regions, while using local compute and storage resources for lower
* latency and local data processing needs.</p>
*/
export class Outposts extends OutpostsClient implements Outposts {}
createAggregatedClient(commands, Outposts);
10 changes: 5 additions & 5 deletions clients/client-outposts/src/OutpostsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ export interface OutpostsClientResolvedConfig extends OutpostsClientResolvedConf

/**
* @public
* <p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools to
* customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts enables
* customers to build and run applications on premises using the same programming interfaces as
* in Amazon Web Services Regions, while using local compute and storage resources for lower latency and local
* data processing needs.</p>
* <p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools
* to customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts
* enables customers to build and run applications on premises using the same programming
* interfaces as in Amazon Web Services Regions, while using local compute and storage resources for lower
* latency and local data processing needs.</p>
*/
export class OutpostsClient extends __Client<
__HttpHandlerOptions,
Expand Down
4 changes: 3 additions & 1 deletion clients/client-outposts/src/commands/CreateSiteCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export interface CreateSiteCommandOutput extends CreateSiteOutput, __MetadataBea

/**
* @public
* <p> Creates a site for an Outpost. </p>
* <p>
* Creates a site for an Outpost.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
4 changes: 3 additions & 1 deletion clients/client-outposts/src/commands/GetConnectionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export interface GetConnectionCommandOutput extends GetConnectionResponse, __Met
* <p>
* Amazon Web Services uses this action to install Outpost servers.</p>
* </note>
* <p> Gets information about the specified connection. </p>
* <p>
* Gets information about the specified connection.
* </p>
* <p>
* Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For
* more information, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export interface GetSiteAddressCommandOutput extends GetSiteAddressOutput, __Met

/**
* @public
* <p> Gets the site address of the specified site. </p>
* <p>
* Gets the site address of the specified site.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
2 changes: 1 addition & 1 deletion clients/client-outposts/src/commands/ListAssetsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface ListAssetsCommandOutput extends ListAssetsOutput, __MetadataBea
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* StatusFilter: [ // StatusList
* "ACTIVE" || "RETIRING",
* "ACTIVE" || "RETIRING" || "ISOLATED",
* ],
* };
* const command = new ListAssetsCommand(input);
Expand Down
3 changes: 1 addition & 2 deletions clients/client-outposts/src/commands/ListSitesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export interface ListSitesCommandOutput extends ListSitesOutput, __MetadataBeare

/**
* @public
* <p>Lists the Outpost sites for your Amazon Web Services account. Use filters to return specific
* results.</p>
* <p>Lists the Outpost sites for your Amazon Web Services account. Use filters to return specific results.</p>
* <p>Use filters to return specific results. If you specify multiple filters, the results include only the resources that match
* all of the specified filters. For a filter where you can specify multiple values, the results include
* items that match any of the values that you specify for the filter.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export interface StartConnectionCommandOutput extends StartConnectionResponse, _
* <p>
* Amazon Web Services uses this action to install Outpost servers.</p>
* </note>
* <p> Starts the connection required for Outpost server installation. </p>
* <p>
* Starts the connection required for Outpost server installation.
* </p>
* <p>
* Use CloudTrail to monitor this action or Amazon Web Services managed policy for Amazon Web Services Outposts to secure it. For
* more information, see <a href="https://docs.aws.amazon.com/outposts/latest/userguide/security-iam-awsmanpol.html">
Expand Down
4 changes: 3 additions & 1 deletion clients/client-outposts/src/commands/UpdateOutpostCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export interface UpdateOutpostCommandOutput extends UpdateOutpostOutput, __Metad

/**
* @public
* <p> Updates an Outpost. </p>
* <p>
* Updates an Outpost.
* </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export interface UpdateSiteAddressCommandOutput extends UpdateSiteAddressOutput,
/**
* @public
* <p>Updates the address of the specified site.</p>
* <p>You can't update a site address if there is an order in progress. You must wait for the
* order to complete or cancel the order.</p>
* <p>You can update the operating address before you place an order at the site, or after all
* Outposts that belong to the site have been deactivated.</p>
* <p>You can't update a site address if there is an order in progress. You must wait for the order
* to complete or cancel the order.</p>
* <p>You can update the operating address before you place an order at the
* site, or after all Outposts that belong to the site have been deactivated.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
2 changes: 1 addition & 1 deletion clients/client-outposts/src/endpoint/EndpointParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
};

export interface EndpointParameters extends __EndpointParameters {
Region: string;
Region?: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
Expand Down
47 changes: 23 additions & 24 deletions clients/client-outposts/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,27 @@ import { RuleSetObject } from "@smithy/types";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/outposts.json */

const u="fn",
v="argv",
w="ref";
const a=true,
b=false,
c="String",
d="PartitionResult",
e="tree",
f="error",
g="endpoint",
h="getAttr",
i="stringEquals",
j={"required":true,"default":false,"type":"Boolean"},
k={[w]:"Region"},
l={[w]:"Endpoint"},
m={[u]:"booleanEquals",[v]:[{[w]:"UseFIPS"},true]},
n={[u]:"booleanEquals",[v]:[{[w]:"UseDualStack"},true]},
o={},
p={[u]:"booleanEquals",[v]:[true,{[u]:h,[v]:[{[w]:d},"supportsFIPS"]}]},
q={[w]:d},
r={[u]:"booleanEquals",[v]:[true,{[u]:h,[v]:[q,"supportsDualStack"]}]},
s=[m],
t=[n];
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:j,UseFIPS:j,Endpoint:{required:b,type:c}},rules:[{conditions:[{[u]:"aws.partition",[v]:[k],assign:d}],type:e,rules:[{conditions:[{[u]:"isSet",[v]:[l]}],type:e,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:l,properties:o,headers:o},type:g}]}]},{conditions:[m,n],type:e,rules:[{conditions:[p,r],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:g}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:s,type:e,rules:[{conditions:[p],type:e,rules:[{type:e,rules:[{conditions:[{[u]:i,[v]:["aws-us-gov",{[u]:h,[v]:[q,"name"]}]}],endpoint:{url:"https://outposts.{Region}.amazonaws.com",properties:o,headers:o},type:g},{endpoint:{url:"https://outposts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:t,type:e,rules:[{conditions:[r],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://outposts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:g}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{type:e,rules:[{conditions:[{[u]:i,[v]:[k,"us-gov-east-1"]}],endpoint:{url:"https://outposts.us-gov-east-1.amazonaws.com",properties:o,headers:o},type:g},{conditions:[{[u]:i,[v]:[k,"us-gov-west-1"]}],endpoint:{url:"https://outposts.us-gov-west-1.amazonaws.com",properties:o,headers:o},type:g},{endpoint:{url:"https://outposts.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:g}]}]}]};
const s="required",
t="fn",
u="argv",
v="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e="PartitionResult",
f="getAttr",
g={[s]:false,"type":"String"},
h={[s]:true,"default":false,"type":"Boolean"},
i={[v]:"Endpoint"},
j={[t]:"booleanEquals",[u]:[{[v]:"UseFIPS"},true]},
k={[t]:"booleanEquals",[u]:[{[v]:"UseDualStack"},true]},
l={},
m={[t]:"booleanEquals",[u]:[true,{[t]:f,[u]:[{[v]:e},"supportsFIPS"]}]},
n={[v]:e},
o={[t]:"booleanEquals",[u]:[true,{[t]:f,[u]:[n,"supportsDualStack"]}]},
p=[j],
q=[k],
r=[{[v]:"Region"}];
const _data={version:"1.0",parameters:{Region:g,UseDualStack:h,UseFIPS:h,Endpoint:g},rules:[{conditions:[{[t]:a,[u]:[i]}],type:b,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:i,properties:l,headers:l},type:d}]}]},{type:b,rules:[{conditions:[{[t]:a,[u]:r}],type:b,rules:[{conditions:[{[t]:"aws.partition",[u]:r,assign:e}],type:b,rules:[{conditions:[j,k],type:b,rules:[{conditions:[m,o],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://outposts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:p,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{conditions:[{[t]:"stringEquals",[u]:["aws-us-gov",{[t]:f,[u]:[n,"name"]}]}],endpoint:{url:"https://outposts.{Region}.amazonaws.com",properties:l,headers:l},type:d},{endpoint:{url:"https://outposts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:q,type:b,rules:[{conditions:[o],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://outposts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://outposts.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;
10 changes: 5 additions & 5 deletions clients/client-outposts/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// smithy-typescript generated code
/* eslint-disable */
/**
* <p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools to
* customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts enables
* customers to build and run applications on premises using the same programming interfaces as
* in Amazon Web Services Regions, while using local compute and storage resources for lower latency and local
* data processing needs.</p>
* <p>Amazon Web Services Outposts is a fully managed service that extends Amazon Web Services infrastructure, APIs, and tools
* to customer premises. By providing local access to Amazon Web Services managed infrastructure, Amazon Web Services Outposts
* enables customers to build and run applications on premises using the same programming
* interfaces as in Amazon Web Services Regions, while using local compute and storage resources for lower
* latency and local data processing needs.</p>
*
* @packageDocumentation
*/
Expand Down
Loading

0 comments on commit 18a5919

Please sign in to comment.