@aws-sdk/client-workspaces-web 3.342.0 → 3.344.0

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.
Files changed (63) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/WorkSpacesWeb.js +14 -0
  3. package/dist-cjs/commands/AssociateIpAccessSettingsCommand.js +46 -0
  4. package/dist-cjs/commands/CreateIpAccessSettingsCommand.js +47 -0
  5. package/dist-cjs/commands/DeleteIpAccessSettingsCommand.js +46 -0
  6. package/dist-cjs/commands/DisassociateIpAccessSettingsCommand.js +46 -0
  7. package/dist-cjs/commands/GetIpAccessSettingsCommand.js +47 -0
  8. package/dist-cjs/commands/ListIpAccessSettingsCommand.js +47 -0
  9. package/dist-cjs/commands/UpdateIpAccessSettingsCommand.js +47 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/endpoint/ruleset.js +3 -3
  12. package/dist-cjs/models/models_0.js +52 -1
  13. package/dist-cjs/pagination/ListIpAccessSettingsPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +1 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +498 -3
  16. package/dist-es/WorkSpacesWeb.js +14 -0
  17. package/dist-es/commands/AssociateIpAccessSettingsCommand.js +42 -0
  18. package/dist-es/commands/CreateIpAccessSettingsCommand.js +43 -0
  19. package/dist-es/commands/DeleteIpAccessSettingsCommand.js +42 -0
  20. package/dist-es/commands/DisassociateIpAccessSettingsCommand.js +42 -0
  21. package/dist-es/commands/GetIpAccessSettingsCommand.js +43 -0
  22. package/dist-es/commands/ListIpAccessSettingsCommand.js +43 -0
  23. package/dist-es/commands/UpdateIpAccessSettingsCommand.js +43 -0
  24. package/dist-es/commands/index.js +7 -0
  25. package/dist-es/endpoint/ruleset.js +3 -3
  26. package/dist-es/models/models_0.js +43 -0
  27. package/dist-es/pagination/ListIpAccessSettingsPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +1 -0
  29. package/dist-es/protocols/Aws_restJson1.js +481 -0
  30. package/dist-types/WorkSpacesWeb.d.ts +49 -0
  31. package/dist-types/WorkSpacesWebClient.d.ts +9 -2
  32. package/dist-types/commands/AssociateIpAccessSettingsCommand.d.ts +93 -0
  33. package/dist-types/commands/CreateIpAccessSettingsCommand.d.ts +109 -0
  34. package/dist-types/commands/DeleteIpAccessSettingsCommand.d.ts +86 -0
  35. package/dist-types/commands/DisassociateIpAccessSettingsCommand.d.ts +86 -0
  36. package/dist-types/commands/GetIpAccessSettingsCommand.d.ts +102 -0
  37. package/dist-types/commands/GetPortalCommand.d.ts +1 -0
  38. package/dist-types/commands/ListIpAccessSettingsCommand.d.ts +94 -0
  39. package/dist-types/commands/ListPortalsCommand.d.ts +1 -0
  40. package/dist-types/commands/UpdateIpAccessSettingsCommand.d.ts +111 -0
  41. package/dist-types/commands/UpdatePortalCommand.d.ts +4 -0
  42. package/dist-types/commands/index.d.ts +7 -0
  43. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  44. package/dist-types/models/models_0.d.ts +290 -0
  45. package/dist-types/pagination/ListIpAccessSettingsPaginator.d.ts +7 -0
  46. package/dist-types/pagination/index.d.ts +1 -0
  47. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  48. package/dist-types/ts3.4/WorkSpacesWeb.d.ts +119 -0
  49. package/dist-types/ts3.4/WorkSpacesWebClient.d.ts +42 -0
  50. package/dist-types/ts3.4/commands/AssociateIpAccessSettingsCommand.d.ts +42 -0
  51. package/dist-types/ts3.4/commands/CreateIpAccessSettingsCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/DeleteIpAccessSettingsCommand.d.ts +42 -0
  53. package/dist-types/ts3.4/commands/DisassociateIpAccessSettingsCommand.d.ts +42 -0
  54. package/dist-types/ts3.4/commands/GetIpAccessSettingsCommand.d.ts +39 -0
  55. package/dist-types/ts3.4/commands/ListIpAccessSettingsCommand.d.ts +42 -0
  56. package/dist-types/ts3.4/commands/UpdateIpAccessSettingsCommand.d.ts +42 -0
  57. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  58. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  59. package/dist-types/ts3.4/models/models_0.d.ts +94 -0
  60. package/dist-types/ts3.4/pagination/ListIpAccessSettingsPaginator.d.ts +11 -0
  61. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  62. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  63. package/package.json +6 -6
