From 0fbb760515190bf8fbb85a8e54c43eaf03457085 Mon Sep 17 00:00:00 2001 From: Mike Cowgill Date: Fri, 7 Sep 2018 16:14:53 -0700 Subject: [PATCH] updating sam spec for deployment preference --- generate/sam-2016-10-31.json | 49 +++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/generate/sam-2016-10-31.json b/generate/sam-2016-10-31.json index 14811ee371..14d6ba3bd5 100644 --- a/generate/sam-2016-10-31.json +++ b/generate/sam-2016-10-31.json @@ -34,6 +34,12 @@ "PrimitiveType": "String", "UpdateType": "Immutable" }, + "DeploymentPreference": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "Type": "DeploymentPreference", + "Required": false, + "UpdateType": "Immutable" + }, "Description": { "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction", "Required": false, @@ -553,6 +559,47 @@ } } }, + "AWS::Serverless::Function.DeploymentPreference": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/safe_lambda_deployments.rst", + "Properties": { + "Enabled": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "PrimitiveType": "Boolean", + "Required": true, + "UpdateType": "Immutable" + }, + "Type": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "Required": true, + "Types": [ + "AllAtOnce", + "Canary10Percent5Minutes", + "Canary10Percent10Minutes", + "Canary10Percent15Minutes", + "Canary10Percent30Minutes", + "Linear10PercentEvery1Minute", + "Linear10PercentEvery2Minutes", + "Linear10PercentEvery3Minutes", + "Linear10PercentEvery10Minutes" + ], + "UpdateType": "Immutable" + }, + "Alarms": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "PrimitiveItemType": "String", + "Type": "List", + "Required": false, + "UpdateType": "Immutable" + }, + "Hooks": { + "Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object", + "PrimitiveItemType": "String", + "Type": "List", + "Required": false, + "UpdateType": "Immutable" + } + } + }, "AWS::Serverless::SimpleTable.ProvisionedThroughput": { "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-provisionedthroughput.html", "Properties": { @@ -571,4 +618,4 @@ } } } -} \ No newline at end of file +}