CfnModelProps

class aws_cdk.aws_apigatewayv2.CfnModelProps(*, api_id, content_type=None, description=None, name, schema)

Bases: object

Properties for defining a AWS::ApiGatewayV2::Model.

Parameters
  • api_id (str) – AWS::ApiGatewayV2::Model.ApiId.

  • content_type (Optional[str]) – AWS::ApiGatewayV2::Model.ContentType.

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

  • name (str) – AWS::ApiGatewayV2::Model.Name.

  • schema (Any) – AWS::ApiGatewayV2::Model.Schema.

Link

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

Example:

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

# schema is of type object

cfn_model_props = apigatewayv2.CfnModelProps(
    api_id="apiId",
    name="name",
    schema=schema,

    # the properties below are optional
    content_type="contentType",
    description="description"
)

Attributes

api_id

AWS::ApiGatewayV2::Model.ApiId.

Link

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

Return type

str

content_type

AWS::ApiGatewayV2::Model.ContentType.

Link

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

Return type

Optional[str]

description

AWS::ApiGatewayV2::Model.Description.

Link

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

Return type

Optional[str]

name

AWS::ApiGatewayV2::Model.Name.

Link

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

Return type

str

schema

AWS::ApiGatewayV2::Model.Schema.

Link

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

Return type

Any