Class IResource.Jsii$Proxy
- All Implemented Interfaces:
IResource,IResource.Jsii$Default,IResource,IResource.Jsii$Default,IResourceRef,IResourceRef.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IResource
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.IResourceRef
IResourceRef.Jsii$Default, IResourceRef.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal MethodaddCorsPreflight(CorsOptions options) Adds an OPTIONS method to this resource which responds to Cross-Origin Resource Sharing (CORS) preflight requests.final MethodDefines a new method for this resource.final MethodaddMethod(String httpMethod, Integration target) Defines a new method for this resource.final MethodaddMethod(String httpMethod, Integration target, MethodOptions options) Defines a new method for this resource.final ProxyResourceaddProxy()Adds a greedy proxy resource ("{proxy+}") and an ANY method to this route.final ProxyResourceaddProxy(ProxyResourceOptions options) Adds a greedy proxy resource ("{proxy+}") and an ANY method to this route.final ResourceaddResource(String pathPart) Defines a new child resource where this resource is the parent.final ResourceaddResource(String pathPart, ResourceOptions options) Defines a new child resource where this resource is the parent.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final IRestApigetApi()The rest API that this resource is part of.final CorsOptionsDefault options for CORS preflight OPTIONS method.final IntegrationAn integration to use as a default for all methods created within this API unless an integration is specified.final MethodOptionsMethod options to use as a default for all methods created within this API unless custom options are specified.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final software.constructs.NodegetNode()The tree node.final IResourceThe parent of this resource or undefined for the root resource.final StringgetPath()The full path of this resource.final IResourcegetResource(String pathPart) Retrieves a child resource by path part.final StringThe ID of the resource.final ResourceReference(experimental) A reference to a Resource resource.final StackgetStack()The stack in which this resource is defined.final ResourceresourceForPath(String path) Gets or create all resources leading up to the specified path.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource- Specified by:
getNodein interfaceIResource.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default- Specified by:
getNodein interfaceIResourceRef.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getResourceRef
(experimental) A reference to a Resource resource.- Specified by:
getResourceRefin interfaceIResource.Jsii$Default- Specified by:
getResourceRefin interfaceIResourceRef- Specified by:
getResourceRefin interfaceIResourceRef.Jsii$Default
-
getApi
The rest API that this resource is part of.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.
- Specified by:
getApiin interfaceIResource- Specified by:
getApiin interfaceIResource.Jsii$Default
-
getPath
The full path of this resource.- Specified by:
getPathin interfaceIResource- Specified by:
getPathin interfaceIResource.Jsii$Default
-
getResourceId
The ID of the resource.- Specified by:
getResourceIdin interfaceIResource- Specified by:
getResourceIdin interfaceIResource.Jsii$Default
-
getDefaultCorsPreflightOptions
Default options for CORS preflight OPTIONS method.- Specified by:
getDefaultCorsPreflightOptionsin interfaceIResource- Specified by:
getDefaultCorsPreflightOptionsin interfaceIResource.Jsii$Default
-
getDefaultIntegration
An integration to use as a default for all methods created within this API unless an integration is specified.- Specified by:
getDefaultIntegrationin interfaceIResource- Specified by:
getDefaultIntegrationin interfaceIResource.Jsii$Default
-
getDefaultMethodOptions
Method options to use as a default for all methods created within this API unless custom options are specified.- Specified by:
getDefaultMethodOptionsin interfaceIResource- Specified by:
getDefaultMethodOptionsin interfaceIResource.Jsii$Default
-
getParentResource
The parent of this resource or undefined for the root resource.- Specified by:
getParentResourcein interfaceIResource- Specified by:
getParentResourcein interfaceIResource.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addCorsPreflight
Adds an OPTIONS method to this resource which responds to Cross-Origin Resource Sharing (CORS) preflight requests.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.
- Specified by:
addCorsPreflightin interfaceIResource- Specified by:
addCorsPreflightin interfaceIResource.Jsii$Default- Parameters:
options- CORS options. This parameter is required.- Returns:
- a
Methodobject - See Also:
-
addMethod
@Stability(Stable) @NotNull public final Method addMethod(@NotNull String httpMethod, @Nullable Integration target, @Nullable MethodOptions options) Defines a new method for this resource.- Specified by:
addMethodin interfaceIResource- Specified by:
addMethodin interfaceIResource.Jsii$Default- Parameters:
httpMethod- The HTTP method. This parameter is required.target- The target backend integration for this method.options- Method options, such as authentication.- Returns:
- The newly created
Methodobject.
-
addMethod
@Stability(Stable) @NotNull public final Method addMethod(@NotNull String httpMethod, @Nullable Integration target) Defines a new method for this resource. -
addMethod
Defines a new method for this resource. -
addProxy
@Stability(Stable) @NotNull public final ProxyResource addProxy(@Nullable ProxyResourceOptions options) Adds a greedy proxy resource ("{proxy+}") and an ANY method to this route.- Specified by:
addProxyin interfaceIResource- Specified by:
addProxyin interfaceIResource.Jsii$Default- Parameters:
options- Default integration and method options.
-
addProxy
Adds a greedy proxy resource ("{proxy+}") and an ANY method to this route. -
addResource
@Stability(Stable) @NotNull public final Resource addResource(@NotNull String pathPart, @Nullable ResourceOptions options) Defines a new child resource where this resource is the parent.- Specified by:
addResourcein interfaceIResource- Specified by:
addResourcein interfaceIResource.Jsii$Default- Parameters:
pathPart- The path part for the child resource. This parameter is required.options- Resource options.- Returns:
- A Resource object
-
addResource
Defines a new child resource where this resource is the parent.- Specified by:
addResourcein interfaceIResource- Parameters:
pathPart- The path part for the child resource. This parameter is required.- Returns:
- A Resource object
-
getResource
Retrieves a child resource by path part.- Specified by:
getResourcein interfaceIResource- Specified by:
getResourcein interfaceIResource.Jsii$Default- Parameters:
pathPart- The path part of the child resource. This parameter is required.- Returns:
- the child resource or undefined if not found
-
resourceForPath
Gets or create all resources leading up to the specified path.- Path may only start with "/" if this method is called on the root resource.
- All resources are created using default options.
- Specified by:
resourceForPathin interfaceIResource- Specified by:
resourceForPathin interfaceIResource.Jsii$Default- Parameters:
path- The relative path. This parameter is required.- Returns:
- a new or existing resource.
-