Skip to content

Commit 6c38897

Browse files
chore: update analytics metadata blueprints
1 parent 61c9324 commit 6c38897

File tree

6 files changed

+235
-3
lines changed

6 files changed

+235
-3
lines changed

packages/@aws-cdk/aws-elasticache-alpha/lib/iam-user.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CfnUser } from 'aws-cdk-lib/aws-elasticache';
44
import { UserBase, UserBaseProps } from './user-base';
55
import * as iam from 'aws-cdk-lib/aws-iam';
66
import { ValidationError } from 'aws-cdk-lib/core';
7-
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
7+
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
88
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
99

1010
const ELASTICACHE_IAMUSER_SYMBOL = Symbol.for('@aws-cdk/aws-elasticache.IamUser');
@@ -115,6 +115,7 @@ export class IamUser extends UserBase {
115115
*
116116
* @param grantee The IAM identity to grant permissions to.
117117
*/
118+
@MethodMetadata()
118119
public grantConnect(grantee: iam.IGrantable): iam.Grant {
119120
return this.grant(grantee, 'elasticache:Connect');
120121
}
@@ -125,6 +126,7 @@ export class IamUser extends UserBase {
125126
* @param grantee The IAM identity to grant permissions to.
126127
* @param actions The actions to grant.
127128
*/
129+
@MethodMetadata()
128130
public grant(grantee: iam.IGrantable, ...actions: string[]): iam.Grant {
129131
return iam.Grant.addToPrincipal({
130132
grantee,

packages/@aws-cdk/aws-elasticache-alpha/lib/user-group.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { UserEngine } from './common';
33
import { CfnUserGroup } from 'aws-cdk-lib/aws-elasticache';
44
import { IUser } from './user-base';
55
import { IResource, Resource, ArnFormat, Stack, Lazy, ValidationError, UnscopedValidationError, Names } from 'aws-cdk-lib/core';
6-
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
6+
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
77
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
88

99
const ELASTICACHE_USERGROUP_SYMBOL = Symbol.for('@aws-cdk/aws-elasticache.UserGroup');
@@ -327,6 +327,7 @@ export class UserGroup extends UserGroupBase {
327327
*
328328
* @param user The user to add to the group
329329
*/
330+
@MethodMetadata()
330331
public addUser(user: IUser): void {
331332
this._users.push(user);
332333
this.addUserDependency(user);

packages/aws-cdk-lib/core/lib/analytics-data-source/classes.ts

Lines changed: 176 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,177 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
11541154
'ipv6Pool': '*'
11551155
}
11561156
},
1157+
'@aws-cdk.aws-elasticache-alpha': {
1158+
'IamUser': {
1159+
'userName': '*',
1160+
'engine': 'UserEngine',
1161+
'userId': '*',
1162+
'accessControl': '*',
1163+
'grantConnect': [
1164+
{
1165+
'grantPrincipal': {
1166+
'assumeRoleAction': '*',
1167+
'policyFragment': '*',
1168+
'principalAccount': '*'
1169+
}
1170+
}
1171+
],
1172+
'grant': [
1173+
{
1174+
'grantPrincipal': {
1175+
'assumeRoleAction': '*',
1176+
'policyFragment': '*',
1177+
'principalAccount': '*'
1178+
}
1179+
},
1180+
'*'
1181+
]
1182+
},
1183+
'NoPasswordUser': {
1184+
'userName': '*',
1185+
'engine': 'UserEngine',
1186+
'userId': '*',
1187+
'accessControl': '*'
1188+
},
1189+
'PasswordUser': {
1190+
'userName': '*',
1191+
'passwords': '*',
1192+
'engine': 'UserEngine',
1193+
'userId': '*',
1194+
'accessControl': '*'
1195+
},
1196+
'ServerlessCache': {
1197+
'engine': 'CacheEngine',
1198+
'serverlessCacheName': '*',
1199+
'description': '*',
1200+
'cacheUsageLimits': {
1201+
'dataStorageMinimumSize': '*',
1202+
'requestRateLimitMinimum': '*',
1203+
'requestRateLimitMaximum': '*'
1204+
},
1205+
'backup': {
1206+
'backupTime': '*',
1207+
'backupRetentionLimit': '*',
1208+
'backupNameBeforeDeletion': '*',
1209+
'backupArnsToRestore': '*'
1210+
},
1211+
'kmsKey': {
1212+
'keyArn': '*',
1213+
'keyId': '*',
1214+
'stack': '*',
1215+
'env': {
1216+
'account': '*',
1217+
'region': '*'
1218+
},
1219+
'node': '*'
1220+
},
1221+
'vpc': {
1222+
'vpcId': '*',
1223+
'vpcArn': '*',
1224+
'vpcCidrBlock': '*',
1225+
'publicSubnets': {
1226+
'availabilityZone': '*',
1227+
'subnetId': '*',
1228+
'internetConnectivityEstablished': '*',
1229+
'ipv4CidrBlock': '*',
1230+
'routeTable': {
1231+
'routeTableId': '*'
1232+
},
1233+
'stack': '*',
1234+
'env': {
1235+
'account': '*',
1236+
'region': '*'
1237+
},
1238+
'node': '*'
1239+
},
1240+
'availabilityZones': '*',
1241+
'vpnGatewayId': '*'
1242+
},
1243+
'vpcSubnets': {
1244+
'subnetType': 'SubnetType',
1245+
'availabilityZones': '*',
1246+
'subnetGroupName': '*',
1247+
'subnetName': '*',
1248+
'onePerAz': 'boolean',
1249+
'subnetFilters': '*',
1250+
'subnets': {
1251+
'availabilityZone': '*',
1252+
'subnetId': '*',
1253+
'internetConnectivityEstablished': '*',
1254+
'ipv4CidrBlock': '*',
1255+
'routeTable': {
1256+
'routeTableId': '*'
1257+
},
1258+
'stack': '*',
1259+
'env': {
1260+
'account': '*',
1261+
'region': '*'
1262+
},
1263+
'node': '*'
1264+
}
1265+
},
1266+
'securityGroups': {
1267+
'securityGroupId': '*',
1268+
'allowAllOutbound': 'boolean',
1269+
'stack': '*',
1270+
'env': {
1271+
'account': '*',
1272+
'region': '*'
1273+
},
1274+
'node': '*',
1275+
'canInlineRule': 'boolean',
1276+
'uniqueId': '*',
1277+
'connections': '*'
1278+
},
1279+
'userGroup': {
1280+
'userGroupName': '*',
1281+
'engine': 'UserEngine',
1282+
'users': {
1283+
'userId': '*',
1284+
'engine': 'UserEngine',
1285+
'userName': '*',
1286+
'userArn': '*',
1287+
'stack': '*',
1288+
'env': {
1289+
'account': '*',
1290+
'region': '*'
1291+
},
1292+
'node': '*'
1293+
},
1294+
'userGroupArn': '*'
1295+
}
1296+
},
1297+
'UserGroup': {
1298+
'userGroupName': '*',
1299+
'engine': 'UserEngine',
1300+
'users': {
1301+
'userId': '*',
1302+
'engine': 'UserEngine',
1303+
'userName': '*',
1304+
'userArn': '*',
1305+
'stack': '*',
1306+
'env': {
1307+
'account': '*',
1308+
'region': '*'
1309+
},
1310+
'node': '*'
1311+
},
1312+
'addUser': [
1313+
{
1314+
'userId': '*',
1315+
'engine': 'UserEngine',
1316+
'userName': '*',
1317+
'userArn': '*',
1318+
'stack': '*',
1319+
'env': {
1320+
'account': '*',
1321+
'region': '*'
1322+
},
1323+
'node': '*'
1324+
}
1325+
]
1326+
}
1327+
},
11571328
'@aws-cdk.aws-gamelift-alpha': {
11581329
'Alias': {
11591330
'aliasName': '*',
@@ -11633,10 +11804,14 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
1163311804
'node': '*'
1163411805
},
1163511806
'storageEncrypted': 'boolean',
11636-
'instances': '*',
1163711807
'dbClusterName': '*',
1163811808
'instanceIdentifierBase': '*',
1163911809
'instanceType': '*',
11810+
'instances': '*',
11811+
'serverlessV2ScalingConfiguration': {
11812+
'minCapacity': '*',
11813+
'maxCapacity': '*'
11814+
},
1164011815
'caCertificate': '*',
1164111816
'vpc': {
1164211817
'vpcId': '*',

packages/aws-cdk-lib/core/lib/analytics-data-source/enums.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,14 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
476476
"AMPLIFY_MANAGED",
477477
"AMPLIFY_MANAGED_NO_COOKIES"
478478
],
479+
"CacheEngine": [
480+
"valkey",
481+
"valkey_7",
482+
"valkey_8",
483+
"redis",
484+
"redis_7",
485+
"memcached"
486+
],
479487
"Capability": [
480488
"ALL",
481489
"AUDIT_CONTROL",
@@ -953,6 +961,9 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
953961
"Grab",
954962
"Here"
955963
],
964+
"DataStorageUnit": [
965+
"GB"
966+
],
956967
"DatabaseInsightsMode": [
957968
"standard",
958969
"advanced"
@@ -1765,6 +1776,8 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
17651776
"r8gd",
17661777
"memory8-graviton4-high-network-bandwidth",
17671778
"r8gn",
1779+
"memory8-graviton4-ebs-optimized",
1780+
"r8gb",
17681781
"compute3",
17691782
"c3",
17701783
"compute4",
@@ -2561,6 +2574,7 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
25612574
"AL2023_x86_64_STANDARD",
25622575
"AL2023_x86_64_NEURON",
25632576
"AL2023_x86_64_NVIDIA",
2577+
"AL2023_ARM_64_NVIDIA",
25642578
"AL2023_ARM_64_STANDARD"
25652579
],
25662580
"NumericOverflowHandlingAction": [
@@ -2662,6 +2676,11 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
26622676
"mediastore",
26632677
"mediapackagev2"
26642678
],
2679+
"OriginIpAddressType": [
2680+
"ipv4",
2681+
"ipv6",
2682+
"dualstack"
2683+
],
26652684
"OriginProtocolPolicy": [
26662685
"http-only",
26672686
"match-viewer",
@@ -3861,6 +3880,10 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
38613880
"UsagePlanKeyType": [
38623881
"API_KEY"
38633882
],
3883+
"UserEngine": [
3884+
"valkey",
3885+
"redis"
3886+
],
38643887
"UserPoolDefaultAction": [
38653888
"ALLOW",
38663889
"DENY"

packages/aws-cdk-lib/core/lib/analytics-data-source/enums/module-enumlikes.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2886,6 +2886,7 @@
28862886
"VER_5_7_44_RDS_20250103",
28872887
"VER_5_7_44_RDS_20250213",
28882888
"VER_5_7_44_RDS_20250508",
2889+
"VER_5_7_44_RDS_20250818",
28892890
"VER_8_0",
28902891
"VER_8_0_11",
28912892
"VER_8_0_13",

packages/aws-cdk-lib/core/lib/analytics-data-source/enums/module-enums.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@
284284
"AL2023_x86_64_STANDARD",
285285
"AL2023_x86_64_NEURON",
286286
"AL2023_x86_64_NVIDIA",
287+
"AL2023_ARM_64_NVIDIA",
287288
"AL2023_ARM_64_STANDARD"
288289
],
289290
"CapacityType": [
@@ -309,6 +310,27 @@
309310
"Ec2Spot"
310311
]
311312
},
313+
"aws-cdk/packages/@aws-cdk/aws-elasticache-alpha/lib/common.ts": {
314+
"UserEngine": [
315+
"valkey",
316+
"redis"
317+
]
318+
},
319+
"aws-cdk/packages/@aws-cdk/aws-elasticache-alpha/lib/serverless-cache-base.ts": {
320+
"CacheEngine": [
321+
"valkey",
322+
"valkey_7",
323+
"valkey_8",
324+
"redis",
325+
"redis_7",
326+
"memcached"
327+
]
328+
},
329+
"aws-cdk/packages/@aws-cdk/aws-elasticache-alpha/lib/serverless-cache.ts": {
330+
"DataStorageUnit": [
331+
"GB"
332+
]
333+
},
312334
"aws-cdk/packages/@aws-cdk/aws-gamelift-alpha/lib/build.ts": {
313335
"OperatingSystem": [
314336
"AMAZON_LINUX",
@@ -1812,6 +1834,11 @@
18121834
"OriginSelectionCriteria": [
18131835
"default",
18141836
"media-quality-based"
1837+
],
1838+
"OriginIpAddressType": [
1839+
"ipv4",
1840+
"ipv6",
1841+
"dualstack"
18151842
]
18161843
},
18171844
"aws-cdk/packages/aws-cdk-lib/aws-cloudfront/lib/response-headers-policy.ts": {
@@ -2635,6 +2662,8 @@
26352662
"r8gd",
26362663
"memory8-graviton4-high-network-bandwidth",
26372664
"r8gn",
2665+
"memory8-graviton4-ebs-optimized",
2666+
"r8gb",
26382667
"compute3",
26392668
"c3",
26402669
"compute4",
@@ -4087,6 +4116,7 @@
40874116
"AL2023_x86_64_STANDARD",
40884117
"AL2023_x86_64_NEURON",
40894118
"AL2023_x86_64_NVIDIA",
4119+
"AL2023_ARM_64_NVIDIA",
40904120
"AL2023_ARM_64_STANDARD"
40914121
],
40924122
"CapacityType": [

0 commit comments

Comments
 (0)