From 858ff2363e110b355c2e9823664d087af991bb55 Mon Sep 17 00:00:00 2001 From: AWS CDK Automation <43080478+aws-cdk-automation@users.noreply.github.com> Date: Tue, 24 Jan 2023 02:26:53 -0800 Subject: [PATCH] feat(cfnspec): cloudformation spec v108.0.0 (#23808) --- packages/@aws-cdk/cfnspec/CHANGELOG.md | 20 ++++ .../cfn-lint/StatefulResources/000.json | 1 + .../100_sam/000_official/spec.json | 103 +++++++++++++++++- 3 files changed, 123 insertions(+), 1 deletion(-) diff --git a/packages/@aws-cdk/cfnspec/CHANGELOG.md b/packages/@aws-cdk/cfnspec/CHANGELOG.md index 685a818f27170..311d409e605a1 100644 --- a/packages/@aws-cdk/cfnspec/CHANGELOG.md +++ b/packages/@aws-cdk/cfnspec/CHANGELOG.md @@ -1,3 +1,23 @@ + +# Serverless Application Model (SAM) Resource Specification v2016-10-31 + +## New Resource Types + + +## Attribute Changes + + +## Property Changes + + +## Property Type Changes + +* AWS::Serverless::Function.HttpApiEvent (__added__) +* AWS::Serverless::Function.HttpApiFunctionAuth (__added__) +* AWS::Serverless::Function.RouteSettings (__added__) +* AWS::Serverless::Function.EventSource Properties.Types (__changed__) + * Added HttpApiEvent + # CloudFormation Resource Specification v108.0.0 ## New Resource Types diff --git a/packages/@aws-cdk/cfnspec/spec-source/cfn-lint/StatefulResources/000.json b/packages/@aws-cdk/cfnspec/spec-source/cfn-lint/StatefulResources/000.json index d3360b14dde0a..3a185f9f3513f 100644 --- a/packages/@aws-cdk/cfnspec/spec-source/cfn-lint/StatefulResources/000.json +++ b/packages/@aws-cdk/cfnspec/spec-source/cfn-lint/StatefulResources/000.json @@ -18,6 +18,7 @@ "AWS::Neptune::DBCluster" : {}, "AWS::Neptune::DBInstance" : {}, "AWS::OpenSearchService::Domain" : {}, + "AWS::Organizations::Account" : {}, "AWS::QLDB::Ledger" : {}, "AWS::RDS::DBCluster" : {}, "AWS::RDS::DBInstance" : {}, diff --git a/packages/@aws-cdk/cfnspec/spec-source/specification/100_sam/000_official/spec.json b/packages/@aws-cdk/cfnspec/spec-source/specification/100_sam/000_official/spec.json index 35cdfe22854e0..cedf2b0bc1e79 100644 --- a/packages/@aws-cdk/cfnspec/spec-source/specification/100_sam/000_official/spec.json +++ b/packages/@aws-cdk/cfnspec/spec-source/specification/100_sam/000_official/spec.json @@ -792,7 +792,8 @@ "CloudWatchLogsEvent", "IoTRuleEvent", "AlexaSkillEvent", - "EventBridgeRuleEvent" + "EventBridgeRuleEvent", + "HttpApiEvent" ], "UpdateType": "Immutable" }, @@ -844,6 +845,71 @@ } } }, + "AWS::Serverless::Function.HttpApiEvent": { + "Documentation": "https://github.com/aws/serverless-application-model/blob/master/versions/2016-10-31.md#httpapi", + "Properties": { + "ApiId": { + "Documentation": "https://github.com/aws/serverless-application-model/blob/master/versions/2016-10-31.md#httpapi", + "PrimitiveType": "String", + "Required": false, + "UpdateType": "Immutable" + }, + "Auth": { + "Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-httpapi.html", + "Required": false, + "Type": "HttpApiFunctionAuth", + "UpdateType": "Immutable" + }, + "Method": { + "Documentation": "https://github.com/aws/serverless-application-model/blob/master/versions/2016-10-31.md#httpapi", + "PrimitiveType": "String", + "Required": false, + "UpdateType": "Immutable" + }, + "Path": { + "Documentation": "https://github.com/aws/serverless-application-model/blob/master/versions/2016-10-31.md#httpapi", + "PrimitiveType": "String", + "Required": false, + "UpdateType": "Immutable" + }, + "PayloadFormatVersion": { + "Documentation": "https://github.com/aws/serverless-application-model/blob/master/versions/2016-10-31.md#httpapi", + "PrimitiveType": "String", + "Required": false, + "UpdateType": "Immutable" + }, + "RouteSettings": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-stage.html#cfn-apigatewayv2-stage-routesettings", + "Required": false, + "Type": "RouteSettings", + "UpdateType": "Immutable" + }, + "TimeoutInMillis": { + "Documentation": "https://github.com/aws/serverless-application-model/blob/master/versions/2016-10-31.md#httpapi", + "PrimitiveType": "Integer", + "Required": false, + "UpdateType": "Immutable" + } + } + }, + "AWS::Serverless::Function.HttpApiFunctionAuth": { + "Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-httpapifunctionauth.html", + "Properties": { + "AuthorizationScopes": { + "Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-httpapifunctionauth.html", + "PrimitiveItemType": "String", + "Required": false, + "Type": "List", + "UpdateType": "Immutable" + }, + "Authorizer": { + "Documentation": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-httpapifunctionauth.html", + "PrimitiveType": "String", + "Required": false, + "UpdateType": "Immutable" + } + } + }, "AWS::Serverless::Function.IAMPolicyDocument": { "Documentation": "http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html", "Properties": { @@ -1052,6 +1118,41 @@ } } }, + "AWS::Serverless::Function.RouteSettings": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html", + "Properties": { + "DataTraceEnabled": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html#cfn-apigatewayv2-stage-routesettings-datatraceenabled", + "PrimitiveType": "Boolean", + "Required": false, + "UpdateType": "Immutable" + }, + "DetailedMetricsEnabled": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html#cfn-apigatewayv2-stage-routesettings-detailedmetricsenabled", + "PrimitiveType": "Boolean", + "Required": false, + "UpdateType": "Immutable" + }, + "LoggingLevel": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html#cfn-apigatewayv2-stage-routesettings-logginglevel", + "PrimitiveType": "String", + "Required": false, + "UpdateType": "Immutable" + }, + "ThrottlingBurstLimit": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html#cfn-apigatewayv2-stage-routesettings-throttlingburstlimit", + "PrimitiveType": "Integer", + "Required": false, + "UpdateType": "Immutable" + }, + "ThrottlingRateLimit": { + "Documentation": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-routesettings.html#cfn-apigatewayv2-stage-routesettings-throttlingratelimit", + "PrimitiveType": "Double", + "Required": false, + "UpdateType": "Immutable" + } + } + }, "AWS::Serverless::Function.S3Event": { "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#s3", "Properties": {