aws-cdk-lib.aws_apigateway.ResourceAttributes

interface ResourceAttributes

LanguageType name
.NETAmazon.CDK.AWS.APIGateway.ResourceAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#ResourceAttributes
Javasoftware.amazon.awscdk.services.apigateway.ResourceAttributes
Pythonaws_cdk.aws_apigateway.ResourceAttributes
TypeScript (source)aws-cdk-lib » aws_apigateway » ResourceAttributes

Attributes that can be specified when importing a Resource.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';

declare const restApi: apigateway.RestApi;
const resourceAttributes: apigateway.ResourceAttributes = {
  path: 'path',
  resourceId: 'resourceId',
  restApi: restApi,
};

Properties

NameTypeDescription
pathstringThe full path of this resource.
resourceIdstringThe ID of the resource.
restApiIRestApiThe rest API that this resource is part of.

path

Type: string

The full path of this resource.


resourceId

Type: string

The ID of the resource.


restApi

Type: IRestApi

The rest API that this resource is part of.