Skip to content

Commit f96c487

Browse files
moofish32rix0rrr
authored andcommitted
feat(cfnspec): adding DeploymentPreference Patch for SAM Spec (#681) (#681)
1 parent 7a4d7b7 commit f96c487

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"PropertyTypes": {
3+
"patch": {
4+
"description": "Add DeploymentPreference for SAM",
5+
"operations": [
6+
{
7+
"op": "add",
8+
"path": "/AWS::Serverless::Function.DeploymentPreference",
9+
"value": {
10+
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/docs/safe_lambda_deployments.rst",
11+
"Properties": {
12+
"Enabled": {
13+
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object",
14+
"PrimitiveType": "Boolean",
15+
"Required": true,
16+
"UpdateType": "Immutable"
17+
},
18+
"Type": {
19+
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object",
20+
"Required": true,
21+
"PrimitiveType": "String",
22+
"UpdateType": "Immutable"
23+
},
24+
"Alarms": {
25+
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object",
26+
"PrimitiveItemType": "String",
27+
"Type": "List",
28+
"Required": false,
29+
"UpdateType": "Immutable"
30+
},
31+
"Hooks": {
32+
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object",
33+
"PrimitiveItemType": "String",
34+
"Type": "List",
35+
"Required": false,
36+
"UpdateType": "Immutable"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}
43+
},
44+
"ResourceTypes": {
45+
"AWS::Serverless::Function": {
46+
"patch": {
47+
"description": "Add the deployment preference for SAM Resource",
48+
"operations": [
49+
{
50+
"op": "add",
51+
"path": "/Properties/DeploymentPreference",
52+
"value": {
53+
"Documentation": "https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#deploymentpreference-object",
54+
"Type": "DeploymentPreference",
55+
"Required": false,
56+
"UpdateType": "Immutable"
57+
}
58+
}
59+
]
60+
}
61+
}
62+
}
63+
64+
}

0 commit comments

Comments
 (0)