Skip to content

Commit c3b83d4

Browse files
author
awstools
committed
feat(client-bedrock-agentcore-control): Adding support for authorizer type AWS_IAM to AgentCore Control Gateway.
1 parent 136894b commit c3b83d4

File tree

6 files changed

+17
-12
lines changed

6 files changed

+17
-12
lines changed

clients/client-bedrock-agentcore-control/src/commands/CreateGatewayCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface CreateGatewayCommandOutput extends CreateGatewayResponse, __Met
6161
* searchType: "SEMANTIC",
6262
* },
6363
* },
64-
* authorizerType: "CUSTOM_JWT", // required
64+
* authorizerType: "CUSTOM_JWT" || "AWS_IAM", // required
6565
* authorizerConfiguration: { // AuthorizerConfiguration Union: only one key present
6666
* customJWTAuthorizer: { // CustomJWTAuthorizerConfiguration
6767
* discoveryUrl: "STRING_VALUE", // required
@@ -104,7 +104,7 @@ export interface CreateGatewayCommandOutput extends CreateGatewayResponse, __Met
104104
* // searchType: "SEMANTIC",
105105
* // },
106106
* // },
107-
* // authorizerType: "CUSTOM_JWT", // required
107+
* // authorizerType: "CUSTOM_JWT" || "AWS_IAM", // required
108108
* // authorizerConfiguration: { // AuthorizerConfiguration Union: only one key present
109109
* // customJWTAuthorizer: { // CustomJWTAuthorizerConfiguration
110110
* // discoveryUrl: "STRING_VALUE", // required

clients/client-bedrock-agentcore-control/src/commands/GetGatewayCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface GetGatewayCommandOutput extends GetGatewayResponse, __MetadataB
6969
* // searchType: "SEMANTIC",
7070
* // },
7171
* // },
72-
* // authorizerType: "CUSTOM_JWT", // required
72+
* // authorizerType: "CUSTOM_JWT" || "AWS_IAM", // required
7373
* // authorizerConfiguration: { // AuthorizerConfiguration Union: only one key present
7474
* // customJWTAuthorizer: { // CustomJWTAuthorizerConfiguration
7575
* // discoveryUrl: "STRING_VALUE", // required

clients/client-bedrock-agentcore-control/src/commands/ListGatewaysCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export interface ListGatewaysCommandOutput extends ListGatewaysResponse, __Metad
5656
* // description: "STRING_VALUE",
5757
* // createdAt: new Date("TIMESTAMP"), // required
5858
* // updatedAt: new Date("TIMESTAMP"), // required
59-
* // authorizerType: "CUSTOM_JWT", // required
59+
* // authorizerType: "CUSTOM_JWT" || "AWS_IAM", // required
6060
* // protocolType: "MCP", // required
6161
* // },
6262
* // ],

clients/client-bedrock-agentcore-control/src/commands/UpdateGatewayCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface UpdateGatewayCommandOutput extends UpdateGatewayResponse, __Met
6161
* searchType: "SEMANTIC",
6262
* },
6363
* },
64-
* authorizerType: "CUSTOM_JWT", // required
64+
* authorizerType: "CUSTOM_JWT" || "AWS_IAM", // required
6565
* authorizerConfiguration: { // AuthorizerConfiguration Union: only one key present
6666
* customJWTAuthorizer: { // CustomJWTAuthorizerConfiguration
6767
* discoveryUrl: "STRING_VALUE", // required
@@ -101,7 +101,7 @@ export interface UpdateGatewayCommandOutput extends UpdateGatewayResponse, __Met
101101
* // searchType: "SEMANTIC",
102102
* // },
103103
* // },
104-
* // authorizerType: "CUSTOM_JWT", // required
104+
* // authorizerType: "CUSTOM_JWT" || "AWS_IAM", // required
105105
* // authorizerConfiguration: { // AuthorizerConfiguration Union: only one key present
106106
* // customJWTAuthorizer: { // CustomJWTAuthorizerConfiguration
107107
* // discoveryUrl: "STRING_VALUE", // required

clients/client-bedrock-agentcore-control/src/models/models_0.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,6 +2397,7 @@ export interface ListCodeInterpretersResponse {
23972397
* @enum
23982398
*/
23992399
export const AuthorizerType = {
2400+
AWS_IAM: "AWS_IAM",
24002401
CUSTOM_JWT: "CUSTOM_JWT",
24012402
} as const;
24022403

@@ -2558,7 +2559,7 @@ export interface CreateGatewayRequest {
25582559
* <p>The authorizer configuration for the gateway.</p>
25592560
* @public
25602561
*/
2561-
authorizerConfiguration: AuthorizerConfiguration | undefined;
2562+
authorizerConfiguration?: AuthorizerConfiguration | undefined;
25622563

25632564
/**
25642565
* <p>The Amazon Resource Name (ARN) of the KMS key used to encrypt data associated with the gateway.</p>
@@ -2994,7 +2995,7 @@ export interface UpdateGatewayRequest {
29942995
* <p>The updated authorizer configuration for the gateway.</p>
29952996
* @public
29962997
*/
2997-
authorizerConfiguration: AuthorizerConfiguration | undefined;
2998+
authorizerConfiguration?: AuthorizerConfiguration | undefined;
29982999

29993000
/**
30003001
* <p>The updated ARN of the KMS key used to encrypt the gateway.</p>

codegen/sdk-codegen/aws-models/bedrock-agentcore-control.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,12 @@
12791279
"traits": {
12801280
"smithy.api#enumValue": "CUSTOM_JWT"
12811281
}
1282+
},
1283+
"AWS_IAM": {
1284+
"target": "smithy.api#Unit",
1285+
"traits": {
1286+
"smithy.api#enumValue": "AWS_IAM"
1287+
}
12821288
}
12831289
}
12841290
},
@@ -2470,8 +2476,7 @@
24702476
"authorizerConfiguration": {
24712477
"target": "com.amazonaws.bedrockagentcorecontrol#AuthorizerConfiguration",
24722478
"traits": {
2473-
"smithy.api#documentation": "<p>The authorizer configuration for the gateway.</p>",
2474-
"smithy.api#required": {}
2479+
"smithy.api#documentation": "<p>The authorizer configuration for the gateway.</p>"
24752480
}
24762481
},
24772482
"kmsKeyArn": {
@@ -10144,8 +10149,7 @@
1014410149
"authorizerConfiguration": {
1014510150
"target": "com.amazonaws.bedrockagentcorecontrol#AuthorizerConfiguration",
1014610151
"traits": {
10147-
"smithy.api#documentation": "<p>The updated authorizer configuration for the gateway.</p>",
10148-
"smithy.api#required": {}
10152+
"smithy.api#documentation": "<p>The updated authorizer configuration for the gateway.</p>"
1014910153
}
1015010154
},
1015110155
"kmsKeyArn": {

0 commit comments

Comments
 (0)