Skip to content

Commit cc41c7c

Browse files
author
awstools
committed
feat(client-glue): This release introduces a new feature, Usage profiles. Usage profiles allow the AWS Glue admin to create different profiles for various classes of users within the account, enforcing limits and defaults for jobs and sessions.
1 parent a18206c commit cc41c7c

31 files changed

+2046
-172
lines changed

clients/client-glue/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,14 @@ CreateTrigger
540540

541541
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/CreateTriggerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/CreateTriggerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/CreateTriggerCommandOutput/)
542542

543+
</details>
544+
<details>
545+
<summary>
546+
CreateUsageProfile
547+
</summary>
548+
549+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/CreateUsageProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/CreateUsageProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/CreateUsageProfileCommandOutput/)
550+
543551
</details>
544552
<details>
545553
<summary>
@@ -748,6 +756,14 @@ DeleteTrigger
748756

749757
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/DeleteTriggerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/DeleteTriggerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/DeleteTriggerCommandOutput/)
750758

759+
</details>
760+
<details>
761+
<summary>
762+
DeleteUsageProfile
763+
</summary>
764+
765+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/DeleteUsageProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/DeleteUsageProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/DeleteUsageProfileCommandOutput/)
766+
751767
</details>
752768
<details>
753769
<summary>
@@ -1260,6 +1276,14 @@ GetUnfilteredTableMetadata
12601276

12611277
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/GetUnfilteredTableMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/GetUnfilteredTableMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/GetUnfilteredTableMetadataCommandOutput/)
12621278

1279+
</details>
1280+
<details>
1281+
<summary>
1282+
GetUsageProfile
1283+
</summary>
1284+
1285+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/GetUsageProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/GetUsageProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/GetUsageProfileCommandOutput/)
1286+
12631287
</details>
12641288
<details>
12651289
<summary>
@@ -1468,6 +1492,14 @@ ListTriggers
14681492

14691493
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/ListTriggersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/ListTriggersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/ListTriggersCommandOutput/)
14701494

1495+
</details>
1496+
<details>
1497+
<summary>
1498+
ListUsageProfiles
1499+
</summary>
1500+
1501+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/ListUsageProfilesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/ListUsageProfilesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/ListUsageProfilesCommandOutput/)
1502+
14711503
</details>
14721504
<details>
14731505
<summary>
@@ -1892,6 +1924,14 @@ UpdateTrigger
18921924

18931925
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/UpdateTriggerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/UpdateTriggerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/UpdateTriggerCommandOutput/)
18941926

1927+
</details>
1928+
<details>
1929+
<summary>
1930+
UpdateUsageProfile
1931+
</summary>
1932+
1933+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glue/command/UpdateUsageProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/UpdateUsageProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glue/Interface/UpdateUsageProfileCommandOutput/)
1934+
18951935
</details>
18961936
<details>
18971937
<summary>

