konokenj.cdk-api-mcp-server 0.67.0__py3-none-any.whl → 0.68.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.
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2025-present Kenji Kono <konoken@amazon.co.jp>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.67.0"
4
+ __version__ = "0.68.0"
@@ -1168,6 +1168,39 @@ const lambdaRole = new iam.Role(this, "LambdaRole", {
1168
1168
  gateway.grantInvoke(lambdaRole);
1169
1169
  ```
1170
1170
 
1171
+ **Cognito with M2M (Machine-to-Machine) Authentication (Default)** – When no authorizer is specified, the construct automatically creates a Cognito User Pool configured for OAuth 2.0 client credentials flow. This enables machine-to-machine authentication suitable for AI agents and service-to-service communication.
1172
+
1173
+ For more information, see [Setting up Amazon Cognito for Gateway inbound authorization](https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/identity-idp-cognito.html).
1174
+
1175
+ ```typescript fixture=default
1176
+ // Create a gateway with default Cognito M2M authorizer
1177
+ const gateway = new agentcore.Gateway(this, "MyGateway", {
1178
+ gatewayName: "my-gateway",
1179
+ });
1180
+
1181
+ // Access the Cognito resources for authentication setup
1182
+ const userPool = gateway.userPool;
1183
+ const userPoolClient = gateway.userPoolClient;
1184
+
1185
+ // Get the token endpoint URL and OAuth scopes for client credentials flow
1186
+ const tokenEndpointUrl = gateway.tokenEndpointUrl;
1187
+ const oauthScopes = gateway.oauthScopes;
1188
+ // oauthScopes are in the format: ['{resourceServerId}/read', '{resourceServerId}/write']
1189
+ ```
1190
+
1191
+ To authenticate with the gateway, request an access token using the client credentials flow and use it to call Gateway endpoints. For more information about the token endpoint, see [The token issuer endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html).
1192
+
1193
+ The following is an example of a token request using curl:
1194
+
1195
+ ```bash
1196
+ curl -X POST "${TOKEN_ENDPOINT_URL}" \
1197
+ -H "Content-Type: application/x-www-form-urlencoded" \
1198
+ -d "grant_type=client_credentials" \
1199
+ -d "client_id=${USER_POOL_CLIENT_ID}" \
1200
+ -d "client_secret=${CLIENT_SECRET}" \
1201
+ -d "scope=${OAUTH_SCOPES}"
1202
+ ```
1203
+
1171
1204
  ### Gateway with KMS Encryption
1172
1205
 
1173
1206
  You can provide a KMS key, and configure the authorizer as well as the protocol configuration.
@@ -207,7 +207,7 @@ all certificates. This metric is emitted by AWS Certificates Manager once per
207
207
  day until the certificate has effectively expired.
208
208
 
209
209
  An alarm can be created to determine whether a certificate is soon due for
210
- renewal ussing the following code:
210
+ renewal using the following code:
211
211
 
212
212
  ```ts
213
213
  import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
@@ -94,6 +94,10 @@ class FakePipeline extends cdk.Resource implements sagemaker.IPipeline {
94
94
  });
95
95
  }
96
96
 
