interface CfnApiV2Props
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.APIGateway.CfnApiV2Props |
Java | software.amazon.awscdk.services.apigateway.CfnApiV2Props |
Python | aws_cdk.aws_apigateway.CfnApiV2Props |
TypeScript (source) | @aws-cdk/aws-apigateway » CfnApiV2Props |
⚠️ Deprecated: moved to package aws-apigatewayv2
Properties for defining a AWS::ApiGatewayV2::Api
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apigateway from '@aws-cdk/aws-apigateway';
declare const body: any;
declare const tags: any;
const cfnApiV2Props: apigateway.CfnApiV2Props = {
apiKeySelectionExpression: 'apiKeySelectionExpression',
basePath: 'basePath',
body: body,
bodyS3Location: {
bucket: 'bucket',
etag: 'etag',
key: 'key',
version: 'version',
},
corsConfiguration: {
allowCredentials: false,
allowHeaders: ['allowHeaders'],
allowMethods: ['allowMethods'],
allowOrigins: ['allowOrigins'],
exposeHeaders: ['exposeHeaders'],
maxAge: 123,
},
credentialsArn: 'credentialsArn',
description: 'description',
disableSchemaValidation: false,
failOnWarnings: false,
name: 'name',
protocolType: 'protocolType',
routeKey: 'routeKey',
routeSelectionExpression: 'routeSelectionExpression',
tags: tags,
target: 'target',
version: 'version',
};
Properties
Name | Type | Description |
---|---|---|
api | string | AWS::ApiGatewayV2::Api.ApiKeySelectionExpression . |
base | string | AWS::ApiGatewayV2::Api.BasePath . |
body? | any | AWS::ApiGatewayV2::Api.Body . |
body | IResolvable | Body | AWS::ApiGatewayV2::Api.BodyS3Location . |
cors | IResolvable | Cors | AWS::ApiGatewayV2::Api.CorsConfiguration . |
credentials | string | AWS::ApiGatewayV2::Api.CredentialsArn . |
description? | string | AWS::ApiGatewayV2::Api.Description . |
disable | boolean | IResolvable | AWS::ApiGatewayV2::Api.DisableSchemaValidation . |
fail | boolean | IResolvable | AWS::ApiGatewayV2::Api.FailOnWarnings . |
name? | string | AWS::ApiGatewayV2::Api.Name . |
protocol | string | AWS::ApiGatewayV2::Api.ProtocolType . |
route | string | AWS::ApiGatewayV2::Api.RouteKey . |
route | string | AWS::ApiGatewayV2::Api.RouteSelectionExpression . |
tags? | any | AWS::ApiGatewayV2::Api.Tags . |
target? | string | AWS::ApiGatewayV2::Api.Target . |
version? | string | AWS::ApiGatewayV2::Api.Version . |
apiKeySelectionExpression?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.ApiKeySelectionExpression
.
basePath?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.BasePath
.
body?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
any
(optional)
AWS::ApiGatewayV2::Api.Body
.
bodyS3Location?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
IResolvable
|
Body
(optional)
AWS::ApiGatewayV2::Api.BodyS3Location
.
corsConfiguration?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
IResolvable
|
Cors
(optional)
AWS::ApiGatewayV2::Api.CorsConfiguration
.
credentialsArn?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.CredentialsArn
.
description?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.Description
.
disableSchemaValidation?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
boolean |
IResolvable
(optional)
AWS::ApiGatewayV2::Api.DisableSchemaValidation
.
failOnWarnings?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
boolean |
IResolvable
(optional)
AWS::ApiGatewayV2::Api.FailOnWarnings
.
name?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.Name
.
protocolType?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.ProtocolType
.
routeKey?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.RouteKey
.
routeSelectionExpression?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.RouteSelectionExpression
.
tags?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
any
(optional)
AWS::ApiGatewayV2::Api.Tags
.
target?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.Target
.
version?
⚠️ Deprecated: moved to package aws-apigatewayv2
Type:
string
(optional)
AWS::ApiGatewayV2::Api.Version
.