Skip to content

Commit a6b0a10

Browse files
aws-cdk-automationAWS CDK Teamrix0rrrmergify[bot]
authored
feat(cfnspec): cloudformation spec v58.0.0 (#19153)
* feat: cloudformation spec v58.0.0 * Connection is now typed so need to change casing Co-authored-by: AWS CDK Team <[email protected]> Co-authored-by: Rico Huijbers <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 9961257 commit a6b0a10

File tree

189 files changed

+767
-230
lines changed

Some content is hidden

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

189 files changed

+767
-230
lines changed

packages/@aws-cdk/aws-events/lib/connection.ts

+31-31
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ export abstract class Authorization {
6565
return {
6666
authorizationType: AuthorizationType.API_KEY,
6767
authParameters: {
68-
ApiKeyAuthParameters: {
69-
ApiKeyName: apiKeyName,
70-
ApiKeyValue: apiKeyValue,
68+
apiKeyAuthParameters: {
69+
apiKeyName: apiKeyName,
70+
apiKeyValue: apiKeyValue.toString(),
7171
},
72-
},
72+
} as CfnConnection.AuthParametersProperty,
7373
};
7474
}
7575
}();
@@ -84,11 +84,11 @@ export abstract class Authorization {
8484
return {
8585
authorizationType: AuthorizationType.BASIC,
8686
authParameters: {
87-
BasicAuthParameters: {
88-
Username: username,
89-
Password: password,
87+
basicAuthParameters: {
88+
username: username,
89+
password: password.toString(),
9090
},
91-
},
91+
} as CfnConnection.AuthParametersProperty,
9292
};
9393
}
9494
}();
@@ -107,20 +107,20 @@ export abstract class Authorization {
107107
return {
108108
authorizationType: AuthorizationType.OAUTH_CLIENT_CREDENTIALS,
109109
authParameters: {
110-
OAuthParameters: {
111-
AuthorizationEndpoint: props.authorizationEndpoint,
112-
ClientParameters: {
113-
ClientID: props.clientId,
114-
ClientSecret: props.clientSecret,
110+
oAuthParameters: {
111+
authorizationEndpoint: props.authorizationEndpoint,
112+
clientParameters: {
113+
clientId: props.clientId,
114+
clientSecret: props.clientSecret.toString(),
115115
},
116-
HttpMethod: props.httpMethod,
117-
OAuthHttpParameters: {
118-
BodyParameters: renderHttpParameters(props.bodyParameters),
119-
HeaderParameters: renderHttpParameters(props.headerParameters),
120-
QueryStringParameters: renderHttpParameters(props.queryStringParameters),
116+
httpMethod: props.httpMethod,
117+
oAuthHttpParameters: {
118+
bodyParameters: renderHttpParameters(props.bodyParameters),
119+
headerParameters: renderHttpParameters(props.headerParameters),
120+
queryStringParameters: renderHttpParameters(props.queryStringParameters),
121121
},
122122
},
123-
},
123+
} as CfnConnection.AuthParametersProperty,
124124
};
125125
}
126126
}();
@@ -197,9 +197,9 @@ export abstract class HttpParameter {
197197
return new class extends HttpParameter {
198198
public _render(name: string) {
199199
return {
200-
Key: name,
201-
Value: value,
202-
};
200+
key: name,
201+
value,
202+
} as CfnConnection.ParameterProperty;
203203
}
204204
}();
205205
}
@@ -211,10 +211,10 @@ export abstract class HttpParameter {
211211
return new class extends HttpParameter {
212212
public _render(name: string) {
213213
return {
214-
Key: name,
215-
Value: value,
216-
IsSecretValue: true,
217-
};
214+
key: name,
215+
value: value.toString(),
216+
isValueSecret: true,
217+
} as CfnConnection.ParameterProperty;
218218
}
219219
}();
220220
}
@@ -345,16 +345,16 @@ export class Connection extends Resource implements IConnection {
345345
const authBind = props.authorization._bind();
346346

347347
const invocationHttpParameters = !!props.headerParameters || !!props.queryStringParameters || !!props.bodyParameters ? {
348-
BodyParameters: renderHttpParameters(props.bodyParameters),
349-
HeaderParameters: renderHttpParameters(props.headerParameters),
350-
QueryStringParameters: renderHttpParameters(props.queryStringParameters),
348+
bodyParameters: renderHttpParameters(props.bodyParameters),
349+
headerParameters: renderHttpParameters(props.headerParameters),
350+
queryStringParameters: renderHttpParameters(props.queryStringParameters),
351351
} : undefined;
352352

353353
let connection = new CfnConnection(this, 'Connection', {
354354
authorizationType: authBind.authorizationType,
355355
authParameters: {
356356
...authBind.authParameters,
357-
InvocationHttpParameters: invocationHttpParameters,
357+
invocationHttpParameters: invocationHttpParameters,
358358
},
359359
description: props.description,
360360
name: this.physicalName,
@@ -415,7 +415,7 @@ enum AuthorizationType {
415415
OAUTH_CLIENT_CREDENTIALS = 'OAUTH_CLIENT_CREDENTIALS',
416416
}
417417

418-
function renderHttpParameters(ps?: Record<string, HttpParameter>) {
418+
function renderHttpParameters(ps?: Record<string, HttpParameter>): CfnConnection.ParameterProperty[] | undefined {
419419
if (!ps || Object.keys(ps).length === 0) { return undefined; }
420420

421421
return Object.entries(ps).map(([name, p]) => p._render(name));

packages/@aws-cdk/cfnspec/CHANGELOG.md

+61
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
# CloudFormation Resource Specification v58.0.0
2+
3+
## New Resource Types
4+
5+
* AWS::AppIntegrations::DataIntegration
6+
* AWS::DataSync::LocationFSxLustre
7+
8+
## Attribute Changes
9+
10+
* AWS::AmplifyUIBuilder::Component CreatedAt (__deleted__)
11+
* AWS::AmplifyUIBuilder::Component ModifiedAt (__deleted__)
12+
13+
## Property Changes
14+
15+
* AWS::AmplifyUIBuilder::Component Events (__added__)
16+
* AWS::AmplifyUIBuilder::Component BindingProperties.Required (__changed__)
17+
* Old: false
18+
* New: true
19+
* AWS::AmplifyUIBuilder::Component ComponentType.Required (__changed__)
20+
* Old: false
21+
* New: true
22+
* AWS::AmplifyUIBuilder::Component Name.Required (__changed__)
23+
* Old: false
24+
* New: true
25+
* AWS::AmplifyUIBuilder::Component Overrides.Required (__changed__)
26+
* Old: false
27+
* New: true
28+
* AWS::AmplifyUIBuilder::Component Properties.Required (__changed__)
29+
* Old: false
30+
* New: true
31+
* AWS::AmplifyUIBuilder::Component Variants.Required (__changed__)
32+
* Old: false
33+
* New: true
34+
* AWS::Events::Connection AuthParameters.PrimitiveType (__deleted__)
35+
* AWS::Events::Connection AuthParameters.Type (__added__)
36+
* AWS::Transfer::Server PostAuthenticationLoginBanner (__added__)
37+
* AWS::Transfer::Server PreAuthenticationLoginBanner (__added__)
38+
39+
## Property Type Changes
40+
41+
* AWS::AmplifyUIBuilder::Component.ActionParameters (__added__)
42+
* AWS::AmplifyUIBuilder::Component.ComponentEvent (__added__)
43+
* AWS::AmplifyUIBuilder::Component.ComponentEvents (__added__)
44+
* AWS::AmplifyUIBuilder::Component.MutationActionSetStateParameter (__added__)
45+
* AWS::AppFlow::Flow.SAPODataDestinationProperties (__added__)
46+
* AWS::AppFlow::Flow.SuccessResponseHandlingConfig (__added__)
47+
* AWS::AppMesh::Mesh.MeshServiceDiscovery (__added__)
48+
* AWS::Events::Connection.ApiKeyAuthParameters (__added__)
49+
* AWS::Events::Connection.AuthParameters (__added__)
50+
* AWS::Events::Connection.BasicAuthParameters (__added__)
51+
* AWS::Events::Connection.ClientParameters (__added__)
52+
* AWS::Events::Connection.ConnectionHttpParameters (__added__)
53+
* AWS::Events::Connection.OAuthParameters (__added__)
54+
* AWS::Events::Connection.Parameter (__added__)
55+
* AWS::AmplifyUIBuilder::Component.ComponentChild Events (__added__)
56+
* AWS::AmplifyUIBuilder::Component.ComponentConditionProperty OperandType (__added__)
57+
* AWS::AmplifyUIBuilder::Component.ComponentProperty ComponentName (__added__)
58+
* AWS::AmplifyUIBuilder::Component.ComponentProperty Property (__added__)
59+
* AWS::AppFlow::Flow.DestinationConnectorProperties SAPOData (__added__)
60+
61+
162
# CloudFormation Resource Specification v57.0.0
263

364
## New Resource Types

packages/@aws-cdk/cfnspec/cfn.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
57.0.0
1+
58.0.0

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_ACMPCA.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "57.0.0",
2+
"$version": "58.0.0",
33
"PropertyTypes": {
44
"AWS::ACMPCA::Certificate.ApiPassthrough": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-apipassthrough.html",

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_APS.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "57.0.0",
2+
"$version": "58.0.0",
33
"PropertyTypes": {},
44
"ResourceTypes": {
55
"AWS::APS::RuleGroupsNamespace": {

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_AccessAnalyzer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "57.0.0",
2+
"$version": "58.0.0",
33
"PropertyTypes": {
44
"AWS::AccessAnalyzer::Analyzer.ArchiveRule": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-archiverule.html",

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_AmazonMQ.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "57.0.0",
2+
"$version": "58.0.0",
33
"PropertyTypes": {
44
"AWS::AmazonMQ::Broker.ConfigurationId": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amazonmq-broker-configurationid.html",

packages/@aws-cdk/cfnspec/spec-source/specification/000_cfn/000_official/000_AWS_Amplify.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$version": "57.0.0",
2+
"$version": "58.0.0",
33
"PropertyTypes": {
44
"AWS::Amplify::App.AutoBranchCreationConfig": {
55
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-autobranchcreationconfig.html",

0 commit comments

Comments
 (0)