@Internal public static final class IResource.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IResource.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationMode
IResource.Jsii$Default, IResource.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
Method |
addCorsPreflight(CorsOptions options)
(experimental) Adds an OPTIONS method to this resource which responds to Cross-Origin Resource Sharing (CORS) preflight requests.
|
Method |
addMethod(String httpMethod)
(experimental) Defines a new method for this resource.
|
Method |
addMethod(String httpMethod,
Integration target)
(experimental) Defines a new method for this resource.
|
Method |
addMethod(String httpMethod,
Integration target,
MethodOptions options)
(experimental) Defines a new method for this resource.
|
ProxyResource |
addProxy()
(experimental) Adds a greedy proxy resource ("{proxy+}") and an ANY method to this route.
|
ProxyResource |
addProxy(ProxyResourceOptions options)
(experimental) Adds a greedy proxy resource ("{proxy+}") and an ANY method to this route.
|
Resource |
addResource(String pathPart)
(experimental) Defines a new child resource where this resource is the parent.
|
Resource |
addResource(String pathPart,
ResourceOptions options)
(experimental) Defines a new child resource where this resource is the parent.
|
IRestApi |
getApi()
(experimental) The rest API that this resource is part of.
|
CorsOptions |
getDefaultCorsPreflightOptions()
(experimental) Default options for CORS preflight OPTIONS method.
|
Integration |
getDefaultIntegration()
(experimental) An integration to use as a default for all methods created within this API unless an integration is specified.
|
MethodOptions |
getDefaultMethodOptions()
(experimental) Method options to use as a default for all methods created within this API unless custom options are specified.
|
ResourceEnvironment |
getEnv()
(experimental) The environment this resource belongs to.
|
software.constructs.Node |
getNode()
The tree node.
|
IResource |
getParentResource()
(experimental) The parent of this resource or undefined for the root resource.
|
String |
getPath()
(experimental) The full path of this resource.
|
IResource |
getResource(String pathPart)
(experimental) Retrieves a child resource by path part.
|
String |
getResourceId()
(experimental) The ID of the resource.
|
Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
Resource |
resourceForPath(String path)
(experimental) Gets or create all resources leading up to the specified path.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode
in interface IResource.Jsii$Default
getNode
in interface software.constructs.IConstruct
getNode
in interface software.constructs.IConstruct.Jsii$Default
@Stability(value=Experimental) @NotNull public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
@Stability(value=Experimental) @NotNull public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
@Stability(value=Experimental) @NotNull public final IRestApi getApi()
The reason we need the RestApi object itself and not just the ID is because the model is being tracked by the top-level RestApi object for the purpose of calculating it's hash to determine the ID of the deployment. This allows us to automatically update the deployment when the model of the REST API changes.
@Stability(value=Experimental) @NotNull public final String getPath()
@Stability(value=Experimental) @NotNull public final String getResourceId()
@Stability(value=Experimental) @Nullable public final CorsOptions getDefaultCorsPreflightOptions()
@Stability(value=Experimental) @Nullable public final Integration getDefaultIntegration()
@Stability(value=Experimental) @Nullable public final MethodOptions getDefaultMethodOptions()
@Stability(value=Experimental) @Nullable public final IResource getParentResource()
@Stability(value=Experimental) @NotNull public final Method addCorsPreflight(@NotNull CorsOptions options)
Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin, access to selected resources from a different origin. A web application executes a cross-origin HTTP request when it requests a resource that has a different origin (domain, protocol, or port) from its own.
options
- CORS options. This parameter is required.https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
@Stability(value=Experimental) @NotNull public final Method addMethod(@NotNull String httpMethod, @Nullable Integration target, @Nullable MethodOptions options)
httpMethod
- The HTTP method. This parameter is required.target
- The target backend integration for this method.options
- Method options, such as authentication.@Stability(value=Experimental) @NotNull public final Method addMethod(@NotNull String httpMethod, @Nullable Integration target)
httpMethod
- The HTTP method. This parameter is required.target
- The target backend integration for this method.@Stability(value=Experimental) @NotNull public final Method addMethod(@NotNull String httpMethod)
httpMethod
- The HTTP method. This parameter is required.@Stability(value=Experimental) @NotNull public final ProxyResource addProxy(@Nullable ProxyResourceOptions options)
options
- Default integration and method options.@Stability(value=Experimental) @NotNull public final ProxyResource addProxy()
@Stability(value=Experimental) @NotNull public final Resource addResource(@NotNull String pathPart, @Nullable ResourceOptions options)
pathPart
- The path part for the child resource. This parameter is required.options
- Resource options.@Stability(value=Experimental) @NotNull public final Resource addResource(@NotNull String pathPart)
pathPart
- The path part for the child resource. This parameter is required.@Stability(value=Experimental) @Nullable public final IResource getResource(@NotNull String pathPart)
pathPart
- The path part of the child resource. This parameter is required.@Stability(value=Experimental) @NotNull public final Resource resourceForPath(@NotNull String path)
path
- The relative path. This parameter is required.Copyright © 2021. All rights reserved.