interface MethodReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Interfaces.APIGateway.MethodReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/interfaces/awsapigateway#MethodReference |
Java | software.amazon.awscdk.interfaces.apigateway.MethodReference |
Python | aws_cdk.interfaces.aws_apigateway.MethodReference |
TypeScript | aws-cdk-lib » interfaces » aws_apigateway » MethodReference |
A reference to a Method 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 interfaces_aws_apigateway } from 'aws-cdk-lib/interfaces';
const methodReference: interfaces_aws_apigateway.MethodReference = {
httpMethod: 'httpMethod',
resourceId: 'resourceId',
restApiId: 'restApiId',
};
Properties
| Name | Type | Description |
|---|---|---|
| http | string | The HttpMethod of the Method resource. |
| resource | string | The ResourceId of the Method resource. |
| rest | string | The RestApiId of the Method resource. |
httpMethod
Type:
string
The HttpMethod of the Method resource.
resourceId
Type:
string
The ResourceId of the Method resource.
restApiId
Type:
string
The RestApiId of the Method resource.

.NET
Go
Java
Python
TypeScript