@@ -1,11 +1,13 @@
1
1
  import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { AssociateBrowserSettingsCommand, } from "./commands/AssociateBrowserSettingsCommand";
3
+ import { AssociateIpAccessSettingsCommand, } from "./commands/AssociateIpAccessSettingsCommand";
3
4
  import { AssociateNetworkSettingsCommand, } from "./commands/AssociateNetworkSettingsCommand";
4
5
  import { AssociateTrustStoreCommand, } from "./commands/AssociateTrustStoreCommand";
5
6
  import { AssociateUserAccessLoggingSettingsCommand, } from "./commands/AssociateUserAccessLoggingSettingsCommand";
6
7
  import { AssociateUserSettingsCommand, } from "./commands/AssociateUserSettingsCommand";
7
8
  import { CreateBrowserSettingsCommand, } from "./commands/CreateBrowserSettingsCommand";
8
9
  import { CreateIdentityProviderCommand, } from "./commands/CreateIdentityProviderCommand";
10
+ import { CreateIpAccessSettingsCommand, } from "./commands/CreateIpAccessSettingsCommand";
9
11
  import { CreateNetworkSettingsCommand, } from "./commands/CreateNetworkSettingsCommand";
10
12
  import { CreatePortalCommand, } from "./commands/CreatePortalCommand";
11
13
  import { CreateTrustStoreCommand, } from "./commands/CreateTrustStoreCommand";
@@ -13,18 +15,21 @@ import { CreateUserAccessLoggingSettingsCommand, } from "./commands/CreateUserAc
13
15
  import { CreateUserSettingsCommand, } from "./commands/CreateUserSettingsCommand";
14
16
  import { DeleteBrowserSettingsCommand, } from "./commands/DeleteBrowserSettingsCommand";
15
17
  import { DeleteIdentityProviderCommand, } from "./commands/DeleteIdentityProviderCommand";
18
+ import { DeleteIpAccessSettingsCommand, } from "./commands/DeleteIpAccessSettingsCommand";
16
19
  import { DeleteNetworkSettingsCommand, } from "./commands/DeleteNetworkSettingsCommand";
17
20
  import { DeletePortalCommand, } from "./commands/DeletePortalCommand";
18
21
  import { DeleteTrustStoreCommand, } from "./commands/DeleteTrustStoreCommand";
19
22
  import { DeleteUserAccessLoggingSettingsCommand, } from "./commands/DeleteUserAccessLoggingSettingsCommand";
20
23
  import { DeleteUserSettingsCommand, } from "./commands/DeleteUserSettingsCommand";
21
24
  import { DisassociateBrowserSettingsCommand, } from "./commands/DisassociateBrowserSettingsCommand";
25
+ import { DisassociateIpAccessSettingsCommand, } from "./commands/DisassociateIpAccessSettingsCommand";
22
26
  import { DisassociateNetworkSettingsCommand, } from "./commands/DisassociateNetworkSettingsCommand";
23
27
  import { DisassociateTrustStoreCommand, } from "./commands/DisassociateTrustStoreCommand";
24
28
  import { DisassociateUserAccessLoggingSettingsCommand, } from "./commands/DisassociateUserAccessLoggingSettingsCommand";
25
29
  import { DisassociateUserSettingsCommand, } from "./commands/DisassociateUserSettingsCommand";
26
30
  import { GetBrowserSettingsCommand, } from "./commands/GetBrowserSettingsCommand";
27
31
  import { GetIdentityProviderCommand, } from "./commands/GetIdentityProviderCommand";
