Show / Hide Table of Contents

Class ProxyResource

Defines a {proxy+} greedy resource and an ANY method on a route.

Inheritance
System.Object
Resource
ResourceBase
Resource
ProxyResource
Implements
IResource
IResource
Constructs.IConstruct
Constructs.IDependable
Inherited Members
Resource.FromResourceAttributes(Construct, String, IResourceAttributes)
Resource.Api
Resource.Path
Resource.ResourceId
Resource.DefaultCorsPreflightOptions
Resource.DefaultIntegration
Resource.DefaultMethodOptions
Resource.ParentResource
ResourceBase.AddCorsPreflight(ICorsOptions)
ResourceBase.AddProxy(IProxyResourceOptions)
ResourceBase.AddResource(String, IResourceOptions)
ResourceBase.GetResource(String)
ResourceBase.ResourceForPath(String)
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(String, IArnComponents)
Resource.GetResourceNameAttribute(String)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ProxyResource : Resource, IResource, IResource
Syntax (vb)
Public Class ProxyResource
    Inherits Resource
    Implements IResource, IResource
Remarks

See: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-set-up-simple-proxy.html

ExampleMetadata: infused

Examples
Resource resource;
Function handler;

var proxy = resource.AddProxy(new ProxyResourceOptions {
    DefaultIntegration = new LambdaIntegration(handler),

    // "false" will require explicitly adding methods on the `proxy` resource
    AnyMethod = true
});

Synopsis

Constructors

ProxyResource(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

ProxyResource(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

ProxyResource(Construct, String, IProxyResourceProps)

Properties

AnyMethod

If props.anyMethod is true, this will be the reference to the 'ANY' method associated with this proxy resource.

Methods

AddMethod(String, Integration, IMethodOptions)

Defines a new method for this resource.

Constructors

ProxyResource(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected ProxyResource(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

ProxyResource(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected ProxyResource(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

ProxyResource(Construct, String, IProxyResourceProps)

public ProxyResource(Construct scope, string id, IProxyResourceProps props)
Parameters
scope Constructs.Construct
id System.String
props IProxyResourceProps

Properties

AnyMethod

If props.anyMethod is true, this will be the reference to the 'ANY' method associated with this proxy resource.

public virtual Method AnyMethod { get; }
Property Value

Method

Methods

AddMethod(String, Integration, IMethodOptions)

Defines a new method for this resource.

public override Method AddMethod(string httpMethod, Integration integration = null, IMethodOptions options = null)
Parameters
httpMethod System.String
integration Integration
options IMethodOptions
Returns

Method

Overrides
ResourceBase.AddMethod(String, Integration, IMethodOptions)

Implements

IResource
IResource
Constructs.IConstruct
Constructs.IDependable
Back to top Generated by DocFX