@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.198Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
ProxyResource(software.constructs.Construct scope,
String id,
ProxyResourceProps props) |
protected |
ProxyResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ProxyResource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Method |
addMethod(String httpMethod)
Defines a new method for this resource.
|
Method |
addMethod(String httpMethod,
Integration integration)
Defines a new method for this resource.
|
Method |
addMethod(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, getResourceIdaddCorsPreflight, addProxy, addProxy, addResource, addResource, getResource, resourceForPathapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected ProxyResource(software.amazon.jsii.JsiiObjectRef objRef)
protected ProxyResource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ProxyResource(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ProxyResourceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public Method addMethod(@NotNull String httpMethod, @Nullable Integration integration, @Nullable MethodOptions options)
addMethod in class ResourceBasehttpMethod - This parameter is required.integration - options - @Stability(value=Stable) @NotNull public Method addMethod(@NotNull String httpMethod, @Nullable Integration integration)
addMethod in class ResourceBasehttpMethod - This parameter is required.integration - @Stability(value=Stable) @NotNull public Method addMethod(@NotNull String httpMethod)
addMethod in class ResourceBasehttpMethod - This parameter is required.@Stability(value=Stable) @Nullable public Method getAnyMethod()
Copyright © 2022. All rights reserved.