32
+ import { GetIpAccessSettingsCommand, } from "./commands/GetIpAccessSettingsCommand";
28
33
  import { GetNetworkSettingsCommand, } from "./commands/GetNetworkSettingsCommand";
29
34
  import { GetPortalCommand } from "./commands/GetPortalCommand";
30
35
  import { GetPortalServiceProviderMetadataCommand, } from "./commands/GetPortalServiceProviderMetadataCommand";
@@ -34,6 +39,7 @@ import { GetUserAccessLoggingSettingsCommand, } from "./commands/GetUserAccessLo
34
39
  import { GetUserSettingsCommand, } from "./commands/GetUserSettingsCommand";
35
40
  import { ListBrowserSettingsCommand, } from "./commands/ListBrowserSettingsCommand";
36
41
  import { ListIdentityProvidersCommand, } from "./commands/ListIdentityProvidersCommand";
42
+ import { ListIpAccessSettingsCommand, } from "./commands/ListIpAccessSettingsCommand";
37
43
  import { ListNetworkSettingsCommand, } from "./commands/ListNetworkSettingsCommand";
38
44
  import { ListPortalsCommand } from "./commands/ListPortalsCommand";
39
45
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -45,6 +51,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
45
51
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
46
52
  import { UpdateBrowserSettingsCommand, } from "./commands/UpdateBrowserSettingsCommand";
47
53
  import { UpdateIdentityProviderCommand, } from "./commands/UpdateIdentityProviderCommand";
54
+ import { UpdateIpAccessSettingsCommand, } from "./commands/UpdateIpAccessSettingsCommand";
48
55
  import { UpdateNetworkSettingsCommand, } from "./commands/UpdateNetworkSettingsCommand";
49
56
  import { UpdatePortalCommand, } from "./commands/UpdatePortalCommand";
50
57
  import { UpdateTrustStoreCommand, } from "./commands/UpdateTrustStoreCommand";
@@ -53,12 +60,14 @@ import { UpdateUserSettingsCommand, } from "./commands/UpdateUserSettingsCommand
53
60
  import { WorkSpacesWebClient } from "./WorkSpacesWebClient";
