CfnApiV2Props

class aws_cdk.aws_apigateway.CfnApiV2Props(*, api_key_selection_expression=None, base_path=None, body=None, body_s3_location=None, cors_configuration=None, credentials_arn=None, description=None, disable_schema_validation=None, fail_on_warnings=None, name=None, protocol_type=None, route_key=None, route_selection_expression=None, tags=None, target=None, version=None)

Bases: object

(deprecated) Properties for defining a AWS::ApiGatewayV2::Api.

Parameters
  • api_key_selection_expression (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.ApiKeySelectionExpression.

  • base_path (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.BasePath.

  • body (Optional[Any]) – (deprecated) AWS::ApiGatewayV2::Api.Body.

  • body_s3_location (Union[IResolvable, BodyS3LocationProperty, None]) – (deprecated) AWS::ApiGatewayV2::Api.BodyS3Location.

  • cors_configuration (Union[IResolvable, CorsProperty, None]) – (deprecated) AWS::ApiGatewayV2::Api.CorsConfiguration.

  • credentials_arn (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.CredentialsArn.

  • description (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.Description.

  • disable_schema_validation (Union[bool, IResolvable, None]) – (deprecated) AWS::ApiGatewayV2::Api.DisableSchemaValidation.

  • fail_on_warnings (Union[bool, IResolvable, None]) – (deprecated) AWS::ApiGatewayV2::Api.FailOnWarnings.

  • name (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.Name.

  • protocol_type (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.ProtocolType.

  • route_key (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.RouteKey.

  • route_selection_expression (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.RouteSelectionExpression.

  • tags (Optional[Any]) – (deprecated) AWS::ApiGatewayV2::Api.Tags.

  • target (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.Target.

  • version (Optional[str]) – (deprecated) AWS::ApiGatewayV2::Api.Version.

Deprecated

moved to package aws-apigatewayv2

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html

Stability

deprecated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apigateway as apigateway

# body is of type object
# tags is of type object

cfn_api_v2_props = apigateway.CfnApiV2Props(
    api_key_selection_expression="apiKeySelectionExpression",
    base_path="basePath",
    body=body,
    body_s3_location=apigateway.CfnApiV2.BodyS3LocationProperty(
        bucket="bucket",
        etag="etag",
        key="key",
        version="version"
    ),
    cors_configuration=apigateway.CfnApiV2.CorsProperty(
        allow_credentials=False,
        allow_headers=["allowHeaders"],
        allow_methods=["allowMethods"],
        allow_origins=["allowOrigins"],
        expose_headers=["exposeHeaders"],
        max_age=123
    ),
    credentials_arn="credentialsArn",
    description="description",
    disable_schema_validation=False,
    fail_on_warnings=False,
    name="name",
    protocol_type="protocolType",
    route_key="routeKey",
    route_selection_expression="routeSelectionExpression",
    tags=tags,
    target="target",
    version="version"
)

Attributes

api_key_selection_expression

(deprecated) AWS::ApiGatewayV2::Api.ApiKeySelectionExpression.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-apikeyselectionexpression

Stability

deprecated

Return type

Optional[str]

base_path

(deprecated) AWS::ApiGatewayV2::Api.BasePath.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-basepath

Stability

deprecated

Return type

Optional[str]

body

(deprecated) AWS::ApiGatewayV2::Api.Body.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-body

Stability

deprecated

Return type

Any

body_s3_location

(deprecated) AWS::ApiGatewayV2::Api.BodyS3Location.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-bodys3location

Stability

deprecated

Return type

Union[IResolvable, BodyS3LocationProperty, None]

cors_configuration

(deprecated) AWS::ApiGatewayV2::Api.CorsConfiguration.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-corsconfiguration

Stability

deprecated

Return type

Union[IResolvable, CorsProperty, None]

credentials_arn

(deprecated) AWS::ApiGatewayV2::Api.CredentialsArn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-credentialsarn

Stability

deprecated

Return type

Optional[str]

description

(deprecated) AWS::ApiGatewayV2::Api.Description.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-description

Stability

deprecated

Return type

Optional[str]

disable_schema_validation

(deprecated) AWS::ApiGatewayV2::Api.DisableSchemaValidation.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-disableschemavalidation

Stability

deprecated

Return type

Union[bool, IResolvable, None]

fail_on_warnings

(deprecated) AWS::ApiGatewayV2::Api.FailOnWarnings.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-failonwarnings

Stability

deprecated

Return type

Union[bool, IResolvable, None]

name

(deprecated) AWS::ApiGatewayV2::Api.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-name

Stability

deprecated

Return type

Optional[str]

protocol_type

(deprecated) AWS::ApiGatewayV2::Api.ProtocolType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-protocoltype

Stability

deprecated

Return type

Optional[str]

route_key

(deprecated) AWS::ApiGatewayV2::Api.RouteKey.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-routekey

Stability

deprecated

Return type

Optional[str]

route_selection_expression

(deprecated) AWS::ApiGatewayV2::Api.RouteSelectionExpression.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-routeselectionexpression

Stability

deprecated

Return type

Optional[str]

tags

(deprecated) AWS::ApiGatewayV2::Api.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-tags

Stability

deprecated

Return type

Any

target

(deprecated) AWS::ApiGatewayV2::Api.Target.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-target

Stability

deprecated

Return type

Optional[str]

version

(deprecated) AWS::ApiGatewayV2::Api.Version.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-api.html#cfn-apigatewayv2-api-version

Stability

deprecated

Return type

Optional[str]