File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed
Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -859,7 +859,11 @@ def _set_docs_properties( # noqa: C901
859859 and proppath_ptr in self .schema ["createOnlyProperties" ]
860860 ):
861861 prop ["createonly" ] = True
862-
862+ if (
863+ "conditionalCreateOnlyProperties" in self .schema
864+ and proppath_ptr in self .schema ["conditionalCreateOnlyProperties" ]
865+ ):
866+ prop ["conditionalCreateOnly" ] = True
863867 if (
864868 "readOnlyProperties" in self .schema
865869 and proppath_ptr in self .schema ["readOnlyProperties" ]
Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ _Pattern_: <code>{{ prop.pattern }}</code>
7676{% if prop.createonly %}
7777
7878_ Update requires_ : [ Replacement] ( https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement )
79+ {% elif prop.conditionalCreateOnly %}
80+
81+ _ Update requires_ : [ Some interruptions] ( https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt )
7982{% else %}
8083
8184_ Update requires_ : [ No interruption] ( https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt )
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ _Pattern_: <code>{{ prop.pattern }}</code>
7171{% if prop.createonly %}
7272
7373_ Update requires_ : [ Replacement] ( https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement )
74+ {% elif prop.conditionalCreateOnly %}
75+
76+ _ Update requires_ : [ Some interruptions] ( https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt )
7477{% else %}
7578
7679_ Update requires_ : [ No interruption] ( https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt )
Original file line number Diff line number Diff line change 7171 "createOnlyProperties" : [
7272 " /properties/str2"
7373 ],
74+ "conditionalCreateOnlyProperties" : [
75+ " /properties/obj1"
76+ ],
7477 "additionalProperties" : false
7578}
You can’t perform that action at this time.
0 commit comments