54
61
  const commands = {
55
62
  AssociateBrowserSettingsCommand,
63
+ AssociateIpAccessSettingsCommand,
56
64
  AssociateNetworkSettingsCommand,
57
65
  AssociateTrustStoreCommand,
58
66
  AssociateUserAccessLoggingSettingsCommand,
59
67
  AssociateUserSettingsCommand,
60
68
  CreateBrowserSettingsCommand,
61
69
  CreateIdentityProviderCommand,
70
+ CreateIpAccessSettingsCommand,
62
71
  CreateNetworkSettingsCommand,
63
72
  CreatePortalCommand,
64
73
  CreateTrustStoreCommand,
@@ -66,18 +75,21 @@ const commands = {
66
75
  CreateUserSettingsCommand,
67
76
  DeleteBrowserSettingsCommand,
68
77
  DeleteIdentityProviderCommand,
78
+ DeleteIpAccessSettingsCommand,
69
79
  DeleteNetworkSettingsCommand,
70
80
  DeletePortalCommand,
71
81
  DeleteTrustStoreCommand,
72
82
  DeleteUserAccessLoggingSettingsCommand,
73
83
  DeleteUserSettingsCommand,
74
84
  DisassociateBrowserSettingsCommand,
85
+ DisassociateIpAccessSettingsCommand,
75
86
  DisassociateNetworkSettingsCommand,
76
87
  DisassociateTrustStoreCommand,
77
88
  DisassociateUserAccessLoggingSettingsCommand,
78
89
  DisassociateUserSettingsCommand,
79
90
  GetBrowserSettingsCommand,
80
91
  GetIdentityProviderCommand,
92
+ GetIpAccessSettingsCommand,
81
93
  GetNetworkSettingsCommand,
82
94
  GetPortalCommand,
83
95
  GetPortalServiceProviderMetadataCommand,
@@ -87,6 +99,7 @@ const commands = {
87
99
  GetUserSettingsCommand,
88
100
  ListBrowserSettingsCommand,
89
101
  ListIdentityProvidersCommand,
102
+ ListIpAccessSettingsCommand,
90
103
  ListNetworkSettingsCommand,
91
104
  ListPortalsCommand,
92
105
  ListTagsForResourceCommand,
@@ -98,6 +111,7 @@ const commands = {
98
111
  UntagResourceCommand,
99
112
  UpdateBrowserSettingsCommand,
100
113
  UpdateIdentityProviderCommand,
114
+ UpdateIpAccessSettingsCommand,
101
115
  UpdateNetworkSettingsCommand,
102
116
  UpdatePortalCommand,
103
117
  UpdateTrustStoreCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_AssociateIpAccessSettingsCommand, se_AssociateIpAccessSettingsCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class AssociateIpAccessSettingsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AssociateIpAccessSettingsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "WorkSpacesWebClient";
25
+ const commandName = "AssociateIpAccessSettingsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_AssociateIpAccessSettingsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_AssociateIpAccessSettingsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateIpAccessSettingsRequestFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_CreateIpAccessSettingsCommand, se_CreateIpAccessSettingsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateIpAccessSettingsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateIpAccessSettingsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WorkSpacesWebClient";
26
+ const commandName = "CreateIpAccessSettingsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: CreateIpAccessSettingsRequestFilterSensitiveLog,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_CreateIpAccessSettingsCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_CreateIpAccessSettingsCommand(output, context);
42
+ }
43
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteIpAccessSettingsCommand, se_DeleteIpAccessSettingsCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class DeleteIpAccessSettingsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteIpAccessSettingsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "WorkSpacesWebClient";
25
+ const commandName = "DeleteIpAccessSettingsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DeleteIpAccessSettingsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DeleteIpAccessSettingsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DisassociateIpAccessSettingsCommand, se_DisassociateIpAccessSettingsCommand, } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class DisassociateIpAccessSettingsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateIpAccessSettingsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "WorkSpacesWebClient";
25
+ const commandName = "DisassociateIpAccessSettingsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DisassociateIpAccessSettingsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DisassociateIpAccessSettingsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetIpAccessSettingsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_GetIpAccessSettingsCommand, se_GetIpAccessSettingsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetIpAccessSettingsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetIpAccessSettingsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WorkSpacesWebClient";
26
+ const commandName = "GetIpAccessSettingsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: GetIpAccessSettingsResponseFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_GetIpAccessSettingsCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_GetIpAccessSettingsCommand(output, context);
42
+ }
43
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListIpAccessSettingsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_ListIpAccessSettingsCommand, se_ListIpAccessSettingsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListIpAccessSettingsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListIpAccessSettingsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WorkSpacesWebClient";
26
+ const commandName = "ListIpAccessSettingsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: ListIpAccessSettingsResponseFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_ListIpAccessSettingsCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_ListIpAccessSettingsCommand(output, context);
42
+ }
43
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateIpAccessSettingsRequestFilterSensitiveLog, UpdateIpAccessSettingsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { de_UpdateIpAccessSettingsCommand, se_UpdateIpAccessSettingsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateIpAccessSettingsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateIpAccessSettingsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "WorkSpacesWebClient";
26
+ const commandName = "UpdateIpAccessSettingsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: UpdateIpAccessSettingsRequestFilterSensitiveLog,
32
+ outputFilterSensitiveLog: UpdateIpAccessSettingsResponseFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_UpdateIpAccessSettingsCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_UpdateIpAccessSettingsCommand(output, context);
42
+ }
43
+ }
@@ -1,10 +1,12 @@
1
1
  export * from "./AssociateBrowserSettingsCommand";
2
+ export * from "./AssociateIpAccessSettingsCommand";
2
3
  export * from "./AssociateNetworkSettingsCommand";
3
4
  export * from "./AssociateTrustStoreCommand";
4
5
  export * from "./AssociateUserAccessLoggingSettingsCommand";
5
6
  export * from "./AssociateUserSettingsCommand";
6
7
  export * from "./CreateBrowserSettingsCommand";
7
8
  export * from "./CreateIdentityProviderCommand";
9
+ export * from "./CreateIpAccessSettingsCommand";
8
10
  export * from "./CreateNetworkSettingsCommand";
9
11
  export * from "./CreatePortalCommand";
