CfnRequestValidatorMixinProps

class aws_cdk.mixins_preview.aws_apigateway.mixins.CfnRequestValidatorMixinProps(*, name=None, rest_api_id=None, validate_request_body=None, validate_request_parameters=None)

Bases: object

Properties for CfnRequestValidatorPropsMixin.

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

  • rest_api_id (Optional[str]) – The string identifier of the associated RestApi.

  • 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.mixins_preview.aws_apigateway import mixins as apigateway_mixins

cfn_request_validator_mixin_props = apigateway_mixins.CfnRequestValidatorMixinProps(
    name="name",
    rest_api_id="restApiId",
    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