Skip to content

Commit

Permalink
docs(client-api-gateway): Documentation updates for Amazon API Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Dec 29, 2022
1 parent a819ad9 commit 7978897
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 39 deletions.
2 changes: 1 addition & 1 deletion clients/client-api-gateway/src/APIGateway.ts
Expand Up @@ -489,7 +489,7 @@ import {

/**
* <fullname>Amazon API Gateway</fullname>
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
*/
export class APIGateway extends APIGatewayClient {
/**
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/src/APIGatewayClient.ts
Expand Up @@ -679,7 +679,7 @@ export interface APIGatewayClientResolvedConfig extends APIGatewayClientResolved

/**
* <fullname>Amazon API Gateway</fullname>
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
*/
export class APIGatewayClient extends __Client<
__HttpHandlerOptions,
Expand Down
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
36 changes: 18 additions & 18 deletions clients/client-api-gateway/src/endpoint/ruleset.ts
Expand Up @@ -6,24 +6,24 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/api-gateway.json */

const p="required",
q="fn",
const q="fn",
r="argv",
s="ref";
const a="PartitionResult",
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://apigateway-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://apigateway-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://apigateway.{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://apigateway.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]};
const a=true,
b=false,
c="String",
d="PartitionResult",
e="tree",
f="error",
g="endpoint",
h={"required":true,"default":false,"type":"Boolean"},
i={[s]:"Endpoint"},
j={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
k={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
l={},
m={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsFIPS"]}]},
n={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:d},"supportsDualStack"]}]},
o=[j],
p=[k];
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[q]:"isSet",[r]:[i]}],type:e,rules:[{conditions:o,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:p,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:o,type:e,rules:[{conditions:[m],type:e,rules:[{type:e,rules:[{endpoint:{url:"https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:p,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://apigateway.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
export const ruleSet: RuleSetObject = _data;
45 changes: 27 additions & 18 deletions clients/client-api-gateway/src/models/models_0.ts
Expand Up @@ -622,7 +622,7 @@ export interface CreateDeploymentRequest {
cacheClusterEnabled?: boolean;

/**
* <p>Specifies the cache cluster size for the Stage resource specified in the input, if a cache cluster is enabled.</p>
* <p>The stage's cache capacity in GB. For more information about choosing a cache size, see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html">Enabling API caching to enhance responsiveness</a>.</p>
*/
cacheClusterSize?: CacheClusterSize | string;

Expand Down Expand Up @@ -835,7 +835,11 @@ export interface DocumentationVersion {
description?: string;
}

export type EndpointType = "EDGE" | "PRIVATE" | "REGIONAL";
export enum EndpointType {
EDGE = "EDGE",
PRIVATE = "PRIVATE",
REGIONAL = "REGIONAL",
}

/**
* <p>The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has. </p>
Expand Down Expand Up @@ -873,7 +877,10 @@ export interface MutualTlsAuthenticationInput {
truststoreVersion?: string;
}

export type SecurityPolicy = "TLS_1_0" | "TLS_1_2";
export enum SecurityPolicy {
TLS_1_0 = "TLS_1_0",
TLS_1_2 = "TLS_1_2",
}

/**
* <p>A request to create a new domain name.</p>
Expand Down Expand Up @@ -1247,7 +1254,6 @@ export interface IntegrationResponse {

/**
* <p>Specifies how to handle response payload content type conversions. Supported values are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following behaviors:</p>
*
* <p>If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.</p>
*/
contentHandling?: ContentHandlingStrategy | string;
Expand Down Expand Up @@ -1287,8 +1293,7 @@ export enum IntegrationType {
export interface Integration {
/**
* <p>Specifies an API method integration type. The valid value is one of the following:</p>
*
* <p>For the HTTP and HTTP proxy integrations, each integration can specify a protocol (<code>http/https</code>), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a <code>connectionType</code> of <code>VPC_LINK</code> is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.</p>
* <p>For the HTTP and HTTP proxy integrations, each integration can specify a protocol (<code>http/https</code>), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy integration with a <code>connectionType</code> of <code>VPC_LINK</code> is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.</p>
*/
type?: IntegrationType | string;

Expand Down Expand Up @@ -1364,7 +1369,6 @@ export interface Integration {

/**
* <p>Specifies how to handle request payload content type conversions. Supported values are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following behaviors:</p>
*
* <p>If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the <code>passthroughBehavior</code> is configured to support payload pass-through.</p>
*/
contentHandling?: ContentHandlingStrategy | string;
Expand Down Expand Up @@ -1709,7 +1713,7 @@ export interface CreateStageRequest {
cacheClusterEnabled?: boolean;

/**
* <p>The stage's cache cluster size.</p>
* <p>The stage's cache capacity in GB. For more information about choosing a cache size, see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html">Enabling API caching to enhance responsiveness</a>.</p>
*/
cacheClusterSize?: CacheClusterSize | string;

Expand Down Expand Up @@ -1840,7 +1844,7 @@ export interface Stage {
cacheClusterEnabled?: boolean;

/**
* <p>The size of the cache cluster for the stage, if enabled.</p>
* <p>The stage's cache capacity in GB. For more information about choosing a cache size, see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html">Enabling API caching to enhance responsiveness</a>.</p>
*/
cacheClusterSize?: CacheClusterSize | string;

Expand Down Expand Up @@ -2163,7 +2167,7 @@ export interface DeleteBasePathMappingRequest {

/**
* <p>The base path name of the BasePathMapping resource to delete.</p>
* <p>To specify an empty base path, set this parameter to <code>'(none)'</code>.</p>
* <p>To specify an empty base path, set this parameter to <code>'(none)'</code>.</p>
*/
basePath: string | undefined;
}
Expand Down Expand Up @@ -3881,11 +3885,11 @@ export interface ImportRestApiRequest {

/**
* <p>A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.</p>
* <p> To exclude DocumentationParts from the import, set <code>parameters</code> as <code>ignore=documentation</code>.</p>
* <p> To exclude DocumentationParts from the import, set <code>parameters</code> as <code>ignore=documentation</code>.</p>
* <p> To configure the endpoint type, set <code>parameters</code> as <code>endpointConfigurationTypes=EDGE</code>, <code>endpointConfigurationTypes=REGIONAL</code>, or <code>endpointConfigurationTypes=PRIVATE</code>. The default endpoint type is <code>EDGE</code>.</p>
* <p> To handle imported <code>basepath</code>, set <code>parameters</code> as <code>basepath=ignore</code>, <code>basepath=prepend</code> or <code>basepath=split</code>.</p>
* <p>For example, the AWS CLI command to exclude documentation from the imported API is:</p>
* <p>The AWS CLI command to set the regional endpoint on the imported API is:</p>
* <p> To handle imported <code>basepath</code>, set <code>parameters</code> as <code>basepath=ignore</code>, <code>basepath=prepend</code> or <code>basepath=split</code>.</p>
* <p>For example, the AWS CLI command to exclude documentation from the imported API is:</p>
* <p>The AWS CLI command to set the regional endpoint on the imported API is:</p>
*/
parameters?: Record<string, string>;

Expand Down Expand Up @@ -4017,7 +4021,6 @@ export interface PutIntegrationRequest {

/**
* <p>Specifies how to handle request payload content type conversions. Supported values are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following behaviors:</p>
*
* <p>If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the <code>passthroughBehavior</code> is configured to support payload pass-through.</p>
*/
contentHandling?: ContentHandlingStrategy | string;
Expand Down Expand Up @@ -4075,7 +4078,6 @@ export interface PutIntegrationResponseRequest {

/**
* <p>Specifies how to handle response payload content type conversions. Supported values are <code>CONVERT_TO_BINARY</code> and <code>CONVERT_TO_TEXT</code>, with the following behaviors:</p>
*
* <p>If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.</p>
*/
contentHandling?: ContentHandlingStrategy | string;
Expand Down Expand Up @@ -4408,7 +4410,14 @@ export interface UntagResourceRequest {
tagKeys: string[] | undefined;
}

export type Op = "add" | "copy" | "move" | "remove" | "replace" | "test";
export enum Op {
add = "add",
copy = "copy",
move = "move",
remove = "remove",
replace = "replace",
test = "test",
}

/**
* <p>For more information about supported patch operations, see <a href="https://docs.aws.amazon.com/apigateway/latest/api/patch-operations.html">Patch Operations</a>.</p>
Expand Down Expand Up @@ -4506,7 +4515,7 @@ export interface UpdateBasePathMappingRequest {

/**
* <p>The base path of the BasePathMapping resource to change.</p>
* <p>To specify an empty base path, set this parameter to <code>'(none)'</code>.</p>
* <p>To specify an empty base path, set this parameter to <code>'(none)'</code>.</p>
*/
basePath: string | undefined;

Expand Down

0 comments on commit 7978897

Please sign in to comment.