10
12
  export * from "./CreateTrustStoreCommand";
@@ -12,18 +14,21 @@ export * from "./CreateUserAccessLoggingSettingsCommand";
12
14
  export * from "./CreateUserSettingsCommand";
13
15
  export * from "./DeleteBrowserSettingsCommand";
14
16
  export * from "./DeleteIdentityProviderCommand";
17
+ export * from "./DeleteIpAccessSettingsCommand";
15
18
  export * from "./DeleteNetworkSettingsCommand";
16
19
  export * from "./DeletePortalCommand";
17
20
  export * from "./DeleteTrustStoreCommand";
18
21
  export * from "./DeleteUserAccessLoggingSettingsCommand";
19
22
  export * from "./DeleteUserSettingsCommand";
20
23
  export * from "./DisassociateBrowserSettingsCommand";
24
+ export * from "./DisassociateIpAccessSettingsCommand";
21
25
  export * from "./DisassociateNetworkSettingsCommand";
22
26
  export * from "./DisassociateTrustStoreCommand";
23
27
  export * from "./DisassociateUserAccessLoggingSettingsCommand";
24
28
  export * from "./DisassociateUserSettingsCommand";
25
29
  export * from "./GetBrowserSettingsCommand";
26
30
  export * from "./GetIdentityProviderCommand";
31
+ export * from "./GetIpAccessSettingsCommand";
27
32
  export * from "./GetNetworkSettingsCommand";
28
33
  export * from "./GetPortalCommand";
29
34
  export * from "./GetPortalServiceProviderMetadataCommand";
@@ -33,6 +38,7 @@ export * from "./GetUserAccessLoggingSettingsCommand";
33
38
  export * from "./GetUserSettingsCommand";
34
39
  export * from "./ListBrowserSettingsCommand";
35
40
  export * from "./ListIdentityProvidersCommand";
41
+ export * from "./ListIpAccessSettingsCommand";
36
42
  export * from "./ListNetworkSettingsCommand";
37
43
  export * from "./ListPortalsCommand";
38
44
  export * from "./ListTagsForResourceCommand";
@@ -44,6 +50,7 @@ export * from "./TagResourceCommand";
44
50
  export * from "./UntagResourceCommand";
45
51
  export * from "./UpdateBrowserSettingsCommand";
46
52
  export * from "./UpdateIdentityProviderCommand";
53
+ export * from "./UpdateIpAccessSettingsCommand";
47
54
  export * from "./UpdateNetworkSettingsCommand";
48
55
  export * from "./UpdatePortalCommand";
49
56
  export * from "./UpdateTrustStoreCommand";
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://workspaces-web-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://workspaces-web-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://workspaces-web.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://workspaces-web.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workspaces-web-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workspaces-web-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://workspaces-web.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://workspaces-web.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -159,6 +159,18 @@ export const CreateIdentityProviderRequestFilterSensitiveLog = (obj) => ({
159
159
  ...(obj.identityProviderName && { identityProviderName: SENSITIVE_STRING }),
160
160
  ...(obj.identityProviderDetails && { identityProviderDetails: SENSITIVE_STRING }),
161
161
  });
