@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:47.704Z") public class ProxyResource extends Resource
Example:
Resource resource; Function handler; ProxyResource proxy = resource.addProxy(ProxyResourceOptions.builder() .defaultIntegration(new LambdaIntegration(handler)) // "false" will require explicitly adding methods on the `proxy` resource .anyMethod(true) .build());
Modifier and Type | Class and Description |
---|---|
static class |
ProxyResource.Builder
A fluent builder for
ProxyResource . |
IResource.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
ProxyResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ProxyResource(software.amazon.jsii.JsiiObjectRef objRef) |
|
ProxyResource(software.constructs.Construct scope,
java.lang.String id,
ProxyResourceProps props) |
Modifier and Type | Method and Description |
---|---|
Method |
addMethod(java.lang.String httpMethod)
Defines a new method for this resource.
|
Method |
addMethod(java.lang.String httpMethod,
Integration integration)
Defines a new method for this resource.
|
Method |
addMethod(java.lang.String httpMethod,
Integration integration,
MethodOptions options)
Defines a new method for this resource.
|
Method |
getAnyMethod()
If `props.anyMethod` is `true`, this will be the reference to the 'ANY' method associated with this proxy resource.
|
fromResourceAttributes, getApi, getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptions, getParentResource, getPath, getResourceId, getRestApi
addCorsPreflight, addProxy, addProxy, addResource, addResource, getResource, getUrl, resourceForPath
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected ProxyResource(software.amazon.jsii.JsiiObjectRef objRef)
protected ProxyResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ProxyResource(software.constructs.Construct scope, java.lang.String id, ProxyResourceProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public Method addMethod(java.lang.String httpMethod, Integration integration, MethodOptions options)
addMethod
in class ResourceBase
httpMethod
- This parameter is required.integration
- options
- public Method addMethod(java.lang.String httpMethod, Integration integration)
addMethod
in class ResourceBase
httpMethod
- This parameter is required.integration
- public Method addMethod(java.lang.String httpMethod)
addMethod
in class ResourceBase
httpMethod
- This parameter is required.public Method getAnyMethod()