97
+ public get pipelineRef(): cdk.aws_sagemaker.PipelineReference {
98
+ return { pipelineName: this.pipelineName };
99
+ }
100
+
97
101
  public grantStartPipelineExecution(grantee: IGrantable): Grant {
98
102
  return Grant.addToPrincipal({
99
103
  grantee,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: konokenj.cdk-api-mcp-server
3
- Version: 0.67.0
3
+ Version: 0.68.0
4
4
  Summary: An MCP server provides AWS CDK API Reference
5
5
  Project-URL: Documentation, https://github.com/konokenj/cdk-api-mcp-server#readme
6
6
  Project-URL: Issues, https://github.com/konokenj/cdk-api-mcp-server/issues
@@ -26,7 +26,7 @@ Description-Content-Type: text/markdown
26
26
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/konokenj.cdk-api-mcp-server.svg)](https://pypi.org/project/konokenj.cdk-api-mcp-server)
27
27
 
28
28
  <!-- DEP-VERSIONS-START -->
29
- [![aws-cdk](https://img.shields.io/badge/aws%20cdk-v2.233.0-blue.svg)](https://github.com/konokenj/cdk-api-mcp-server/blob/main/current-versions/aws-cdk.txt)
29
+ [![aws-cdk](https://img.shields.io/badge/aws%20cdk-v2.234.0-blue.svg)](https://github.com/konokenj/cdk-api-mcp-server/blob/main/current-versions/aws-cdk.txt)
30
30
  <!-- DEP-VERSIONS-END -->
31
31
 
32
32
  ---
@@ -1,4 +1,4 @@
1
- cdk_api_mcp_server/__about__.py,sha256=LZM9iy6D3DlaqtECpeJmOhCMVfw-dwfUrV_RgNeH0U8,129
1
+ cdk_api_mcp_server/__about__.py,sha256=RnJCYoUKmHNyDzJlB28Uadn9LT5PX5z7bhMqoAWh2Yk,129
2
2
  cdk_api_mcp_server/__init__.py,sha256=yJA6yIEhJviC-qNlB-nC6UR1JblQci_d84i-viHZkc0,187
3
3
  cdk_api_mcp_server/models.py,sha256=cMS1Hi29M41YjuBxqqrzNrNvyG3MgnUBb1SqYpMCJ30,692
4
4
  cdk_api_mcp_server/resources.py,sha256=R7LVwn29I4BJzU5XAwKbX8j6uy-3ZxcB1b0HzZ_Z2PI,6689
@@ -9,7 +9,7 @@ cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/app-staging-synthesizer
9
9
  cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/aws-amplify-alpha/README.md,sha256=OIdszebPa0EqMIaHhqWgH6A64AcwQioIKC-NHDyZKrI,12636
10
10
  cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/aws-applicationsignals-alpha/README.md,sha256=6nqc-WbHB1iFE3vXDr6hyQs8tYS6wwnWutXePY4EF4w,10873
11
11
  cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/aws-apprunner-alpha/README.md,sha256=Jtm3RbnP4jQy8BYXwHvaRbMKizUjr4SqvimVMYhu6WQ,11982
12
- cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/aws-bedrock-agentcore-alpha/README.md,sha256=b4dhNEqFmFJX9RMZ1eOioJRtFZYh0AKogNVygoVtugs,96994
12
+ cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/aws-bedrock-agentcore-alpha/README.md,sha256=tpJeJiIOCr4QM7iFE5p_fiqZRuzmTlrSO8l0de1MNcA,98682
13
13
  cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/aws-bedrock-alpha/README.md,sha256=ZFThRraeK0rx1CF2foaEDzKsWxL1Qb9yqpCFM8eKvIo,65269
14
14
  cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/aws-cloud9-alpha/README.md,sha256=0N8kldvHAKsNQHKtsj8PaQywiDUVrd6rEwVNQV0equY,7718
15
15
  cdk_api_mcp_server/resources/aws-cdk/constructs/@aws-cdk/aws-codestar-alpha/README.md,sha256=J-c-thqWwZFQT3Exjr_AY95BBgTA14Wb9aJ32gmEizQ,1509
@@ -219,7 +219,7 @@ cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-batch/integ.mana
219
219
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-batch/integ.multinode-job-definition.ts,sha256=Pq7iWINv6l5S8rG1b1bGcg7313HRNee7vL_IPGsn0l8,1516
220
220
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-batch/integ.unmanaged-compute-environment.ts,sha256=o5_ft9zLQXu9TTJqYTT0phaLt7AdqLgHMIO2r4Wh8T0,856
221
221
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-bedrock/README.md,sha256=KvYAx_cPnhtqCPSsri3WKj3BIgko2C3fIPjMteQc9uw,1486
222
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-certificatemanager/README.md,sha256=lSK9xgW5mEXxYi07rqZkffoafKAj1xP7H6luI-4FNRg,8422
222
+ cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-certificatemanager/README.md,sha256=bhDI32VownDtCcTkarNK7oMabEcUUdjVTK095IYfmFM,8421
223
223
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-certificatemanager/integ.certificate-key-algorithm.ts,sha256=3JUtIlshjCtU6yqTZx2UXL9tRd4jom71WhqKXC6Bmxc,1881
224
224
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-certificatemanager/integ.certificate-name.ts,sha256=pzjlGsHvNGr4czBPdbckXzCCcN3tAUEhk2Q_lnjvC5Q,1617
225
225
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-certificatemanager/integ.dns-validated-certificate.ts,sha256=jFFief8u2XnDRYSMtGW5b9fHt7EirOn8y_5-7C7QSCA,2675
@@ -1211,7 +1211,7 @@ cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-target
1211
1211
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-targets/integ.inspector-start-assessment-run.ts,sha256=AZVSX2axSECFCr8jG9RZebynpTVIj1Tq5w2nUfzbLiY,2235
1212
1212
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-targets/integ.kinesis-stream-put-record.ts,sha256=e47G-zv_jWaiyWMViA5d4RXD092iiveCQH6XAjxzI3U,2020
1213
1213
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-targets/integ.lambda-invoke.ts,sha256=hgDy8V7jKWzLQB95Qjh56BXvz4-CaR4zqVMRpnw6nvs,5248
1214
- cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-targets/integ.sage-maker-start-pipeline-execution.ts,sha256=sQsloCg-WSjOV7q4wyNsXB6zwMl-i1hkB0MUCrE_4qU,4537
1214
+ cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-targets/integ.sage-maker-start-pipeline-execution.ts,sha256=vAW12Pu3DledKGfX5wajZgmlnN28sWEjjQ7hrqSdmZA,4656
1215
1215
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-targets/integ.schedule-with-dlq.ts,sha256=UZ1dkYfkql1auhrdAn5tY328zJBTmzrlnJKbwwtrp9s,2020
1216
1216
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-targets/integ.sns-publish.ts,sha256=Q8FOMVAbEePNal1QLFSCQWbAaRBs_Ge1bGfiXfln08o,1558
1217
1217
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/aws-scheduler-targets/integ.sqs-send-message.ts,sha256=9_jsMvF2Ieueci6nLr86F5M5n6suTsj8gVOhV8bd3bM,1456
@@ -1480,8 +1480,8 @@ cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/pipelines/integ.pipe
1480
1480
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/region-info/README.md,sha256=vewWkV3ds9o9iyyYaJBNTkaKJ2XA6K2yF17tAxUnujg,2718
1481
1481
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/triggers/README.md,sha256=hYIx7DbG_7p4LYLUfxDwgIQjw9UNdz1GLrqDe8_Dbko,4132
1482
1482
  cdk_api_mcp_server/resources/aws-cdk/constructs/aws-cdk-lib/triggers/integ.triggers.ts,sha256=LfeVru_CggiFXKPVa8vwt6Uv43SV3oAioDGmd8PyMHc,2859
1483
- konokenj_cdk_api_mcp_server-0.67.0.dist-info/METADATA,sha256=4nA6kv8P9CunqYYPAPm2zvAtxI0fkQUzWZ4wvbSr9L8,2646
1484
- konokenj_cdk_api_mcp_server-0.67.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
1485
- konokenj_cdk_api_mcp_server-0.67.0.dist-info/entry_points.txt,sha256=bVDhMdyCC1WNMPOMbmB82jvWII2CIrwTZDygdCf0cYQ,79
1486
- konokenj_cdk_api_mcp_server-0.67.0.dist-info/licenses/LICENSE.txt,sha256=5OIAASeg1HM22mVZ1enz9bgZ7TlsGfWXnj02P9OgFyk,1098
1487
- konokenj_cdk_api_mcp_server-0.67.0.dist-info/RECORD,,
1483
+ konokenj_cdk_api_mcp_server-0.68.0.dist-info/METADATA,sha256=t9iogwMltAAxxPA6_Qu5tx-V6x03ySOho_RBSWOtwvk,2646
1484
+ konokenj_cdk_api_mcp_server-0.68.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
1485
+ konokenj_cdk_api_mcp_server-0.68.0.dist-info/entry_points.txt,sha256=bVDhMdyCC1WNMPOMbmB82jvWII2CIrwTZDygdCf0cYQ,79
1486
+ konokenj_cdk_api_mcp_server-0.68.0.dist-info/licenses/LICENSE.txt,sha256=5OIAASeg1HM22mVZ1enz9bgZ7TlsGfWXnj02P9OgFyk,1098
1487
+ konokenj_cdk_api_mcp_server-0.68.0.dist-info/RECORD,,