@aws-cdk_aws-apigatewayv2-alpha.IHttpRoute

interface IHttpRoute ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Apigatewayv2.Alpha.IHttpRoute
Gogithub.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2#IHttpRoute
Javasoftware.amazon.awscdk.services.apigatewayv2.alpha.IHttpRoute
Pythonaws_cdk.aws_apigatewayv2_alpha.IHttpRoute
TypeScript (source)@aws-cdk/aws-apigatewayv2-alpha ยป IHttpRoute

Implemented by HttpRoute

Represents a Route for an HTTP API.

Properties

NameTypeDescription
env๐Ÿ”นResourceEnvironmentThe environment this resource belongs to.
httpApi๐Ÿ”นIHttpApiThe HTTP API associated with this route.
node๐Ÿ”นNodeThe tree node.
routeArn๐Ÿ”นstringReturns the arn of the route.
routeId๐Ÿ”นstringId of the Route.
stack๐Ÿ”นStackThe stack in which this resource is defined.
path?๐Ÿ”นstringReturns the path component of this HTTP route, undefined if the path is the catch-all route.

env๐Ÿ”น

Type: ResourceEnvironment

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.


httpApi๐Ÿ”น

Type: IHttpApi

The HTTP API associated with this route.


node๐Ÿ”น

Type: Node

The tree node.


routeArn๐Ÿ”น

Type: string

Returns the arn of the route.


routeId๐Ÿ”น

Type: string

Id of the Route.


stack๐Ÿ”น

Type: Stack

The stack in which this resource is defined.


path?๐Ÿ”น

Type: string (optional)

Returns the path component of this HTTP route, undefined if the path is the catch-all route.

Methods

NameDescription
applyRemovalPolicy(policy)๐Ÿ”นApply the given removal policy to this resource.
grantInvoke(grantee, options?)๐Ÿ”นGrant access to invoke the route.

applyRemovalPolicy(policy)๐Ÿ”น

public applyRemovalPolicy(policy: RemovalPolicy): void

Parameters

  • policy RemovalPolicy

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).


grantInvoke(grantee, options?)๐Ÿ”น

public grantInvoke(grantee: IGrantable, options?: GrantInvokeOptions): Grant

Parameters

  • grantee IGrantable
  • options GrantInvokeOptions

Returns

  • Grant

Grant access to invoke the route.

This method requires that the authorizer of the route is undefined or is an HttpIamAuthorizer.