konokenj.cdk-api-mcp-server 0.40.0__py3-none-any.whl → 0.41.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cdk_api_mcp_server/__about__.py +1 -1
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/README.md/README.md +364 -16
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-apigatewayv2/README.md +144 -0
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-apigatewayv2/integ.usage-plan.ts +80 -0
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-lambda/README.md +2 -2
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-route53/integ.delete-existing-record-set.ts +0 -1
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-s3-deployment/integ.bucket-deployment-cross-stack-ssm-source.ts +91 -0
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-signer/integ.signing-profile.ts +5 -0
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-stepfunctions-tasks/README.md +9 -3
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/core/README.md +2 -1893
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/cx-api/FEATURE_FLAGS.md +25 -0
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/cx-api/README.md +24 -1
- {konokenj_cdk_api_mcp_server-0.40.0.dist-info → konokenj_cdk_api_mcp_server-0.41.0.dist-info}/METADATA +2 -2
- {konokenj_cdk_api_mcp_server-0.40.0.dist-info → konokenj_cdk_api_mcp_server-0.41.0.dist-info}/RECORD +17 -15
- {konokenj_cdk_api_mcp_server-0.40.0.dist-info → konokenj_cdk_api_mcp_server-0.41.0.dist-info}/WHEEL +0 -0
- {konokenj_cdk_api_mcp_server-0.40.0.dist-info → konokenj_cdk_api_mcp_server-0.41.0.dist-info}/entry_points.txt +0 -0
- {konokenj_cdk_api_mcp_server-0.40.0.dist-info → konokenj_cdk_api_mcp_server-0.41.0.dist-info}/licenses/LICENSE.txt +0 -0
cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-apigatewayv2/integ.usage-plan.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as integ from '@aws-cdk/integ-tests-alpha';
|
|
2
|
+
import * as cdk from 'aws-cdk-lib';
|
|
3
|
+
import { WebSocketApi, WebSocketStage, UsagePlan, ApiKey, RateLimitedApiKey, Period } from 'aws-cdk-lib/aws-apigatewayv2';
|
|
4
|
+
|
|
5
|
+
const app = new cdk.App();
|
|
6
|
+
|
|
7
|
+
const stack = new cdk.Stack(app, 'aws-cdk-aws-apigatewayv2-websocket-usage-plan');
|
|
8
|
+
|
|
9
|
+
const webSocketApi = new WebSocketApi(stack, 'WebSocketApi');
|
|
10
|
+
|
|
11
|
+
const webSocketStage = new WebSocketStage(stack, 'WebSocketStage', {
|
|
12
|
+
webSocketApi,
|
|
13
|
+
stageName: 'dev',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const apiKey = new ApiKey(stack, 'ApiKey', {
|
|
17
|
+
apiKeyName: 'my-api-key',
|
|
18
|
+
value: 'MyApiKeyThatIsAtLeast20Characters',
|
|
19
|
+
description: 'Basic api-key',
|
|
20
|
+
customerId: 'my-customer',
|
|
21
|
+
enabled: true,
|
|
22
|
+
generateDistinctId: true,
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const usagePlan = new UsagePlan(stack, 'UsagePlan', {
|
|
26
|
+
apiStages: [{
|
|
27
|
+
api: webSocketApi,
|
|
28
|
+
stage: webSocketStage,
|
|
29
|
+
}],
|
|
30
|
+
description: 'Basic usage plan',
|
|
31
|
+
quota: {
|
|
32
|
+
limit: 10000,
|
|
33
|
+
offset: 1,
|
|
34
|
+
period: Period.MONTH,
|
|
35
|
+
},
|
|
36
|
+
throttle: {
|
|
37
|
+
rateLimit: 100,
|
|
38
|
+
burstLimit: 200,
|
|
39
|
+
},
|
|
40
|
+
usagePlanName: 'WebSocketUsagePlan',
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const webSocketStage2 = new WebSocketStage(stack, 'WebSocketStage2', {
|
|
44
|
+
webSocketApi,
|
|
45
|
+
stageName: 'dev2',
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
usagePlan.addApiKey(apiKey);
|
|
49
|
+
usagePlan.addApiStage({ api: webSocketApi, stage: webSocketStage2 });
|
|
50
|
+
|
|
51
|
+
const webSocketStage3 = new WebSocketStage(stack, 'WebSocketStage3', {
|
|
52
|
+
webSocketApi,
|
|
53
|
+
stageName: 'dev3',
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
new RateLimitedApiKey(stack, 'RateLimitedApiKey', {
|
|
57
|
+
apiKeyName: 'my-rate-limited-api-key',
|
|
58
|
+
value: 'MyRateLimitedApiKeyThatIsAtLeast20Characters',
|
|
59
|
+
description: 'Basic rate-limited-api-key',
|
|
60
|
+
customerId: 'my-customer',
|
|
61
|
+
enabled: true,
|
|
62
|
+
generateDistinctId: true,
|
|
63
|
+
apiStages: [{
|
|
64
|
+
api: webSocketApi,
|
|
65
|
+
stage: webSocketStage3,
|
|
66
|
+
}],
|
|
67
|
+
quota: {
|
|
68
|
+
limit: 10000,
|
|
69
|
+
offset: 1,
|
|
70
|
+
period: Period.MONTH,
|
|
71
|
+
},
|
|
72
|
+
throttle: {
|
|
73
|
+
rateLimit: 100,
|
|
74
|
+
burstLimit: 200,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
new integ.IntegTest(app, 'WebSocketUsagePlanInteg', {
|
|
79
|
+
testCases: [stack],
|
|
80
|
+
});
|
|
@@ -1177,7 +1177,7 @@ const version = fn.currentVersion;
|
|
|
1177
1177
|
You can use Application AutoScaling to automatically configure the provisioned concurrency for your functions. AutoScaling can be set to track utilization or be based on a schedule. To configure AutoScaling on a function alias:
|
|
1178
1178
|
|
|
1179
1179
|
```ts
|
|
1180
|
-
import * as
|
|
1180
|
+
import * as appscaling from 'aws-cdk-lib/aws-applicationautoscaling';
|
|
1181
1181
|
|
|
1182
1182
|
declare const fn: lambda.Function;
|
|
1183
1183
|
const alias = fn.addAlias('prod');
|
|
@@ -1192,7 +1192,7 @@ as.scaleOnUtilization({
|
|
|
1192
1192
|
|
|
1193
1193
|
// Configure Scheduled Scaling
|
|
1194
1194
|
as.scaleOnSchedule('ScaleUpInTheMorning', {
|
|
1195
|
-
schedule:
|
|
1195
|
+
schedule: appscaling.Schedule.cron({ hour: '8', minute: '0'}),
|
|
1196
1196
|
minCapacity: 20,
|
|
1197
1197
|
});
|
|
1198
1198
|
```
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as cdk from 'aws-cdk-lib';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
4
|
+
import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment';
|
|
5
|
+
import * as ssm from 'aws-cdk-lib/aws-ssm';
|
|
6
|
+
import * as integ from '@aws-cdk/integ-tests-alpha';
|
|
7
|
+
|
|
8
|
+
class SsmStack extends cdk.NestedStack {
|
|
9
|
+
public readonly ssmParam: ssm.StringListParameter;
|
|
10
|
+
|
|
11
|
+
constructor(scope: Construct, id: string, props?: cdk.NestedStackProps) {
|
|
12
|
+
super(scope, id, props);
|
|
13
|
+
|
|
14
|
+
const testSubnets = ['subnet-12345', 'subnet-67890'];
|
|
15
|
+
|
|
16
|
+
this.ssmParam = new ssm.StringListParameter(this, 'TestParam', {
|
|
17
|
+
parameterName: '/repro/subnets',
|
|
18
|
+
stringListValue: testSubnets,
|
|
19
|
+
description: 'Test parameter for reproduction',
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class S3Stack extends cdk.NestedStack {
|
|
25
|
+
public readonly bucket: s3.Bucket;
|
|
26
|
+
|
|
27
|
+
constructor(scope: Construct, id: string, props?: cdk.NestedStackProps) {
|
|
28
|
+
super(scope, id, props);
|
|
29
|
+
|
|
30
|
+
const readParam = ssm.StringListParameter.fromStringListParameterName(
|
|
31
|
+
this,
|
|
32
|
+
'ReadParam',
|
|
33
|
+
'/repro/subnets',
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
this.bucket = new s3.Bucket(this, 'ReproBucket', {
|
|
37
|
+
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
38
|
+
autoDeleteObjects: true,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
new s3deploy.BucketDeployment(this, 'ReproDeployment', {
|
|
42
|
+
sources: [
|
|
43
|
+
s3deploy.Source.jsonData('config.json', {
|
|
44
|
+
subnets: readParam.stringListValue,
|
|
45
|
+
expectedValues: ['subnet-12345', 'subnet-67890'],
|
|
46
|
+
version: '2.207.0',
|
|
47
|
+
issue: 'StringListParameter tokens not resolved in Source.jsonData',
|
|
48
|
+
timestamp: new Date().toISOString(),
|
|
49
|
+
}),
|
|
50
|
+
],
|
|
51
|
+
destinationBucket: this.bucket,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export class MainStack extends cdk.Stack {
|
|
57
|
+
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
|
58
|
+
super(scope, id, props);
|
|
59
|
+
|
|
60
|
+
const ssmStack = new SsmStack(this, 'SsmStack');
|
|
61
|
+
const s3Stack = new S3Stack(this, 'S3Stack');
|
|
62
|
+
s3Stack.addDependency(ssmStack);
|
|
63
|
+
|
|
64
|
+
new cdk.CfnOutput(this, 'BucketName', {
|
|
65
|
+
value: s3Stack.bucket.bucketName,
|
|
66
|
+
description: 'Check config.json in this bucket',
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
new cdk.CfnOutput(this, 'ParameterName', {
|
|
70
|
+
value: ssmStack.ssmParam.parameterName,
|
|
71
|
+
description: 'SSM parameter name',
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
new cdk.CfnOutput(this, 'ExpectedValues', {
|
|
75
|
+
value: JSON.stringify(['subnet-12345', 'subnet-67890']),
|
|
76
|
+
description: 'Expected subnet values in config.json',
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
new cdk.CfnOutput(this, 'VerificationCommand', {
|
|
80
|
+
value: `aws s3 cp s3://${s3Stack.bucket.bucketName}/config.json - | jq .`,
|
|
81
|
+
description: 'Command to check the deployed JSON',
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const app = new cdk.App();
|
|
87
|
+
const stack = new MainStack(app, 'integ-bucket-deployment-cross-stack-ssm');
|
|
88
|
+
|
|
89
|
+
new integ.IntegTest(app, 'integ-bucket-deployment-cross-stack-ssm-source', {
|
|
90
|
+
testCases: [stack],
|
|
91
|
+
});
|
cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-signer/integ.signing-profile.ts
CHANGED
|
@@ -16,6 +16,11 @@ new signer.SigningProfile(stack, 'SigningProfileOCI', {
|
|
|
16
16
|
signatureValidity: cdk.Duration.days(60),
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
+
new signer.SigningProfile(stack, 'SigningProfileWithName', {
|
|
20
|
+
platform: signer.Platform.AWS_LAMBDA_SHA384_ECDSA,
|
|
21
|
+
signingProfileName: 'test-signing-profile-name',
|
|
22
|
+
});
|
|
23
|
+
|
|
19
24
|
new IntegTest(app, 'cdk-integ-signer-signing-profile', {
|
|
20
25
|
testCases: [stack],
|
|
21
26
|
});
|
cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-stepfunctions-tasks/README.md
CHANGED
|
@@ -34,6 +34,8 @@ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aw
|
|
|
34
34
|
- [SubmitJob](#submitjob)
|
|
35
35
|
- [Bedrock](#bedrock)
|
|
36
36
|
- [InvokeModel](#invokemodel)
|
|
37
|
+
- [Using Input Path for S3 URI](#using-input-path-for-s3-uri)
|
|
38
|
+
- [Using Input Path](#using-input-path)
|
|
37
39
|
- [createModelCustomizationJob](#createmodelcustomizationjob)
|
|
38
40
|
- [CodeBuild](#codebuild)
|
|
39
41
|
- [StartBuild](#startbuild)
|
|
@@ -47,6 +49,7 @@ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aw
|
|
|
47
49
|
- [RunTask](#runtask)
|
|
48
50
|
- [EC2](#ec2)
|
|
49
51
|
- [Fargate](#fargate)
|
|
52
|
+
- [Override CPU and Memory Parameter](#override-cpu-and-memory-parameter)
|
|
50
53
|
- [ECS enable Exec](#ecs-enable-exec)
|
|
51
54
|
- [EMR](#emr)
|
|
52
55
|
- [Create Cluster](#create-cluster)
|
|
@@ -64,15 +67,18 @@ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aw
|
|
|
64
67
|
- [Call](#call)
|
|
65
68
|
- [EventBridge](#eventbridge)
|
|
66
69
|
- [Put Events](#put-events)
|
|
70
|
+
- [EventBridge Scheduler](#eventbridge-scheduler)
|
|
71
|
+
- [Create Scheduler](#create-scheduler)
|
|
67
72
|
- [Glue](#glue)
|
|
68
73
|
- [StartJobRun](#startjobrun)
|
|
69
74
|
- [StartCrawlerRun](#startcrawlerrun)
|
|
70
75
|
- [Glue DataBrew](#glue-databrew)
|
|
71
76
|
- [Start Job Run](#start-job-run-1)
|
|
77
|
+
- [Invoke HTTP API](#invoke-http-api)
|
|
72
78
|
- [Lambda](#lambda)
|
|
73
79
|
- [Invoke](#invoke)
|
|
74
80
|
- [MediaConvert](#mediaconvert)
|
|
75
|
-
- [
|
|
81
|
+
- [CreateJob](#createjob)
|
|
76
82
|
- [SageMaker](#sagemaker)
|
|
77
83
|
- [Create Training Job](#create-training-job)
|
|
78
84
|
- [Create Transform Job](#create-transform-job)
|
|
@@ -1315,12 +1321,12 @@ The following code snippet includes a Task state that uses eks:call to list the
|
|
|
1315
1321
|
|
|
1316
1322
|
```ts
|
|
1317
1323
|
import * as eks from 'aws-cdk-lib/aws-eks';
|
|
1318
|
-
import {
|
|
1324
|
+
import { KubectlV33Layer } from '@aws-cdk/lambda-layer-kubectl-v33';
|
|
1319
1325
|
|
|
1320
1326
|
const myEksCluster = new eks.Cluster(this, 'my sample cluster', {
|
|
1321
1327
|
version: eks.KubernetesVersion.V1_32,
|
|
1322
1328
|
clusterName: 'myEksCluster',
|
|
1323
|
-
kubectlLayer: new
|
|
1329
|
+
kubectlLayer: new KubectlV33Layer(this, 'kubectl'),
|
|
1324
1330
|
});
|
|
1325
1331
|
|
|
1326
1332
|
new tasks.EksCall(this, 'Call a EKS Endpoint', {
|