Skip to content

Commit 4df90fe

Browse files
author
awstools
committed
feat(client-sagemaker): Introduced Scope and AuthenticationRequestExtraParams to SageMaker Workforce OIDC configuration; this allows customers to modify these options for their private Workforce IdP integration. Model Registry Cross-account model package groups are discoverable.
1 parent bc771ad commit 4df90fe

File tree

9 files changed

+149
-0
lines changed

9 files changed

+149
-0
lines changed

clients/client-sagemaker/src/commands/CreateWorkforceCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ export interface CreateWorkforceCommandOutput extends CreateWorkforceResponse, _
7070
* UserInfoEndpoint: "STRING_VALUE", // required
7171
* LogoutEndpoint: "STRING_VALUE", // required
7272
* JwksUri: "STRING_VALUE", // required
73+
* Scope: "STRING_VALUE",
74+
* AuthenticationRequestExtraParams: { // AuthenticationRequestExtraParams
75+
* "<keys>": "STRING_VALUE",
76+
* },
7377
* },
7478
* SourceIpConfig: { // SourceIpConfig
7579
* Cidrs: [ // Cidrs // required

clients/client-sagemaker/src/commands/DescribeWorkforceCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export interface DescribeWorkforceCommandOutput extends DescribeWorkforceRespons
6868
* // UserInfoEndpoint: "STRING_VALUE",
6969
* // LogoutEndpoint: "STRING_VALUE",
7070
* // JwksUri: "STRING_VALUE",
71+
* // Scope: "STRING_VALUE",
72+
* // AuthenticationRequestExtraParams: { // AuthenticationRequestExtraParams
73+
* // "<keys>": "STRING_VALUE",
74+
* // },
7175
* // },
7276
* // CreateDate: new Date("TIMESTAMP"),
7377
* // WorkforceVpcConfig: { // WorkforceVpcConfigResponse

clients/client-sagemaker/src/commands/ListModelPackageGroupsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface ListModelPackageGroupsCommandOutput extends ListModelPackageGro
4343
* NextToken: "STRING_VALUE",
4444
* SortBy: "Name" || "CreationTime",
4545
* SortOrder: "Ascending" || "Descending",
46+
* CrossAccountFilterOption: "SameAccount" || "CrossAccount",
4647
* };
4748
* const command = new ListModelPackageGroupsCommand(input);
4849
* const response = await client.send(command);

clients/client-sagemaker/src/commands/ListWorkforcesCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ export interface ListWorkforcesCommandOutput extends ListWorkforcesResponse, __M
6969
* // UserInfoEndpoint: "STRING_VALUE",
7070
* // LogoutEndpoint: "STRING_VALUE",
7171
* // JwksUri: "STRING_VALUE",
72+
* // Scope: "STRING_VALUE",
73+
* // AuthenticationRequestExtraParams: { // AuthenticationRequestExtraParams
74+
* // "<keys>": "STRING_VALUE",
75+
* // },
7276
* // },
7377
* // CreateDate: new Date("TIMESTAMP"),
7478
* // WorkforceVpcConfig: { // WorkforceVpcConfigResponse

clients/client-sagemaker/src/commands/UpdateWorkforceCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export interface UpdateWorkforceCommandOutput extends UpdateWorkforceResponse, _
8080
* UserInfoEndpoint: "STRING_VALUE", // required
8181
* LogoutEndpoint: "STRING_VALUE", // required
8282
* JwksUri: "STRING_VALUE", // required
83+
* Scope: "STRING_VALUE",
84+
* AuthenticationRequestExtraParams: { // AuthenticationRequestExtraParams
85+
* "<keys>": "STRING_VALUE",
86+
* },
8387
* },
8488
* WorkforceVpcConfig: { // WorkforceVpcConfigRequest
8589
* VpcId: "STRING_VALUE",
@@ -116,6 +120,10 @@ export interface UpdateWorkforceCommandOutput extends UpdateWorkforceResponse, _
116120
* // UserInfoEndpoint: "STRING_VALUE",
117121
* // LogoutEndpoint: "STRING_VALUE",
118122
* // JwksUri: "STRING_VALUE",
123+
* // Scope: "STRING_VALUE",
124+
* // AuthenticationRequestExtraParams: { // AuthenticationRequestExtraParams
125+
* // "<keys>": "STRING_VALUE",
126+
* // },
119127
* // },
120128
* // CreateDate: new Date("TIMESTAMP"),
121129
* // WorkforceVpcConfig: { // WorkforceVpcConfigResponse

clients/client-sagemaker/src/models/models_2.ts

+12
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,18 @@ export interface OidcConfig {
14281428
* @public
14291429
*/
14301430
JwksUri: string | undefined;
1431+
1432+
/**
1433+
* <p>An array of string identifiers used to refer to the specific pieces of user data or claims that the client application wants to access.</p>
1434+
* @public
1435+
*/
1436+
Scope?: string;
1437+
1438+
/**
1439+
* <p>A string to string map of identifiers specific to the custom identity provider (IdP) being used.</p>
1440+
* @public
1441+
*/
1442+
AuthenticationRequestExtraParams?: Record<string, string>;
14311443
}
14321444

14331445
/**

clients/client-sagemaker/src/models/models_3.ts

+23
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ import {
8585
} from "./models_1";
8686

8787
import {
88+
CrossAccountFilterOption,
8889
CustomizedMetricSpecification,
8990
DataCaptureConfigSummary,
9091
DataProcessing,
@@ -2240,6 +2241,18 @@ export interface OidcConfigForResponse {
22402241
* @public
22412242
*/
22422243
JwksUri?: string;
2244+
2245+
/**
2246+
* <p>An array of string identifiers used to refer to the specific pieces of user data or claims that the client application wants to access.</p>
2247+
* @public
2248+
*/
2249+
Scope?: string;
2250+
2251+
/**
2252+
* <p>A string to string map of identifiers specific to the custom identity provider (IdP) being used.</p>
2253+
* @public
2254+
*/
2255+
AuthenticationRequestExtraParams?: Record<string, string>;
22432256
}
22442257

