Skip to content

Commit 2f41c1a

Browse files
author
awstools
committed
feat(client-medical-imaging): Added support for OpenID Connect (OIDC) custom authorizer
1 parent 8af9fd5 commit 2f41c1a

File tree

10 files changed

+72
-11
lines changed

10 files changed

+72
-11
lines changed

clients/client-medical-imaging/src/commands/CopyImageSetCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export interface CopyImageSetCommandOutput extends CopyImageSetResponse, __Metad
6161
* // imageSetId: "STRING_VALUE", // required
6262
* // latestVersionId: "STRING_VALUE", // required
6363
* // imageSetState: "ACTIVE" || "LOCKED" || "DELETED",
64-
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED",
64+
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED" || "IMPORTING" || "IMPORTED" || "IMPORT_FAILED",
6565
* // createdAt: new Date("TIMESTAMP"),
6666
* // updatedAt: new Date("TIMESTAMP"),
6767
* // imageSetArn: "STRING_VALUE",
@@ -70,7 +70,7 @@ export interface CopyImageSetCommandOutput extends CopyImageSetResponse, __Metad
7070
* // imageSetId: "STRING_VALUE", // required
7171
* // latestVersionId: "STRING_VALUE", // required
7272
* // imageSetState: "ACTIVE" || "LOCKED" || "DELETED",
73-
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED",
73+
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED" || "IMPORTING" || "IMPORTED" || "IMPORT_FAILED",
7474
* // createdAt: new Date("TIMESTAMP"),
7575
* // updatedAt: new Date("TIMESTAMP"),
7676
* // imageSetArn: "STRING_VALUE",

clients/client-medical-imaging/src/commands/CreateDatastoreCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export interface CreateDatastoreCommandOutput extends CreateDatastoreResponse, _
4242
* "<keys>": "STRING_VALUE",
4343
* },
4444
* kmsKeyArn: "STRING_VALUE",
45+
* lambdaAuthorizerArn: "STRING_VALUE",
4546
* };
4647
* const command = new CreateDatastoreCommand(input);
4748
* const response = await client.send(command);
@@ -67,6 +68,9 @@ export interface CreateDatastoreCommandOutput extends CreateDatastoreResponse, _
6768
* @throws {@link InternalServerException} (server fault)
6869
* <p>An unexpected error occurred during processing of the request.</p>
6970
*
71+
* @throws {@link ResourceNotFoundException} (client fault)
72+
* <p>The request references a resource which does not exist.</p>
73+
*
7074
* @throws {@link ServiceQuotaExceededException} (client fault)
7175
* <p>The request caused a service quota to be exceeded.</p>
7276
*

