Show / Hide Table of Contents

Class RequestValidator

Inheritance
object
Resource
RequestValidator
Implements
IRequestValidator
IResource
IRequestValidatorRef
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyCrossStackReferenceStrength(ReferenceStrength)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.With(params IMixin[])
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RequestValidator : Resource, IRequestValidator, IResource, IRequestValidatorRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class RequestValidator Inherits Resource Implements IRequestValidator, IResource, IRequestValidatorRef, 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.

RequestValidatorRef

A reference to a RequestValidator resource.

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

string

Remarks

ExampleMetadata: fixture=_generated

RequestValidatorId

ID of the request validator, such as abc123.

public virtual string RequestValidatorId { get; }
Property Value

string

Remarks

Attribute: true

RequestValidatorRef

A reference to a RequestValidator resource.

public virtual IRequestValidatorReference RequestValidatorRef { get; }
Property Value

IRequestValidatorReference

Remarks

ExampleMetadata: fixture=_generated

Methods

FromRequestValidatorId(Construct, string, string)

public static IRequestValidator FromRequestValidatorId(Construct scope, string id, string requestValidatorId)
Parameters
scope Construct
id string
requestValidatorId string
Returns

IRequestValidator

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

IRequestValidator
IResource
IRequestValidatorRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX