Skip to content

Commit 29e15ae

Browse files
chore: update analytics metadata blueprints
1 parent 5b18f02 commit 29e15ae

File tree

6 files changed

+43
-41
lines changed

6 files changed

+43
-41
lines changed

packages/@aws-cdk/aws-bedrock-alpha/bedrock/inference-profiles/application-inference-profile.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { Arn, ArnFormat, ValidationError } from 'aws-cdk-lib';
22
import * as bedrock from 'aws-cdk-lib/aws-bedrock';
33
import { Grant, IGrantable } from 'aws-cdk-lib/aws-iam';
4+
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
5+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
46
import { Construct } from 'constructs';
57
import { IInferenceProfile, InferenceProfileBase, InferenceProfileType } from './inference-profile';
68
import { IBedrockInvokable } from '../models';
@@ -92,7 +94,11 @@ export interface ApplicationInferenceProfileAttributes {
9294
* @cloudformationResource AWS::Bedrock::ApplicationInferenceProfile
9395
* @see https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-create.html
9496
*/
97+
@propertyInjectable
9598
export class ApplicationInferenceProfile extends InferenceProfileBase implements IBedrockInvokable {
99+
/** Uniquely identifies this class. */
100+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-bedrock-alpha.ApplicationInferenceProfile';
101+
96102
/**
97103
* Import an Application Inference Profile given its attributes.
98104
*
@@ -225,6 +231,8 @@ export class ApplicationInferenceProfile extends InferenceProfileBase implements
225231
// ------------------------------------------------------
226232
constructor(scope: Construct, id: string, props: ApplicationInferenceProfileProps) {
227233
super(scope, id);
234+
// Enhanced CDK Analytics Telemetry
235+
addConstructMetadata(this, props);
228236

229237
// ------------------------------------------------------
230238
// Validate props
@@ -321,6 +329,7 @@ export class ApplicationInferenceProfile extends InferenceProfileBase implements
321329
* @param grantee - The IAM principal to grant permissions to
322330
* @returns An IAM Grant object representing the granted permissions
323331
*/
332+
@MethodMetadata()
324333
public grantInvoke(grantee: IGrantable): Grant {
325334
// This method ensures the appropriate permissions are given
326335
// to use either the inference profile or the vanilla foundation model
@@ -342,6 +351,7 @@ export class ApplicationInferenceProfile extends InferenceProfileBase implements
342351
* @param grantee - The IAM principal to grant permissions to
343352
* @returns An IAM Grant object representing the granted permissions
344353
*/
354+
@MethodMetadata()
345355
public grantProfileUsage(grantee: IGrantable): Grant {
346356
return Grant.addToPrincipal({
347357
grantee: grantee,

packages/@aws-cdk/aws-s3tables-alpha/lib/namespace.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IResource, RemovalPolicy, Resource, Token, UnscopedValidationError } fr
33
import { ITableBucket } from './table-bucket';
44
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
55
import { CfnNamespace } from 'aws-cdk-lib/aws-s3tables';
6+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
67
import { EOL } from 'os';
78

89
/**
@@ -61,7 +62,11 @@ export interface NamespaceAttributes {
6162
*
6263
* A namespace is a logical container for tables within a table bucket.
6364
*/
65+
@propertyInjectable
6466
export class Namespace extends Resource implements INamespace {
67+
/** Uniquely identifies this class. */
68+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-s3tables-alpha.Namespace';
69+
6570
/**
6671
* Import an existing namespace from its attributes
6772
*/

packages/@aws-cdk/aws-s3tables-alpha/lib/table.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
import { INamespace } from './namespace';
99
import { CfnTable } from 'aws-cdk-lib/aws-s3tables';
1010
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
11+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
1112
import { Construct } from 'constructs';
1213
import { EOL } from 'os';
1314

@@ -236,7 +237,11 @@ export interface TableAttributes {
236237
/**
237238
* An S3 Table with helpers.
238239
*/
240+
@propertyInjectable
239241
export class Table extends TableBase {
242+
/** Uniquely identifies this class. */
243+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-s3tables-alpha.Table';
244+
240245
/**
241246
* Defines a Table construct that represents an external table.
242247
*

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

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24728,6 +24728,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2472824728
},
2472924729
'prefix': '*'
2473024730
},
24731+
'enableMetrics': 'boolean',
24732+
'enableObservabilityMetrics': 'boolean',
2473124733
'script': '*',
2473224734
'role': {
2473324735
'roleArn': '*',
@@ -24824,6 +24826,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2482424826
},
2482524827
'prefix': '*'
2482624828
},
24829+
'enableMetrics': 'boolean',
24830+
'enableObservabilityMetrics': 'boolean',
2482724831
'script': '*',
2482824832
'role': {
2482924833
'roleArn': '*',
@@ -24920,6 +24924,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2492024924
},
2492124925
'prefix': '*'
2492224926
},
24927+
'enableMetrics': 'boolean',
24928+
'enableObservabilityMetrics': 'boolean',
2492324929
'script': '*',
2492424930
'role': {
2492524931
'roleArn': '*',
@@ -25057,6 +25063,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2505725063
'RayJob': {
2505825064
'runtime': 'Runtime',
2505925065
'jobRunQueuingEnabled': 'boolean',
25066+
'enableMetrics': 'boolean',
25067+
'enableObservabilityMetrics': 'boolean',
2506025068
'script': '*',
2506125069
'role': {
2506225070
'roleArn': '*',
@@ -25153,6 +25161,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2515325161
},
2515425162
'prefix': '*'
2515525163
},
25164+
'enableMetrics': 'boolean',
25165+
'enableObservabilityMetrics': 'boolean',
2515625166
'script': '*',
2515725167
'role': {
2515825168
'roleArn': '*',
@@ -25249,6 +25259,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2524925259
},
2525025260
'prefix': '*'
2525125261
},
25262+
'enableMetrics': 'boolean',
25263+
'enableObservabilityMetrics': 'boolean',
2525225264
'script': '*',
2525325265
'role': {
2525425266
'roleArn': '*',
@@ -25345,6 +25357,8 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2534525357
},
2534625358
'prefix': '*'
2534725359
},
25360+
'enableMetrics': 'boolean',
25361+
'enableObservabilityMetrics': 'boolean',
2534825362
'script': '*',
2534925363
'role': {
2535025364
'roleArn': '*',
@@ -27931,9 +27945,6 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2793127945
},
2793227946
'taskDefinitionRevision': '*',
2793327947
'volumeConfigurations': '*',
27934-
'deploymentStrategy': 'DeploymentStrategy',
27935-
'bakeTime': '*',
27936-
'lifecycleHooks': '*',
2793727948
'addPlacementStrategies': [
2793827949
'*'
2793927950
],
@@ -28186,9 +28197,6 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2818628197
},
2818728198
'taskDefinitionRevision': '*',
2818828199
'volumeConfigurations': '*',
28189-
'deploymentStrategy': 'DeploymentStrategy',
28190-
'bakeTime': '*',
28191-
'lifecycleHooks': '*',
2819228200
'attachToApplicationTargetGroup': [
2819328201
{
2819428202
'metrics': '*',
@@ -28204,8 +28212,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2820428212
'containerName': '*',
2820528213
'containerPort': '*',
2820628214
'protocol': 'Protocol'
28207-
},
28208-
'*'
28215+
}
2820928216
],
2821028217
'registerLoadBalancerTargets': [
2821128218
{
@@ -28550,9 +28557,6 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2855028557
},
2855128558
'taskDefinitionRevision': '*',
2855228559
'volumeConfigurations': '*',
28553-
'deploymentStrategy': 'DeploymentStrategy',
28554-
'bakeTime': '*',
28555-
'lifecycleHooks': '*',
2855628560
'attachToClassicLB': [
2855728561
'*'
2855828562
]

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

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -994,19 +994,6 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
994994
"CODE_DEPLOY",
995995
"EXTERNAL"
996996
],
997-
"DeploymentLifecycleStage": [
998-
"RECONCILE_SERVICE",
999-
"PRE_SCALE_UP",
1000-
"POST_SCALE_UP",
1001-
"TEST_TRAFFIC_SHIFT",
1002-
"POST_TEST_TRAFFIC_SHIFT",
1003-
"PRODUCTION_TRAFFIC_SHIFT",
1004-
"POST_PRODUCTION_TRAFFIC_SHIFT"
1005-
],
1006-
"DeploymentStrategy": [
1007-
"ROLLING",
1008-
"BLUE_GREEN"
1009-
],
1010997
"DesiredState": [
1011998
"RUNNING",
1012999
"STOPPED"
@@ -2138,7 +2125,10 @@ export const AWS_CDK_ENUMS: { [key: string]: any } = {
21382125
"HMAC_256",
21392126
"HMAC_384",
21402127
"HMAC_512",
2141-
"SM2"
2128+
"SM2",
2129+
"ML_DSA_44",
2130+
"ML_DSA_65",
2131+
"ML_DSA_87"
21422132
],
21432133
"KeyUsage": [
21442134
"ENCRYPT_DECRYPT",

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

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3636,10 +3636,6 @@
36363636
"CODE_DEPLOY",
36373637
"EXTERNAL"
36383638
],
3639-
"DeploymentStrategy": [
3640-
"ROLLING",
3641-
"BLUE_GREEN"
3642-
],
36433639
"PropagatedTagSource": [
36443640
"SERVICE",
36453641
"TASK_DEFINITION",
@@ -3735,17 +3731,6 @@
37353731
"disabled"
37363732
]
37373733
},
3738-
"aws-cdk/packages/aws-cdk-lib/aws-ecs/lib/deployment-lifecycle-hook-target.ts": {
3739-
"DeploymentLifecycleStage": [
3740-
"RECONCILE_SERVICE",
3741-
"PRE_SCALE_UP",
3742-
"POST_SCALE_UP",
3743-
"TEST_TRAFFIC_SHIFT",
3744-
"POST_TEST_TRAFFIC_SHIFT",
3745-
"PRODUCTION_TRAFFIC_SHIFT",
3746-
"POST_PRODUCTION_TRAFFIC_SHIFT"
3747-
]
3748-
},
37493734
"aws-cdk/packages/aws-cdk-lib/aws-ecs/lib/environment-file.ts": {
37503735
"EnvironmentFileType": [
37513736
"s3"
@@ -4319,7 +4304,10 @@
43194304
"HMAC_256",
43204305
"HMAC_384",
43214306
"HMAC_512",
4322-
"SM2"
4307+
"SM2",
4308+
"ML_DSA_44",
4309+
"ML_DSA_65",
4310+
"ML_DSA_87"
43234311
],
43244312
"KeyUsage": [
43254313
"ENCRYPT_DECRYPT",

0 commit comments

Comments
 (0)