clients/client-medical-imaging/src/commands/DeleteImageSetCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface DeleteImageSetCommandOutput extends DeleteImageSetResponse, __M
4545
* // datastoreId: "STRING_VALUE", // required
4646
* // imageSetId: "STRING_VALUE", // required
4747
* // imageSetState: "ACTIVE" || "LOCKED" || "DELETED", // required
48-
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED", // required
48+
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED" || "IMPORTING" || "IMPORTED" || "IMPORT_FAILED", // required
4949
* // };
5050
*
5151
* ```

clients/client-medical-imaging/src/commands/GetDatastoreCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface GetDatastoreCommandOutput extends GetDatastoreResponse, __Metad
4646
* // datastoreName: "STRING_VALUE", // required
4747
* // datastoreStatus: "CREATING" || "CREATE_FAILED" || "ACTIVE" || "DELETING" || "DELETED", // required
4848
* // kmsKeyArn: "STRING_VALUE",
49+
* // lambdaAuthorizerArn: "STRING_VALUE",
4950
* // datastoreArn: "STRING_VALUE",
5051
* // createdAt: new Date("TIMESTAMP"),
5152
* // updatedAt: new Date("TIMESTAMP"),

clients/client-medical-imaging/src/commands/GetImageSetCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface GetImageSetCommandOutput extends GetImageSetResponse, __Metadat
4747
* // imageSetId: "STRING_VALUE", // required
4848
* // versionId: "STRING_VALUE", // required
4949
* // imageSetState: "ACTIVE" || "LOCKED" || "DELETED", // required
50-
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED",
50+
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED" || "IMPORTING" || "IMPORTED" || "IMPORT_FAILED",
5151
* // createdAt: new Date("TIMESTAMP"),
5252
* // updatedAt: new Date("TIMESTAMP"),
5353
* // deletedAt: new Date("TIMESTAMP"),

clients/client-medical-imaging/src/commands/ListImageSetVersionsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface ListImageSetVersionsCommandOutput extends ListImageSetVersionsR
4949
* // imageSetId: "STRING_VALUE", // required
5050
* // versionId: "STRING_VALUE", // required
5151
* // imageSetState: "ACTIVE" || "LOCKED" || "DELETED", // required
52-
* // ImageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED",
52+
* // ImageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED" || "IMPORTING" || "IMPORTED" || "IMPORT_FAILED",
5353
* // createdAt: new Date("TIMESTAMP"),
5454
* // updatedAt: new Date("TIMESTAMP"),
5555
* // deletedAt: new Date("TIMESTAMP"),

clients/client-medical-imaging/src/commands/UpdateImageSetMetadataCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface UpdateImageSetMetadataCommandOutput extends UpdateImageSetMetad
5959
* // imageSetId: "STRING_VALUE", // required
6060
* // latestVersionId: "STRING_VALUE", // required
6161
* // imageSetState: "ACTIVE" || "LOCKED" || "DELETED", // required
62-
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED",
62+
* // imageSetWorkflowStatus: "CREATED" || "COPIED" || "COPYING" || "COPYING_WITH_READ_ONLY_ACCESS" || "COPY_FAILED" || "UPDATING" || "UPDATED" || "UPDATE_FAILED" || "DELETING" || "DELETED" || "IMPORTING" || "IMPORTED" || "IMPORT_FAILED",
6363
* // createdAt: new Date("TIMESTAMP"),
6464
* // updatedAt: new Date("TIMESTAMP"),
6565
* // message: "STRING_VALUE",

clients/client-medical-imaging/src/models/models_0.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ export const ImageSetWorkflowStatus = {
173173
CREATED: "CREATED",
174174
DELETED: "DELETED",
175175
DELETING: "DELETING",
176+
IMPORTED: "IMPORTED",
177+
IMPORTING: "IMPORTING",
178+
IMPORT_FAILED: "IMPORT_FAILED",
176179
UPDATED: "UPDATED",
177180
UPDATE_FAILED: "UPDATE_FAILED",
178181
UPDATING: "UPDATING",
@@ -429,6 +432,12 @@ export interface CreateDatastoreRequest {
429432
* @public
430433
*/
431434
kmsKeyArn?: string | undefined;
435+
436+
/**
437+
* <p>The ARN of the authorizer's Lambda function.</p>
438+
* @public
439+
*/
440+
lambdaAuthorizerArn?: string | undefined;
432441
}
433442

434443
/**
@@ -533,6 +542,12 @@ export interface DatastoreProperties {
533542
*/
534543
kmsKeyArn?: string | undefined;
535544

545+
/**
546+
* <p>The ARN of the authorizer's Lambda function.</p>
547+
* @public
548+
*/
549+
lambdaAuthorizerArn?: string | undefined;
550+
536551
/**
537552
* <p>The Amazon Resource Name (ARN) for the data store.</p>
538553
* @public

clients/client-medical-imaging/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export const se_CreateDatastoreCommand = async (
154154
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
155155
datastoreName: [],
156156
kmsKeyArn: [],
157+
lambdaAuthorizerArn: [],
157158
tags: (_) => _json(_),
158159
})
159160
);
@@ -1272,6 +1273,7 @@ const de_DatastoreProperties = (output: any, context: __SerdeContext): Datastore
12721273
datastoreName: __expectString,
12731274
datastoreStatus: __expectString,
12741275
kmsKeyArn: __expectString,
1276+
lambdaAuthorizerArn: __expectString,
12751277
updatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
12761278
}) as any;
12771279
};

codegen/sdk-codegen/aws-models/medical-imaging.json

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,9 @@
10751075
{
10761076
"target": "com.amazonaws.medicalimaging#InternalServerException"
10771077
},
1078+
{
1079+
"target": "com.amazonaws.medicalimaging#ResourceNotFoundException"
1080+
},
10781081
{
10791082
"target": "com.amazonaws.medicalimaging#ServiceQuotaExceededException"
10801083
},
@@ -1123,6 +1126,12 @@
11231126
"traits": {
11241127
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) assigned to the Key Management Service (KMS) key for accessing encrypted data.</p>"
11251128
}
1129+
},
1130+
"lambdaAuthorizerArn": {
1131+
"target": "com.amazonaws.medicalimaging#LambdaArn",
1132+
"traits": {
1133+
"smithy.api#documentation": "<p>The ARN of the authorizer's Lambda function.</p>"
1134+
}
11261135
}
11271136
},
11281137
"traits": {
@@ -1318,7 +1327,7 @@
13181327
"smithy.api#default": 0,
13191328
"smithy.api#range": {
13201329
"min": 0,
1321-
"max": 10000
1330+
"max": 1000000
13221331
}
13231332
}
13241333
},
@@ -1389,7 +1398,7 @@
13891398
"min": 0,
13901399
"max": 256
13911400
},
1392-
"smithy.api#pattern": "^(?:[0-9][0-9]*|0)(\\.(?:[1-9][0-9]*|0))*$",
1401+
"smithy.api#pattern": "^(?:[0-9][0-9]*|0)(\\.(?:[0-9][0-9]*|0))*$",
13931402
"smithy.api#sensitive": {}
13941403
}
13951404
},
@@ -1449,7 +1458,7 @@
14491458
"traits": {
14501459
"smithy.api#length": {
14511460
"min": 0,
1452-
"max": 64
1461+
"max": 256
14531462
},
14541463
"smithy.api#sensitive": {}
14551464
}
@@ -1459,7 +1468,7 @@
14591468
"traits": {
14601469
"smithy.api#length": {
14611470
"min": 0,
1462-
"max": 16
1471+
"max": 256
14631472
},
14641473
"smithy.api#sensitive": {}
14651474
}
@@ -1471,7 +1480,7 @@
14711480
"min": 0,
14721481
"max": 256
14731482
},
1474-
"smithy.api#pattern": "^(?:[0-9][0-9]*|0)(\\.(?:[1-9][0-9]*|0))*$",
1483+
"smithy.api#pattern": "^(?:[0-9][0-9]*|0)(\\.(?:[0-9][0-9]*|0))*$",
14751484
"smithy.api#sensitive": {}
14761485
}
14771486
},
@@ -1657,6 +1666,12 @@
16571666
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) assigned to the Key Management Service (KMS) key for accessing encrypted data.</p>"
16581667
}
16591668
},
1669+
"lambdaAuthorizerArn": {
1670+
"target": "com.amazonaws.medicalimaging#LambdaArn",
1671+
"traits": {
1672+
"smithy.api#documentation": "<p>The ARN of the authorizer's Lambda function.</p>"
1673+
}
1674+
},
16601675
"datastoreArn": {
16611676
"target": "com.amazonaws.medicalimaging#Arn",
16621677
"traits": {
@@ -2684,6 +2699,24 @@
26842699
"traits": {
26852700
"smithy.api#enumValue": "DELETED"
26862701
}
2702+
},
2703+
"IMPORTING": {
2704+
"target": "smithy.api#Unit",
2705+
"traits": {
2706+
"smithy.api#enumValue": "IMPORTING"
2707+
}
2708+
},
2709+
"IMPORTED": {
2710+
"target": "smithy.api#Unit",
2711+
"traits": {
2712+
"smithy.api#enumValue": "IMPORTED"
2713+
}
2714+
},
2715+
"IMPORT_FAILED": {
2716+
"target": "smithy.api#Unit",
2717+
"traits": {
2718+
"smithy.api#enumValue": "IMPORT_FAILED"
2719+
}
26872720
}
26882721
}
26892722
},
@@ -2815,6 +2848,12 @@
28152848
"smithy.api#pattern": "^arn:aws[a-zA-Z-]{0,16}:kms:[a-z]{2}(-[a-z]{1,16}){1,3}-\\d{1}:\\d{12}:((key/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})|(alias/[a-zA-Z0-9:/_-]{1,256}))$"
28162849
}
28172850
},
2851+
"com.amazonaws.medicalimaging#LambdaArn": {
2852+
"type": "string",
2853+
"traits": {
2854+
"smithy.api#pattern": "^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$"
2855+
}
2856+
},
28182857
"com.amazonaws.medicalimaging#ListDICOMImportJobs": {
28192858
"type": "operation",
28202859
"input": {

0 commit comments

Comments
 (0)