Class RequestValidator
Inherited Members
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RequestValidator : Resource, IRequestValidator, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class RequestValidator Inherits Resource Implements IRequestValidator, IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;
RestApi restApi;
var requestValidator = new RequestValidator(this, "MyRequestValidator", new RequestValidatorProps {
RestApi = restApi,
// the properties below are optional
RequestValidatorName = "requestValidatorName",
ValidateRequestBody = false,
ValidateRequestParameters = false
});
Synopsis
Constructors
| RequestValidator(Construct, string, IRequestValidatorProps) |
Properties
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
| RequestValidatorId | ID of the request validator, such as abc123. |
Methods
| FromRequestValidatorId(Construct, string, string) |
Constructors
RequestValidator(Construct, string, IRequestValidatorProps)
public RequestValidator(Construct scope, string id, IRequestValidatorProps props)
Parameters
- scope Construct
- id string
- props IRequestValidatorProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;
RestApi restApi;
var requestValidator = new RequestValidator(this, "MyRequestValidator", new RequestValidatorProps {
RestApi = restApi,
// the properties below are optional
RequestValidatorName = "requestValidatorName",
ValidateRequestBody = false,
ValidateRequestParameters = false
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
RequestValidatorId
ID of the request validator, such as abc123.
public virtual string RequestValidatorId { get; }
Property Value
Remarks
Attribute: true
Methods
FromRequestValidatorId(Construct, string, string)
public static IRequestValidator FromRequestValidatorId(Construct scope, string id, string requestValidatorId)
Parameters
Returns
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;
RestApi restApi;
var requestValidator = new RequestValidator(this, "MyRequestValidator", new RequestValidatorProps {
RestApi = restApi,
// the properties below are optional
RequestValidatorName = "requestValidatorName",
ValidateRequestBody = false,
ValidateRequestParameters = false
});
Implements
Constructs.IConstruct
Constructs.IDependable