@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:54:56.881Z") @Stability(value=Experimental) public class Resource extends ResourceBase
| Modifier and Type | Class and Description |
|---|---|
static class |
Resource.Builder
(experimental) A fluent builder for
Resource. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Resource(software.constructs.Construct scope,
String id,
ResourceProps props) |
protected |
Resource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Resource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IResource |
fromResourceAttributes(software.constructs.Construct scope,
String id,
ResourceAttributes attrs)
(experimental) Import an existing resource.
|
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.
|
IResource |
getParentResource()
(experimental) The parent of this resource or undefined for the root resource.
|
String |
getPath()
(experimental) The full path of this resource.
|
String |
getResourceId()
(experimental) The ID of the resource.
|
addCorsPreflight, addMethod, addMethod, addMethod, addProxy, addProxy, addResource, addResource, getResource, resourceForPathapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Resource(software.amazon.jsii.JsiiObjectRef objRef)
protected Resource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Resource(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ResourceProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IResource fromResourceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ResourceAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public 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.
getApi in class ResourceBase@Stability(value=Experimental) @NotNull public String getPath()
getPath in class ResourceBase@Stability(value=Experimental) @NotNull public String getResourceId()
getResourceId in class ResourceBase@Stability(value=Experimental) @Nullable public CorsOptions getDefaultCorsPreflightOptions()
getDefaultCorsPreflightOptions in class ResourceBase@Stability(value=Experimental) @Nullable public Integration getDefaultIntegration()
getDefaultIntegration in class ResourceBase@Stability(value=Experimental) @Nullable public MethodOptions getDefaultMethodOptions()
getDefaultMethodOptions in class ResourceBase@Stability(value=Experimental) @Nullable public IResource getParentResource()
getParentResource in class ResourceBaseCopyright © 2021. All rights reserved.