clients/client-glue/src/Glue.ts

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ import {
204204
CreateTriggerCommandInput,
205205
CreateTriggerCommandOutput,
206206
} from "./commands/CreateTriggerCommand";
207+
import {
208+
CreateUsageProfileCommand,
209+
CreateUsageProfileCommandInput,
210+
CreateUsageProfileCommandOutput,
211+
} from "./commands/CreateUsageProfileCommand";
207212
import {
208213
CreateUserDefinedFunctionCommand,
209214
CreateUserDefinedFunctionCommandInput,
@@ -326,6 +331,11 @@ import {
326331
DeleteTriggerCommandInput,
327332
DeleteTriggerCommandOutput,
328333
} from "./commands/DeleteTriggerCommand";
334+
import {
335+
DeleteUsageProfileCommand,
336+
DeleteUsageProfileCommandInput,
337+
DeleteUsageProfileCommandOutput,
338+
} from "./commands/DeleteUsageProfileCommand";
329339
import {
330340
DeleteUserDefinedFunctionCommand,
331341
DeleteUserDefinedFunctionCommandInput,
@@ -578,6 +588,11 @@ import {
578588
GetUnfilteredTableMetadataCommandInput,
579589
GetUnfilteredTableMetadataCommandOutput,
580590
} from "./commands/GetUnfilteredTableMetadataCommand";
591+
import {
592+
GetUsageProfileCommand,
593+
GetUsageProfileCommandInput,
594+
GetUsageProfileCommandOutput,
595+
} from "./commands/GetUsageProfileCommand";
581596
import {
582597
GetUserDefinedFunctionCommand,
583598
GetUserDefinedFunctionCommandInput,
@@ -692,6 +707,11 @@ import {
692707
ListTriggersCommandInput,
693708
ListTriggersCommandOutput,
694709
} from "./commands/ListTriggersCommand";
710+
import {
711+
ListUsageProfilesCommand,
712+
ListUsageProfilesCommandInput,
713+
ListUsageProfilesCommandOutput,
714+
} from "./commands/ListUsageProfilesCommand";
695715
import {
696716
ListWorkflowsCommand,
697717
ListWorkflowsCommandInput,
@@ -929,6 +949,11 @@ import {
929949
UpdateTriggerCommandInput,
930950
UpdateTriggerCommandOutput,
931951
} from "./commands/UpdateTriggerCommand";
952+
import {
953+
UpdateUsageProfileCommand,
954+
UpdateUsageProfileCommandInput,
955+
UpdateUsageProfileCommandOutput,
956+
} from "./commands/UpdateUsageProfileCommand";
932957
import {
933958
UpdateUserDefinedFunctionCommand,
934959
UpdateUserDefinedFunctionCommandInput,
@@ -984,6 +1009,7 @@ const commands = {
9841009
CreateTableCommand,
9851010
CreateTableOptimizerCommand,
9861011
CreateTriggerCommand,
1012+
CreateUsageProfileCommand,
9871013
CreateUserDefinedFunctionCommand,
9881014
CreateWorkflowCommand,
9891015
DeleteBlueprintCommand,
@@ -1010,6 +1036,7 @@ const commands = {
10101036
DeleteTableOptimizerCommand,
10111037
DeleteTableVersionCommand,
10121038
DeleteTriggerCommand,
1039+
DeleteUsageProfileCommand,
10131040
DeleteUserDefinedFunctionCommand,
10141041
DeleteWorkflowCommand,
10151042
GetBlueprintCommand,
@@ -1074,6 +1101,7 @@ const commands = {
10741101
GetUnfilteredPartitionMetadataCommand,
10751102
GetUnfilteredPartitionsMetadataCommand,
10761103
GetUnfilteredTableMetadataCommand,
1104+
GetUsageProfileCommand,
10771105
GetUserDefinedFunctionCommand,
10781106
GetUserDefinedFunctionsCommand,
10791107
GetWorkflowCommand,
@@ -1100,6 +1128,7 @@ const commands = {
11001128
ListStatementsCommand,
11011129
ListTableOptimizerRunsCommand,
11021130
ListTriggersCommand,
1131+
ListUsageProfilesCommand,
11031132
ListWorkflowsCommand,
11041133
PutDataCatalogEncryptionSettingsCommand,
11051134
PutResourcePolicyCommand,
@@ -1153,6 +1182,7 @@ const commands = {
11531182
UpdateTableCommand,
11541183
UpdateTableOptimizerCommand,
11551184
UpdateTriggerCommand,
1185+
UpdateUsageProfileCommand,
11561186
UpdateUserDefinedFunctionCommand,
11571187
UpdateWorkflowCommand,
11581188
};
@@ -1805,6 +1835,23 @@ export interface Glue {
18051835
cb: (err: any, data?: CreateTriggerCommandOutput) => void
18061836
): void;
18071837

1838+
/**
1839+
* @see {@link CreateUsageProfileCommand}
1840+
*/
1841+
createUsageProfile(
1842+
args: CreateUsageProfileCommandInput,
1843+
options?: __HttpHandlerOptions
1844+
): Promise<CreateUsageProfileCommandOutput>;
1845+
createUsageProfile(
1846+
args: CreateUsageProfileCommandInput,
1847+
cb: (err: any, data?: CreateUsageProfileCommandOutput) => void
1848+
): void;
1849+
createUsageProfile(
1850+
args: CreateUsageProfileCommandInput,
1851+
options: __HttpHandlerOptions,
1852+
cb: (err: any, data?: CreateUsageProfileCommandOutput) => void
1853+
): void;
1854+
18081855
/**
18091856
* @see {@link CreateUserDefinedFunctionCommand}
18101857
*/
@@ -2197,6 +2244,23 @@ export interface Glue {
21972244
cb: (err: any, data?: DeleteTriggerCommandOutput) => void
21982245
): void;
21992246

2247+
/**
2248+
* @see {@link DeleteUsageProfileCommand}
2249+
*/
2250+
deleteUsageProfile(
2251+
args: DeleteUsageProfileCommandInput,
2252+
options?: __HttpHandlerOptions
2253+
): Promise<DeleteUsageProfileCommandOutput>;
2254+
deleteUsageProfile(
2255+
args: DeleteUsageProfileCommandInput,
2256+
cb: (err: any, data?: DeleteUsageProfileCommandOutput) => void
2257+
): void;
2258+
deleteUsageProfile(
2259+
args: DeleteUsageProfileCommandInput,
2260+
options: __HttpHandlerOptions,
2261+
cb: (err: any, data?: DeleteUsageProfileCommandOutput) => void
2262+
): void;
2263+
22002264
/**
22012265
* @see {@link DeleteUserDefinedFunctionCommand}
22022266
*/
@@ -3115,6 +3179,20 @@ export interface Glue {
31153179
cb: (err: any, data?: GetUnfilteredTableMetadataCommandOutput) => void
31163180
): void;
31173181

3182+
/**
3183+
* @see {@link GetUsageProfileCommand}
3184+
*/
3185+
getUsageProfile(
3186+
args: GetUsageProfileCommandInput,
3187+
options?: __HttpHandlerOptions
3188+
): Promise<GetUsageProfileCommandOutput>;
3189+
getUsageProfile(args: GetUsageProfileCommandInput, cb: (err: any, data?: GetUsageProfileCommandOutput) => void): void;
3190+
getUsageProfile(
3191+
args: GetUsageProfileCommandInput,
3192+
options: __HttpHandlerOptions,
3193+
cb: (err: any, data?: GetUsageProfileCommandOutput) => void
3194+
): void;
3195+
31183196
/**
31193197
* @see {@link GetUserDefinedFunctionCommand}
31203198
*/
@@ -3516,6 +3594,24 @@ export interface Glue {
35163594
cb: (err: any, data?: ListTriggersCommandOutput) => void
35173595
): void;
35183596

3597+
/**
3598+
* @see {@link ListUsageProfilesCommand}
3599+
*/
3600+
listUsageProfiles(): Promise<ListUsageProfilesCommandOutput>;
3601+
listUsageProfiles(
3602+
args: ListUsageProfilesCommandInput,
3603+
options?: __HttpHandlerOptions
3604+
): Promise<ListUsageProfilesCommandOutput>;
3605+
listUsageProfiles(
3606+
args: ListUsageProfilesCommandInput,
3607+
cb: (err: any, data?: ListUsageProfilesCommandOutput) => void
3608+
): void;
3609+
listUsageProfiles(
3610+
args: ListUsageProfilesCommandInput,
3611+
options: __HttpHandlerOptions,
3612+
cb: (err: any, data?: ListUsageProfilesCommandOutput) => void
3613+
): void;
3614+
35193615
/**
35203616
* @see {@link ListWorkflowsCommand}
35213617
*/
@@ -4312,6 +4408,23 @@ export interface Glue {
43124408
cb: (err: any, data?: UpdateTriggerCommandOutput) => void
43134409
): void;
43144410

4411+
/**
4412+
* @see {@link UpdateUsageProfileCommand}
4413+
*/
4414+
updateUsageProfile(
4415+
args: UpdateUsageProfileCommandInput,
4416+
options?: __HttpHandlerOptions
4417+
): Promise<UpdateUsageProfileCommandOutput>;
4418+
updateUsageProfile(
4419+
args: UpdateUsageProfileCommandInput,
4420+
cb: (err: any, data?: UpdateUsageProfileCommandOutput) => void
4421+
): void;
4422+
updateUsageProfile(
4423+
args: UpdateUsageProfileCommandInput,
4424+
options: __HttpHandlerOptions,
4425+
cb: (err: any, data?: UpdateUsageProfileCommandOutput) => void
4426+
): void;
4427+
43154428
/**
43164429
* @see {@link UpdateUserDefinedFunctionCommand}
43174430
*/

0 commit comments

Comments
 (0)