162
+ export const IpRuleFilterSensitiveLog = (obj) => ({
163
+ ...obj,
164
+ ...(obj.ipRange && { ipRange: SENSITIVE_STRING }),
165
+ ...(obj.description && { description: SENSITIVE_STRING }),
166
+ });
167
+ export const CreateIpAccessSettingsRequestFilterSensitiveLog = (obj) => ({
168
+ ...obj,
169
+ ...(obj.displayName && { displayName: SENSITIVE_STRING }),
170
+ ...(obj.description && { description: SENSITIVE_STRING }),
171
+ ...(obj.tags && { tags: SENSITIVE_STRING }),
172
+ ...(obj.ipRules && { ipRules: SENSITIVE_STRING }),
173
+ });
162
174
  export const CreateNetworkSettingsRequestFilterSensitiveLog = (obj) => ({
163
175
  ...obj,
164
176
  ...(obj.tags && { tags: SENSITIVE_STRING }),
@@ -197,6 +209,16 @@ export const GetIdentityProviderResponseFilterSensitiveLog = (obj) => ({
197
209
  ...obj,
198
210
  ...(obj.identityProvider && { identityProvider: IdentityProviderFilterSensitiveLog(obj.identityProvider) }),
199
211
  });
212
+ export const IpAccessSettingsFilterSensitiveLog = (obj) => ({
213
+ ...obj,
214
+ ...(obj.ipRules && { ipRules: SENSITIVE_STRING }),
215
+ ...(obj.displayName && { displayName: SENSITIVE_STRING }),
216
+ ...(obj.description && { description: SENSITIVE_STRING }),
217
+ });
218
+ export const GetIpAccessSettingsResponseFilterSensitiveLog = (obj) => ({
219
+ ...obj,
220
+ ...(obj.ipAccessSettings && { ipAccessSettings: IpAccessSettingsFilterSensitiveLog(obj.ipAccessSettings) }),
221
+ });
200
222
  export const PortalFilterSensitiveLog = (obj) => ({
201
223
  ...obj,
202
224
  ...(obj.displayName && { displayName: SENSITIVE_STRING }),
@@ -215,6 +237,17 @@ export const ListIdentityProvidersResponseFilterSensitiveLog = (obj) => ({
215
237
  identityProviders: obj.identityProviders.map((item) => IdentityProviderSummaryFilterSensitiveLog(item)),
216
238
  }),
217
239
  });
240
+ export const IpAccessSettingsSummaryFilterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ ...(obj.displayName && { displayName: SENSITIVE_STRING }),
243
+ ...(obj.description && { description: SENSITIVE_STRING }),
244
+ });
245
+ export const ListIpAccessSettingsResponseFilterSensitiveLog = (obj) => ({
246
+ ...obj,
247
+ ...(obj.ipAccessSettings && {
248
+ ipAccessSettings: obj.ipAccessSettings.map((item) => IpAccessSettingsSummaryFilterSensitiveLog(item)),
249
+ }),
250
+ });
218
251
  export const PortalSummaryFilterSensitiveLog = (obj) => ({
219
252
  ...obj,
220
253
  ...(obj.displayName && { displayName: SENSITIVE_STRING }),
@@ -252,6 +285,16 @@ export const UpdateIdentityProviderResponseFilterSensitiveLog = (obj) => ({
252
285
  ...obj,
253
286
  ...(obj.identityProvider && { identityProvider: IdentityProviderFilterSensitiveLog(obj.identityProvider) }),
254
287
  });
288
+ export const UpdateIpAccessSettingsRequestFilterSensitiveLog = (obj) => ({
289
+ ...obj,
290
+ ...(obj.displayName && { displayName: SENSITIVE_STRING }),
291
+ ...(obj.description && { description: SENSITIVE_STRING }),
292
+ ...(obj.ipRules && { ipRules: SENSITIVE_STRING }),
293
+ });
294
+ export const UpdateIpAccessSettingsResponseFilterSensitiveLog = (obj) => ({
295
+ ...obj,
296
+ ...(obj.ipAccessSettings && { ipAccessSettings: IpAccessSettingsFilterSensitiveLog(obj.ipAccessSettings) }),
297
+ });
255
298
  export const UpdatePortalRequestFilterSensitiveLog = (obj) => ({
256
299
  ...obj,
257
300
  ...(obj.displayName && { displayName: SENSITIVE_STRING }),
@@ -0,0 +1,25 @@
1
+ import { ListIpAccessSettingsCommand, } from "../commands/ListIpAccessSettingsCommand";
2
+ import { WorkSpacesWebClient } from "../WorkSpacesWebClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListIpAccessSettingsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListIpAccessSettings(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof WorkSpacesWebClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected WorkSpacesWeb | WorkSpacesWebClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListBrowserSettingsPaginator";
3
3
  export * from "./ListIdentityProvidersPaginator";
4
+ export * from "./ListIpAccessSettingsPaginator";
4
5
  export * from "./ListNetworkSettingsPaginator";
5
6
  export * from "./ListPortalsPaginator";
6
7
  export * from "./ListTrustStoreCertificatesPaginator";