AWS::ApiGateway::ResourceThe AWS::ApiGateway::Resource resource creates a resource in an API.
3 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ParentId | string | RequiredCreate-only |
PathPart | string | RequiredCreate-only |
RestApiId | string | RequiredCreate-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
ResourceId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGateway::Resource
Resources:
MyResource:
Type: AWS::ApiGateway::Resource
Properties:
ParentId: "my-parentid"
PathPart: "value"
RestApiId: "my-restapiid"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:GETapigateway:POSTapigateway:GETapigateway:PATCHapigateway:GETapigateway:DELETEEverything you need to know about ApiGateway on one page. HD quality, print-friendly.
Download Free InfographicRestApiIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
PathPartParentIdRestApiId