22452258
/**
@@ -10010,6 +10023,16 @@ export interface ListModelPackageGroupsInput {
1001010023
* @public
1001110024
*/
1001210025
SortOrder?: SortOrder;
10026+
10027+
/**
10028+
* <p>A filter that returns either model groups shared with you or model groups in
10029+
* your own account. When the value is <code>CrossAccount</code>, the results show
10030+
* the resources made discoverable to you from other accounts. When the value is
10031+
* <code>SameAccount</code> or <code>null</code>, the results show resources from your
10032+
* account. The default is <code>SameAccount</code>.</p>
10033+
* @public
10034+
*/
10035+
CrossAccountFilterOption?: CrossAccountFilterOption;
1001310036
}
1001410037

1001510038
/**

clients/client-sagemaker/src/protocols/Aws_json1_1.ts

+18
Original file line numberDiff line numberDiff line change
@@ -12572,6 +12572,8 @@ const de_ResourceNotFoundRes = async (parsedOutput: any, context: __SerdeContext
1257212572

1257312573
// se_AttributeNames omitted.
1257412574

12575+
// se_AuthenticationRequestExtraParams omitted.
12576+
1257512577
// se_AutoMLAlgorithmConfig omitted.
1257612578

1257712579
// se_AutoMLAlgorithms omitted.
@@ -14504,6 +14506,7 @@ const se_ListModelPackageGroupsInput = (input: ListModelPackageGroupsInput, cont
1450414506
return take(input, {
1450514507
CreationTimeAfter: (_) => _.getTime() / 1_000,
1450614508
CreationTimeBefore: (_) => _.getTime() / 1_000,
14509+
CrossAccountFilterOption: [],
1450714510
MaxResults: [],
1450814511
NameContains: [],
1450914512
NextToken: [],
@@ -16348,6 +16351,19 @@ const de_AttributeNames = (output: any, context: __SerdeContext): string[] => {
1634816351
return retVal;
1634916352
};
1635016353

16354+
/**
16355+
* deserializeAws_json1_1AuthenticationRequestExtraParams
16356+
*/
16357+
const de_AuthenticationRequestExtraParams = (output: any, context: __SerdeContext): Record<string, string> => {
16358+
return Object.entries(output).reduce((acc: Record<string, string>, [key, value]: [string, any]) => {
16359+
if (value === null) {
16360+
return acc;
16361+
}
16362+
acc[key as string] = __expectString(value) as any;
16363+
return acc;
16364+
}, {} as Record<string, string>);
16365+
};
16366+
1635116367
/**
1635216368
* deserializeAws_json1_1AutoMLAlgorithmConfig
1635316369
*/
@@ -25274,11 +25290,13 @@ const de_OfflineStoreStatus = (output: any, context: __SerdeContext): OfflineSto
2527425290
*/
2527525291
const de_OidcConfigForResponse = (output: any, context: __SerdeContext): OidcConfigForResponse => {
2527625292
return take(output, {
25293+
AuthenticationRequestExtraParams: (_: any) => de_AuthenticationRequestExtraParams(_, context),
2527725294
AuthorizationEndpoint: __expectString,
2527825295
ClientId: __expectString,
2527925296
Issuer: __expectString,
2528025297
JwksUri: __expectString,
2528125298
LogoutEndpoint: __expectString,
25299+
Scope: __expectString,
2528225300
TokenEndpoint: __expectString,
2528325301
UserInfoEndpoint: __expectString,
2528425302
}) as any;

codegen/sdk-codegen/aws-models/sagemaker.json

+75
Original file line numberDiff line numberDiff line change
@@ -2847,6 +2847,41 @@
28472847
}
28482848
}
28492849
},
2850+
"com.amazonaws.sagemaker#AuthenticationRequestExtraParams": {
2851+
"type": "map",
2852+
"key": {
2853+
"target": "com.amazonaws.sagemaker#AuthenticationRequestExtraParamsKey"
2854+
},
2855+
"value": {
2856+
"target": "com.amazonaws.sagemaker#AuthenticationRequestExtraParamsValue"
2857+
},
2858+
"traits": {
2859+
"smithy.api#length": {
2860+
"min": 0,
2861+
"max": 10
2862+
}
2863+
}
2864+
},
2865+
"com.amazonaws.sagemaker#AuthenticationRequestExtraParamsKey": {
2866+
"type": "string",
2867+
"traits": {
2868+
"smithy.api#length": {
2869+
"min": 0,
2870+
"max": 512
2871+
},
2872+
"smithy.api#pattern": ".*"
2873+
}
2874+
},
2875+
"com.amazonaws.sagemaker#AuthenticationRequestExtraParamsValue": {
2876+
"type": "string",
2877+
"traits": {
2878+
"smithy.api#length": {
2879+
"min": 0,
2880+
"max": 512
2881+
},
2882+
"smithy.api#pattern": ".*"
2883+
}
2884+
},
28502885
"com.amazonaws.sagemaker#AutoGenerateEndpointName": {
28512886
"type": "boolean"
28522887
},
@@ -39525,6 +39560,12 @@
3952539560
"traits": {
3952639561
"smithy.api#documentation": "<p>The sort order for results. The default is <code>Ascending</code>.</p>"
3952739562
}
39563+
},
39564+
"CrossAccountFilterOption": {
39565+
"target": "com.amazonaws.sagemaker#CrossAccountFilterOption",
39566+
"traits": {
39567+
"smithy.api#documentation": "<p>A filter that returns either model groups shared with you or model groups in\n\t your own account. When the value is <code>CrossAccount</code>, the results show\n\t the resources made discoverable to you from other accounts. When the value is\n <code>SameAccount</code> or <code>null</code>, the results show resources from your\n \t account. The default is <code>SameAccount</code>.</p>"
39568+
}
3952839569
}
3952939570
},
3953039571
"traits": {
@@ -47568,6 +47609,18 @@
4756847609
"smithy.api#documentation": "<p>The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce.</p>",
4756947610
"smithy.api#required": {}
4757047611
}
47612+
},
47613+
"Scope": {
47614+
"target": "com.amazonaws.sagemaker#Scope",
47615+
"traits": {
47616+
"smithy.api#documentation": "<p>An array of string identifiers used to refer to the specific pieces of user data or claims that the client application wants to access.</p>"
47617+
}
47618+
},
47619+
"AuthenticationRequestExtraParams": {
47620+
"target": "com.amazonaws.sagemaker#AuthenticationRequestExtraParams",
47621+
"traits": {
47622+
"smithy.api#documentation": "<p>A string to string map of identifiers specific to the custom identity provider (IdP) being used.</p>"
47623+
}
4757147624
}
4757247625
},
4757347626
"traits": {
@@ -47618,6 +47671,18 @@
4761847671
"traits": {
4761947672
"smithy.api#documentation": "<p>The OIDC IdP JSON Web Key Set (Jwks) URI used to configure your private workforce.</p>"
4762047673
}
47674+
},
47675+
"Scope": {
47676+
"target": "com.amazonaws.sagemaker#Scope",
47677+
"traits": {
47678+
"smithy.api#documentation": "<p>An array of string identifiers used to refer to the specific pieces of user data or claims that the client application wants to access.</p>"
47679+
}
47680+
},
47681+
"AuthenticationRequestExtraParams": {
47682+
"target": "com.amazonaws.sagemaker#AuthenticationRequestExtraParams",
47683+
"traits": {
47684+
"smithy.api#documentation": "<p>A string to string map of identifiers specific to the custom identity provider (IdP) being used.</p>"
47685+
}
4762147686
}
4762247687
},
4762347688
"traits": {
@@ -57007,6 +57072,16 @@
5700757072
}
5700857073
}
5700957074
},
57075+
"com.amazonaws.sagemaker#Scope": {
57076+
"type": "string",
57077+
"traits": {
57078+
"smithy.api#length": {
57079+
"min": 0,
57080+
"max": 1024
57081+
},
57082+
"smithy.api#pattern": "^[!#-\\[\\]-~]+( [!#-\\[\\]-~]+)*$"
57083+
}
57084+
},
5701057085
"com.amazonaws.sagemaker#Search": {
5701157086
"type": "operation",
5701257087
"input": {

0 commit comments

Comments
 (0)