Class IRestApi.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigateway.IRestApi.Jsii$Proxy
All Implemented Interfaces:
IConstruct, IConstruct.Jsii$Default, IDependable, IDependable.Jsii$Default, IResource, IResource.Jsii$Default, IRestApi, IRestApi.Jsii$Default, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default
Enclosing interface:
IRestApi

@Internal public static final class IRestApi.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IRestApi.Jsii$Default
A proxy class which represents a concrete javascript instance of this type.
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
  • Method Details

    • getNode

      @Stability(Stable) @NotNull public final ConstructNode getNode()
      The construct tree node for this construct.
      Specified by:
      getNode in interface IConstruct
      Specified by:
      getNode in interface IConstruct.Jsii$Default
      Specified by:
      getNode in interface IResource.Jsii$Default
      Specified by:
      getNode in interface IRestApi.Jsii$Default
    • getEnv

      @Stability(Stable) @NotNull public final ResourceEnvironment 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:
      getEnv in interface IResource
      Specified by:
      getEnv in interface IResource.Jsii$Default
      Specified by:
      getEnv in interface IRestApi.Jsii$Default
    • getStack

      @Stability(Stable) @NotNull public final Stack getStack()
      The stack in which this resource is defined.
      Specified by:
      getStack in interface IResource
      Specified by:
      getStack in interface IResource.Jsii$Default
      Specified by:
      getStack in interface IRestApi.Jsii$Default
    • getRestApiId

      @Stability(Stable) @NotNull public final String getRestApiId()
      The ID of this API Gateway RestApi.
      Specified by:
      getRestApiId in interface IRestApi
      Specified by:
      getRestApiId in interface IRestApi.Jsii$Default
    • getRestApiRootResourceId

      @Stability(Stable) @NotNull public final String getRestApiRootResourceId()
      The resource ID of the root resource.
      Specified by:
      getRestApiRootResourceId in interface IRestApi
      Specified by:
      getRestApiRootResourceId in interface IRestApi.Jsii$Default
    • getRoot

      @Stability(Stable) @NotNull public final IResource getRoot()
      Represents the root resource ("/") of this API. Use it to define the API model:.

      api.root.addMethod('ANY', redirectToHomePage); // "ANY /" api.root.addResource('friends').addMethod('GET', getFriendsHandler); // "GET /friends"

      Specified by:
      getRoot in interface IRestApi
      Specified by:
      getRoot in interface IRestApi.Jsii$Default
    • getLatestDeployment

      @Stability(Stable) @Nullable public final Deployment getLatestDeployment()
      API Gateway deployment that represents the latest changes of the API.

      This resource will be automatically updated every time the REST API model changes. undefined when no deployment is configured.

      Specified by:
      getLatestDeployment in interface IRestApi
      Specified by:
      getLatestDeployment in interface IRestApi.Jsii$Default
    • getDeploymentStage

      @Stability(Stable) @NotNull public final Stage getDeploymentStage()
      API Gateway stage that points to the latest deployment (if defined).
      Specified by:
      getDeploymentStage in interface IRestApi
      Specified by:
      getDeploymentStage in interface IRestApi.Jsii$Default
    • setDeploymentStage

      @Stability(Stable) public final void setDeploymentStage(@NotNull Stage value)
      API Gateway stage that points to the latest deployment (if defined).
      Specified by:
      setDeploymentStage in interface IRestApi
      Specified by:
      setDeploymentStage in interface IRestApi.Jsii$Default
    • applyRemovalPolicy

      @Stability(Stable) public final void applyRemovalPolicy(@NotNull RemovalPolicy policy)
      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:
      applyRemovalPolicy in interface IResource
      Specified by:
      applyRemovalPolicy in interface IResource.Jsii$Default
      Specified by:
      applyRemovalPolicy in interface IRestApi.Jsii$Default
      Parameters:
      policy - This parameter is required.
    • arnForExecuteApi

      @Stability(Stable) @NotNull public final String arnForExecuteApi(@Nullable String method, @Nullable String path, @Nullable String stage)
      Gets the "execute-api" ARN.

      Default: "*" returns the execute API ARN for all methods/resources in this API.

      Specified by:
      arnForExecuteApi in interface IRestApi
      Specified by:
      arnForExecuteApi in interface IRestApi.Jsii$Default
      Parameters:
      method - The method (default *).
      path - The resource path.
      stage - The stage (default *).
      Returns:
      The "execute-api" ARN.
    • arnForExecuteApi

      @Stability(Stable) @NotNull public final String arnForExecuteApi(@Nullable String method, @Nullable String path)
      Gets the "execute-api" ARN.

      Default: "*" returns the execute API ARN for all methods/resources in this API.

      Specified by:
      arnForExecuteApi in interface IRestApi
      Parameters:
      method - The method (default *).
      path - The resource path.
      Returns:
      The "execute-api" ARN.
    • arnForExecuteApi

      @Stability(Stable) @NotNull public final String arnForExecuteApi(@Nullable String method)
      Gets the "execute-api" ARN.

      Default: "*" returns the execute API ARN for all methods/resources in this API.

      Specified by:
      arnForExecuteApi in interface IRestApi
      Parameters:
      method - The method (default *).
      Returns:
      The "execute-api" ARN.
    • arnForExecuteApi

      @Stability(Stable) @NotNull public final String arnForExecuteApi()
      Gets the "execute-api" ARN.

      Default: "*" returns the execute API ARN for all methods/resources in this API.

      Specified by:
      arnForExecuteApi in interface IRestApi
      Returns:
      The "execute-api" ARN.