Skip to content

Commit b1d7c8e

Browse files
CloudFormation Template Schema upgrade (#345)
https://github.com/aws-cloudformation/cloudformation-template-schema/tree/main Co-authored-by: kddejong <[email protected]>
1 parent 655b77c commit b1d7c8e

File tree

116 files changed

+13787
-10443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+13787
-10443
lines changed

server/schema/resources.schema.json

Lines changed: 7587 additions & 7519 deletions
Large diffs are not rendered by default.

server/schema/resources/aws-amplify-branch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"typeName": "AWS::Amplify::Branch",
33
"description": "The AWS::Amplify::Branch resource creates a new branch within an app.",
4+
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-amplify",
45
"additionalProperties": false,
56
"properties": {
67
"AppId": {
@@ -12,6 +13,9 @@
1213
"BasicAuthConfig": {
1314
"$ref": "#/definitions/BasicAuthConfig"
1415
},
16+
"Backend": {
17+
"$ref": "#/definitions/Backend"
18+
},
1519
"BranchName": {
1620
"type": "string",
1721
"minLength": 1,
@@ -80,6 +84,19 @@
8084
}
8185
},
8286
"definitions": {
87+
"Backend": {
88+
"type": "object",
89+
"additionalProperties": false,
90+
"properties": {
91+
"StackArn": {
92+
"type": "string",
93+
"minLength": 20,
94+
"maxLength": 2048,
95+
"markdownDescription": "\n\n---\n\nRequired: No \nType: String \nMinimum Length: 20 \nMaximum Length: 2048 \nUpdate requires: No interruption"
96+
}
97+
},
98+
"markdownDescription": "\n\n---\n\nRequired: No \nUpdate requires: No interruption"
99+
},
83100
"EnvironmentVariable": {
84101
"type": "object",
85102
"additionalProperties": false,
@@ -199,6 +216,16 @@
199216
]
200217
},
201218
"list": {
219+
"handlerSchema": {
220+
"properties": {
221+
"AppId": {
222+
"$ref": "resource-schema.json#/properties/AppId"
223+
}
224+
},
225+
"required": [
226+
"AppId"
227+
]
228+
},
202229
"permissions": [
203230
"amplify:GetBranch",
204231
"amplify:ListBranches",

server/schema/resources/aws-apigateway-account.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"typeName": "AWS::ApiGateway::Account",
3-
"description": "Resource Type definition for AWS::ApiGateway::Account",
3+
"description": "The ``AWS::ApiGateway::Account`` resource specifies the IAM role that Amazon API Gateway uses to write API logs to Amazon CloudWatch Logs. To avoid overwriting other roles, you should only have one ``AWS::ApiGateway::Account`` resource per region per account.",
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-apigateway",
55
"additionalProperties": false,
66
"properties": {
77
"CloudWatchRoleArn": {
8-
"description": "The Amazon Resource Name (ARN) of an IAM role that has write access to CloudWatch Logs in your account.",
8+
"description": "The ARN of an Amazon CloudWatch role for the current Account.",
99
"type": "string",
10-
"markdownDescription": "The Amazon Resource Name (ARN) of an IAM role that has write access to CloudWatch Logs in your account.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
10+
"markdownDescription": "The ARN of an Amazon CloudWatch role for the current Account.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
1111
}
1212
},
1313
"primaryIdentifier": [

server/schema/resources/aws-apigateway-apikey.json

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
11
{
22
"typeName": "AWS::ApiGateway::ApiKey",
3-
"description": "Resource Type definition for AWS::ApiGateway::ApiKey",
3+
"description": "The ``AWS::ApiGateway::ApiKey`` resource creates a unique key that you can distribute to clients who are executing API Gateway ``Method`` resources that require an API key. To specify which API key clients must use, map the API key with the ``RestApi`` and ``Stage`` resources that include the methods that require a key.",
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-apigateway",
55
"additionalProperties": false,
66
"properties": {
77
"CustomerId": {
8-
"description": "An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.",
8+
"description": "An MKT customer identifier, when integrating with the AWS SaaS Marketplace.",
99
"type": "string",
10-
"markdownDescription": "An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
10+
"markdownDescription": "An MKT customer identifier, when integrating with the AWS SaaS Marketplace.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
1111
},
1212
"Description": {
13-
"description": "A description of the purpose of the API key.",
13+
"description": "The description of the ApiKey.",
1414
"type": "string",
15-
"markdownDescription": "A description of the purpose of the API key.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
15+
"markdownDescription": "The description of the ApiKey.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
1616
},
1717
"Enabled": {
18-
"description": "Indicates whether the API key can be used by clients.",
18+
"description": "Specifies whether the ApiKey can be used by callers.",
1919
"default": false,
2020
"type": "boolean",
21-
"markdownDescription": "Indicates whether the API key can be used by clients.\n\n---\n\nRequired: No \nType: Boolean \nUpdate requires: No interruption"
21+
"markdownDescription": "Specifies whether the ApiKey can be used by callers.\n\n---\n\nRequired: No \nType: Boolean \nUpdate requires: No interruption"
2222
},
2323
"GenerateDistinctId": {
24-
"description": "Specifies whether the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.",
24+
"description": "Specifies whether (``true``) or not (``false``) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.",
2525
"type": "boolean",
26-
"markdownDescription": "Specifies whether the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.\n\n---\n\nRequired: No \nType: Boolean \nUpdate requires: Replacement"
26+
"markdownDescription": "Specifies whether (``true``) or not (``false``) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.\n\n---\n\nRequired: No \nType: Boolean \nUpdate requires: Replacement"
2727
},
2828
"Name": {
29-
"description": "A name for the API key. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name.",
29+
"description": "A name for the API key. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the API key name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
3030
"type": "string",
31-
"markdownDescription": "A name for the API key. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name.\n\n---\n\nRequired: No \nType: String \nUpdate requires: Replacement"
31+
"markdownDescription": "A name for the API key. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the API key name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html).\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.\n\n---\n\nRequired: No \nType: String \nUpdate requires: Replacement"
3232
},
3333
"StageKeys": {
34-
"description": "A list of stages to associate with this API key.",
34+
"description": "DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.",
3535
"type": "array",
3636
"uniqueItems": true,
3737
"items": {
3838
"$ref": "#/definitions/StageKey"
3939
},
40-
"markdownDescription": "A list of stages to associate with this API key.\n\n---\n\nRequired: No \nType: Array \nUpdate requires: No interruption"
40+
"markdownDescription": "DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.\n\n---\n\nRequired: No \nType: Array \nUpdate requires: No interruption"
4141
},
4242
"Tags": {
43-
"description": "An array of arbitrary tags (key-value pairs) to associate with the API key.",
43+
"description": "The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with ``aws:``. The tag value can be up to 256 characters.",
4444
"type": "array",
4545
"uniqueItems": false,
4646
"items": {
4747
"$ref": "#/definitions/Tag"
4848
},
49-
"markdownDescription": "An array of arbitrary tags (key-value pairs) to associate with the API key.\n\n---\n\nRequired: No \nType: Array \nUpdate requires: No interruption"
49+
"markdownDescription": "The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with ``aws:``. The tag value can be up to 256 characters.\n\n---\n\nRequired: No \nType: Array \nUpdate requires: No interruption"
5050
},
5151
"Value": {
52-
"description": "The value of the API key. Must be at least 20 characters long.",
52+
"description": "Specifies a value of the API key.",
5353
"type": "string",
54-
"markdownDescription": "The value of the API key. Must be at least 20 characters long.\n\n---\n\nRequired: No \nType: String \nUpdate requires: Replacement"
54+
"markdownDescription": "Specifies a value of the API key.\n\n---\n\nRequired: No \nType: String \nUpdate requires: Replacement"
5555
}
5656
},
5757
"definitions": {
@@ -60,17 +60,18 @@
6060
"additionalProperties": false,
6161
"properties": {
6262
"RestApiId": {
63-
"description": "The ID of a RestApi resource that includes the stage with which you want to associate the API key.",
63+
"description": "The string identifier of the associated RestApi.",
6464
"type": "string",
65-
"markdownDescription": "The ID of a RestApi resource that includes the stage with which you want to associate the API key.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
65+
"markdownDescription": "The string identifier of the associated RestApi.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
6666
},
6767
"StageName": {
68-
"description": "The name of the stage with which to associate the API key. The stage must be included in the RestApi resource that you specified in the RestApiId property. ",
68+
"description": "The stage name associated with the stage key.",
6969
"type": "string",
70-
"markdownDescription": "The name of the stage with which to associate the API key. The stage must be included in the RestApi resource that you specified in the RestApiId property. \n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
70+
"markdownDescription": "The stage name associated with the stage key.\n\n---\n\nRequired: No \nType: String \nUpdate requires: No interruption"
7171
}
7272
},
73-
"markdownDescription": "\n\n---\n\nRequired: No \nUpdate requires: No interruption"
73+
"description": "``StageKey`` is a property of the [AWS::ApiGateway::ApiKey](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html) resource that specifies the stage to associate with the API key. This association allows only clients with the key to make requests to methods in that stage.",
74+
"markdownDescription": "``StageKey`` is a property of the [AWS::ApiGateway::ApiKey](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html) resource that specifies the stage to associate with the API key. This association allows only clients with the key to make requests to methods in that stage.\n\n---\n\nRequired: No \nUpdate requires: No interruption"
7475
},
7576
"Tag": {
7677
"type": "object",
@@ -115,7 +116,8 @@
115116
"create": {
116117
"permissions": [
117118
"apigateway:POST",
118-
"apigateway:GET"
119+
"apigateway:GET",
120+
"apigateway:PUT"
119121
]
120122
},
121123
"read": {
@@ -133,7 +135,8 @@
133135
},
134136
"delete": {
135137
"permissions": [
136-
"apigateway:DELETE"
138+
"apigateway:DELETE",
139+
"apigateway:GET"
137140
]
138141
},
139142
"list": {

0 commit comments

Comments
 (0)