CfnRequestValidatorProps

class aws_cdk.aws_apigateway.CfnRequestValidatorProps(*, rest_api_id, name=None, validate_request_body=None, validate_request_parameters=None)

Bases: object

Properties for defining a CfnRequestValidator.

Parameters:
  • rest_api_id (str) – The string identifier of the associated RestApi.

  • name (Optional[str]) – The name of this RequestValidator.

  • validate_request_body (Union[bool, IResolvable, None]) – A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

  • validate_request_parameters (Union[bool, IResolvable, None]) – A Boolean flag to indicate whether to validate request parameters ( true ) or not ( false ).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html

ExampleMetadata:

fixture=_generated

Example:

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

cfn_request_validator_props = apigateway.CfnRequestValidatorProps(
    rest_api_id="restApiId",

    # the properties below are optional
    name="name",
    validate_request_body=False,
    validate_request_parameters=False
)

Attributes

name

The name of this RequestValidator.

See:

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

rest_api_id

The string identifier of the associated RestApi.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html#cfn-apigateway-requestvalidator-restapiid

validate_request_body

A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html#cfn-apigateway-requestvalidator-validaterequestbody

validate_request_parameters

A Boolean flag to indicate whether to validate request parameters ( true ) or not ( false ).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-requestvalidator.html#cfn-apigateway-requestvalidator-validaterequestparameters