Skip to content

Commit ce8c79f

Browse files
chore: update analytics metadata blueprints
1 parent 31dd979 commit ce8c79f

File tree

6 files changed

+4187
-3926
lines changed

6 files changed

+4187
-3926
lines changed

packages/@aws-cdk/aws-bedrock-alpha/bedrock/prompts/prompt.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import * as iam from 'aws-cdk-lib/aws-iam';
44
import * as kms from 'aws-cdk-lib/aws-kms';
55
import { Construct } from 'constructs';
66
import { md5hash } from 'aws-cdk-lib/core/lib/helpers-internal';
7+
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
8+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
9+
710
// Internal Libs
811
import { IPromptVariant } from './prompt-variant';
912
import { PromptVersion } from './prompt-version';
@@ -173,7 +176,11 @@ export interface PromptAttributes {
173176
* @cloudformationResource AWS::Bedrock::Prompt
174177
* @see https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html
175178
*/
179+
@propertyInjectable
176180
export class Prompt extends PromptBase implements IPrompt {
181+
/** Uniquely identifies this class. */
182+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-bedrock-alpha.Prompt';
183+
177184
/******************************************************************************
178185
* IMPORT METHODS
179186
*****************************************************************************/
@@ -266,6 +273,8 @@ export class Prompt extends PromptBase implements IPrompt {
266273
*****************************************************************************/
267274
constructor(scope: Construct, id: string, props: PromptProps) {
268275
super(scope, id);
276+
// Enhanced CDK Analytics Telemetry
277+
addConstructMetadata(this, props);
269278

270279
// ------------------------------------------------------
271280
// Set properties and defaults
@@ -415,6 +424,7 @@ export class Prompt extends PromptBase implements IPrompt {
415424
* @default - No description provided
416425
* @returns A PromptVersion object containing the version details including ARN and version string
417426
*/
427+
@MethodMetadata()
418428
public createVersion(description?: string): PromptVersion {
419429
return new PromptVersion(this, `PromptVersion-${this._hash}`, {
420430
prompt: this,
@@ -428,6 +438,7 @@ export class Prompt extends PromptBase implements IPrompt {
428438
* @param variant - The prompt variant to add
429439
* @throws ValidationError if adding the variant would exceed the maximum allowed variants
430440
*/
441+
@MethodMetadata()
431442
public addVariant(variant: IPromptVariant): void {
432443
validation.throwIfInvalid(this.validateVariantAddition, variant);
433444
this.variants.push(variant);

packages/aws-cdk-lib/aws-logs/lib/transformer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { Construct } from 'constructs';
2020
import { CfnTransformer } from '.';
2121
import { ILogGroup } from './log-group';
2222
import { Resource, Token, ValidationError, UnscopedValidationError } from '../../core';
23+
import { addConstructMetadata } from '../../core/lib/metadata-resource';
2324
import { propertyInjectable } from '../../core/lib/prop-injectable';
2425

2526
/**
@@ -1197,6 +1198,8 @@ export class Transformer extends Resource {
11971198
super(scope, id, {
11981199
physicalName: props.transformerName,
11991200
});
1201+
// Enhanced CDK Analytics Telemetry
1202+
addConstructMetadata(this, props);
12001203

12011204
// Validate the transformer configuration
12021205
this.validateProcessorCount(props.transformerConfig);

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8968,6 +8968,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
89688968
},
89698969
'node': '*'
89708970
},
8971+
'migrateToLaunchTemplate': 'boolean',
89718972
'mixedInstancesPolicy': {
89728973
'instancesDistribution': {
89738974
'onDemandAllocationStrategy': 'OnDemandAllocationStrategy',
@@ -19307,6 +19308,20 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
1930719308
},
1930819309
'filterName': '*',
1930919310
'distribution': 'Distribution'
19311+
},
19312+
'Transformer': {
19313+
'transformerName': '*',
19314+
'logGroup': {
19315+
'logGroupArn': '*',
19316+
'logGroupName': '*',
19317+
'stack': '*',
19318+
'env': {
19319+
'account': '*',
19320+
'region': '*'
19321+
},
19322+
'node': '*'
19323+
},
19324+
'transformerConfig': '*'
1931019325
}
1931119326
},
1931219327
'aws-cdk-lib.aws-opensearchservice': {
@@ -20537,6 +20552,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2053720552
},
2053820553
'node': '*'
2053920554
},
20555+
'databaseInsightsMode': 'DatabaseInsightsMode',
2054020556
'cloudwatchLogsExports': '*',
2054120557
'cloudwatchLogsRetention': 'RetentionDays',
2054220558
'cloudwatchLogsRetentionRole': {
@@ -20839,6 +20855,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2083920855
},
2084020856
'node': '*'
2084120857
},
20858+
'databaseInsightsMode': 'DatabaseInsightsMode',
2084220859
'cloudwatchLogsExports': '*',
2084320860
'cloudwatchLogsRetention': 'RetentionDays',
2084420861
'cloudwatchLogsRetentionRole': {
@@ -21159,6 +21176,7 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2115921176
},
2116021177
'node': '*'
2116121178
},
21179+
'databaseInsightsMode': 'DatabaseInsightsMode',
2116221180
'cloudwatchLogsExports': '*',
2116321181
'cloudwatchLogsRetention': 'RetentionDays',
2116421182
'cloudwatchLogsRetentionRole': {
@@ -24543,6 +24561,50 @@ export const AWS_CDK_CONSTRUCTOR_PROPS: { [key: string]: any } = {
2454324561
'addActionGroups': [
2454424562
'*'
2454524563
]
24564+
},
24565+
'Prompt': {
24566+
'promptName': '*',
24567+
'description': '*',
24568+
'kmsKey': {
24569+
'keyArn': '*',
24570+
'keyId': '*',
24571+
'stack': '*',
24572+
'env': {
24573+
'account': '*',
24574+
'region': '*'
24575+
},
24576+
'node': '*'
24577+
},
24578+
'defaultVariant': {
24579+
'name': '*',
24580+
'templateType': 'PromptTemplateType',
24581+
'inferenceConfiguration': '*',
24582+
'modelId': '*',
24583+
'templateConfiguration': '*',
24584+
'genAiResource': '*'
24585+
},
24586+
'variants': {
24587+
'name': '*',
24588+
'templateType': 'PromptTemplateType',
24589+
'inferenceConfiguration': '*',
24590+
'modelId': '*',
24591+
'templateConfiguration': '*',
24592+
'genAiResource': '*'
24593+
},
24594+
'tags': '*',
24595+
'createVersion': [
24596+
'*'
24597+
],
24598+
'addVariant': [
24599+
{
24600+
'name': '*',
24601+
'templateType': 'PromptTemplateType',
24602+
'inferenceConfiguration': '*',
24603+
'modelId': '*',
24604+
'templateConfiguration': '*',
24605+
'genAiResource': '*'
24606+
}
24607+
]
2454624608
}
2454724609
},
2454824610
'aws-glue-alpha.lib': {

0 commit comments

Comments
 (0)