mypy-boto3-workspaces-web 1.40.54__py3-none-any.whl → 1.40.73__py3-none-any.whl

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.
@@ -17,6 +17,7 @@ Usage::
17
17
  from __future__ import annotations
18
18
 
19
19
  import sys
20
+ from collections.abc import Mapping, Sequence
20
21
  from datetime import datetime
21
22
  from typing import IO, Any, Union
22
23
 
@@ -24,6 +25,7 @@ from botocore.response import StreamingBody
24
25
 
25
26
  from .literals import (
26
27
  AuthenticationTypeType,
28
+ CategoryType,
27
29
  EnabledTypeType,
28
30
  EventType,
29
31
  FolderStructureType,
@@ -39,12 +41,6 @@ from .literals import (
39
41
  VisualModeType,
40
42
  )
41
43
 
42
- if sys.version_info >= (3, 9):
43
- from builtins import dict as Dict
44
- from builtins import list as List
45
- from collections.abc import Mapping, Sequence
46
- else:
47
- from typing import Dict, List, Mapping, Sequence
48
44
  if sys.version_info >= (3, 12):
49
45
  from typing import Literal, NotRequired, TypedDict
50
46
  else:
@@ -232,6 +228,9 @@ __all__ = (
232
228
  "UserAccessLoggingSettingsTypeDef",
233
229
  "UserSettingsSummaryTypeDef",
234
230
  "UserSettingsTypeDef",
231
+ "WebContentFilteringPolicyOutputTypeDef",
232
+ "WebContentFilteringPolicyTypeDef",
233
+ "WebContentFilteringPolicyUnionTypeDef",
235
234
  )
236
235
 
237
236
 
@@ -243,7 +242,7 @@ class AssociateBrowserSettingsRequestTypeDef(TypedDict):
243
242
  class ResponseMetadataTypeDef(TypedDict):
244
243
  RequestId: str
245
244
  HTTPStatusCode: int
246
- HTTPHeaders: Dict[str, str]
245
+ HTTPHeaders: dict[str, str]
247
246
  RetryAttempts: int
248
247
  HostId: NotRequired[str]
249
248
 
@@ -290,12 +289,10 @@ class BrowserSettingsSummaryTypeDef(TypedDict):
290
289
  browserSettingsArn: str
291
290
 
292
291
 
293
- class BrowserSettingsTypeDef(TypedDict):
294
- browserSettingsArn: str
295
- associatedPortalArns: NotRequired[List[str]]
296
- browserPolicy: NotRequired[str]
297
- customerManagedKey: NotRequired[str]
298
- additionalEncryptionContext: NotRequired[Dict[str, str]]
292
+ class WebContentFilteringPolicyOutputTypeDef(TypedDict):
293
+ blockedCategories: NotRequired[list[CategoryType]]
294
+ allowedUrls: NotRequired[list[str]]
295
+ blockedUrls: NotRequired[list[str]]
299
296
 
300
297
 
301
298
  class CertificateSummaryTypeDef(TypedDict):
@@ -420,8 +417,8 @@ class DisassociateUserSettingsRequestTypeDef(TypedDict):
420
417
  EventFilterOutputTypeDef = TypedDict(
421
418
  "EventFilterOutputTypeDef",
422
419
  {
423
- "all": NotRequired[Dict[str, Any]],
424
- "include": NotRequired[List[EventType]],
420
+ "all": NotRequired[dict[str, Any]],
421
+ "include": NotRequired[list[EventType]],
425
422
  },
426
423
  )
427
424
  EventFilterTypeDef = TypedDict(
@@ -454,7 +451,7 @@ class IdentityProviderTypeDef(TypedDict):
454
451
  identityProviderArn: str
455
452
  identityProviderName: NotRequired[str]
456
453
  identityProviderType: NotRequired[IdentityProviderTypeType]
457
- identityProviderDetails: NotRequired[Dict[str, str]]
454
+ identityProviderDetails: NotRequired[dict[str, str]]
458
455
 
459
456
 
460
457
  class GetIpAccessSettingsRequestTypeDef(TypedDict):
@@ -467,10 +464,10 @@ class GetNetworkSettingsRequestTypeDef(TypedDict):
467
464
 
468
465
  class NetworkSettingsTypeDef(TypedDict):
469
466
  networkSettingsArn: str
470
- associatedPortalArns: NotRequired[List[str]]
467
+ associatedPortalArns: NotRequired[list[str]]
471
468
  vpcId: NotRequired[str]
472
- subnetIds: NotRequired[List[str]]
473
- securityGroupIds: NotRequired[List[str]]
469
+ subnetIds: NotRequired[list[str]]
470
+ securityGroupIds: NotRequired[list[str]]
474
471
 
475
472
 
476
473
  class GetPortalRequestTypeDef(TypedDict):
@@ -496,7 +493,7 @@ class PortalTypeDef(TypedDict):
496
493
  authenticationType: NotRequired[AuthenticationTypeType]
497
494
  ipAccessSettingsArn: NotRequired[str]
498
495
  customerManagedKey: NotRequired[str]
499
- additionalEncryptionContext: NotRequired[Dict[str, str]]
496
+ additionalEncryptionContext: NotRequired[dict[str, str]]
500
497
  instanceType: NotRequired[InstanceTypeType]
501
498
  maxConcurrentSessions: NotRequired[int]
502
499
 
@@ -518,7 +515,7 @@ class SessionTypeDef(TypedDict):
518
515
  portalArn: NotRequired[str]
519
516
  sessionId: NotRequired[str]
520
517
  username: NotRequired[str]
521
- clientIpAddresses: NotRequired[List[str]]
518
+ clientIpAddresses: NotRequired[list[str]]
522
519
  status: NotRequired[SessionStatusType]
523
520
  startTime: NotRequired[datetime]
524
521
  endTime: NotRequired[datetime]
@@ -535,7 +532,7 @@ class GetTrustStoreRequestTypeDef(TypedDict):
535
532
 
536
533
  class TrustStoreTypeDef(TypedDict):
537
534
  trustStoreArn: str
538
- associatedPortalArns: NotRequired[List[str]]
535
+ associatedPortalArns: NotRequired[list[str]]
539
536
 
540
537
 
541
538
  class GetUserAccessLoggingSettingsRequestTypeDef(TypedDict):
@@ -544,7 +541,7 @@ class GetUserAccessLoggingSettingsRequestTypeDef(TypedDict):
544
541
 
545
542
  class UserAccessLoggingSettingsTypeDef(TypedDict):
546
543
  userAccessLoggingSettingsArn: str
547
- associatedPortalArns: NotRequired[List[str]]
544
+ associatedPortalArns: NotRequired[list[str]]
548
545
  kinesisStreamArn: NotRequired[str]
549
546
 
550
547
 
@@ -702,7 +699,7 @@ class S3LogConfigurationTypeDef(TypedDict):
702
699
  class ToolbarConfigurationOutputTypeDef(TypedDict):
703
700
  toolbarType: NotRequired[ToolbarTypeType]
704
701
  visualMode: NotRequired[VisualModeType]
705
- hiddenToolbarItems: NotRequired[List[ToolbarItemType]]
702
+ hiddenToolbarItems: NotRequired[list[ToolbarItemType]]
706
703
  maxDisplayResolution: NotRequired[MaxDisplayResolutionType]
707
704
 
708
705
 
@@ -718,12 +715,6 @@ class UntagResourceRequestTypeDef(TypedDict):
718
715
  tagKeys: Sequence[str]
719
716
 
720
717
 
721
- class UpdateBrowserSettingsRequestTypeDef(TypedDict):
722
- browserSettingsArn: str
723
- browserPolicy: NotRequired[str]
724
- clientToken: NotRequired[str]
725
-
726
-
727
718
  class UpdateIdentityProviderRequestTypeDef(TypedDict):
728
719
  identityProviderArn: str
729
720
  identityProviderName: NotRequired[str]
@@ -754,6 +745,12 @@ class UpdateUserAccessLoggingSettingsRequestTypeDef(TypedDict):
754
745
  clientToken: NotRequired[str]
755
746
 
756
747
 
748
+ class WebContentFilteringPolicyTypeDef(TypedDict):
749
+ blockedCategories: NotRequired[Sequence[CategoryType]]
750
+ allowedUrls: NotRequired[Sequence[str]]
751
+ blockedUrls: NotRequired[Sequence[str]]
752
+
753
+
757
754
  class AssociateBrowserSettingsResponseTypeDef(TypedDict):
758
755
  portalArn: str
759
756
  browserSettingsArn: str
@@ -872,23 +869,22 @@ class UpdateTrustStoreRequestTypeDef(TypedDict):
872
869
 
873
870
 
874
871
  class ListBrowserSettingsResponseTypeDef(TypedDict):
875
- browserSettings: List[BrowserSettingsSummaryTypeDef]
872
+ browserSettings: list[BrowserSettingsSummaryTypeDef]
876
873
  ResponseMetadata: ResponseMetadataTypeDef
877
874
  nextToken: NotRequired[str]
878
875
 
879
876
 
880
- class GetBrowserSettingsResponseTypeDef(TypedDict):
881
- browserSettings: BrowserSettingsTypeDef
882
- ResponseMetadata: ResponseMetadataTypeDef
883
-
884
-
885
- class UpdateBrowserSettingsResponseTypeDef(TypedDict):
886
- browserSettings: BrowserSettingsTypeDef
887
- ResponseMetadata: ResponseMetadataTypeDef
877
+ class BrowserSettingsTypeDef(TypedDict):
878
+ browserSettingsArn: str
879
+ associatedPortalArns: NotRequired[list[str]]
880
+ browserPolicy: NotRequired[str]
881
+ customerManagedKey: NotRequired[str]
882
+ additionalEncryptionContext: NotRequired[dict[str, str]]
883
+ webContentFilteringPolicy: NotRequired[WebContentFilteringPolicyOutputTypeDef]
888
884
 
889
885
 
890
886
  class ListTrustStoreCertificatesResponseTypeDef(TypedDict):
891
- certificateList: List[CertificateSummaryTypeDef]
887
+ certificateList: list[CertificateSummaryTypeDef]
892
888
  trustStoreArn: str
893
889
  ResponseMetadata: ResponseMetadataTypeDef
894
890
  nextToken: NotRequired[str]
@@ -901,8 +897,8 @@ class GetTrustStoreCertificateResponseTypeDef(TypedDict):
901
897
 
902
898
 
903
899
  class CookieSynchronizationConfigurationOutputTypeDef(TypedDict):
904
- allowlist: List[CookieSpecificationTypeDef]
905
- blocklist: NotRequired[List[CookieSpecificationTypeDef]]
900
+ allowlist: list[CookieSpecificationTypeDef]
901
+ blocklist: NotRequired[list[CookieSpecificationTypeDef]]
906
902
 
907
903
 
908
904
  class CookieSynchronizationConfigurationTypeDef(TypedDict):
@@ -910,14 +906,6 @@ class CookieSynchronizationConfigurationTypeDef(TypedDict):
910
906
  blocklist: NotRequired[Sequence[CookieSpecificationTypeDef]]
911
907
 
912
908
 
913
- class CreateBrowserSettingsRequestTypeDef(TypedDict):
914
- browserPolicy: str
915
- tags: NotRequired[Sequence[TagTypeDef]]
916
- customerManagedKey: NotRequired[str]
917
- additionalEncryptionContext: NotRequired[Mapping[str, str]]
918
- clientToken: NotRequired[str]
919
-
920
-
921
909
  class CreateIdentityProviderRequestTypeDef(TypedDict):
922
910
  portalArn: str
923
911
  identityProviderName: str
@@ -959,7 +947,7 @@ class CreateUserAccessLoggingSettingsRequestTypeDef(TypedDict):
959
947
 
960
948
 
961
949
  class ListTagsForResourceResponseTypeDef(TypedDict):
962
- tags: List[TagTypeDef]
950
+ tags: list[TagTypeDef]
963
951
  ResponseMetadata: ResponseMetadataTypeDef
964
952
 
965
953
 
@@ -981,13 +969,13 @@ class CreateIpAccessSettingsRequestTypeDef(TypedDict):
981
969
 
982
970
  class IpAccessSettingsTypeDef(TypedDict):
983
971
  ipAccessSettingsArn: str
984
- associatedPortalArns: NotRequired[List[str]]
985
- ipRules: NotRequired[List[IpRuleTypeDef]]
972
+ associatedPortalArns: NotRequired[list[str]]
973
+ ipRules: NotRequired[list[IpRuleTypeDef]]
986
974
  displayName: NotRequired[str]
987
975
  description: NotRequired[str]
988
976
  creationDate: NotRequired[datetime]
989
977
  customerManagedKey: NotRequired[str]
990
- additionalEncryptionContext: NotRequired[Dict[str, str]]
978
+ additionalEncryptionContext: NotRequired[dict[str, str]]
991
979
 
992
980
 
993
981
  class UpdateIpAccessSettingsRequestTypeDef(TypedDict):
@@ -999,7 +987,7 @@ class UpdateIpAccessSettingsRequestTypeDef(TypedDict):
999
987
 
1000
988
 
1001
989
  class ListDataProtectionSettingsResponseTypeDef(TypedDict):
1002
- dataProtectionSettings: List[DataProtectionSettingsSummaryTypeDef]
990
+ dataProtectionSettings: list[DataProtectionSettingsSummaryTypeDef]
1003
991
  ResponseMetadata: ResponseMetadataTypeDef
1004
992
  nextToken: NotRequired[str]
1005
993
 
@@ -1058,7 +1046,7 @@ class UpdateUserAccessLoggingSettingsResponseTypeDef(TypedDict):
1058
1046
 
1059
1047
 
1060
1048
  class ListIdentityProvidersResponseTypeDef(TypedDict):
1061
- identityProviders: List[IdentityProviderSummaryTypeDef]
1049
+ identityProviders: list[IdentityProviderSummaryTypeDef]
1062
1050
  ResponseMetadata: ResponseMetadataTypeDef
1063
1051
  nextToken: NotRequired[str]
1064
1052
 
@@ -1067,8 +1055,8 @@ class InlineRedactionPatternOutputTypeDef(TypedDict):
1067
1055
  redactionPlaceHolder: RedactionPlaceHolderTypeDef
1068
1056
  builtInPatternId: NotRequired[str]
1069
1057
  customPattern: NotRequired[CustomPatternTypeDef]
1070
- enforcedUrls: NotRequired[List[str]]
1071
- exemptUrls: NotRequired[List[str]]
1058
+ enforcedUrls: NotRequired[list[str]]
1059
+ exemptUrls: NotRequired[list[str]]
1072
1060
  confidenceLevel: NotRequired[int]
1073
1061
 
1074
1062
 
@@ -1082,7 +1070,7 @@ class InlineRedactionPatternTypeDef(TypedDict):
1082
1070
 
1083
1071
 
1084
1072
  class ListIpAccessSettingsResponseTypeDef(TypedDict):
1085
- ipAccessSettings: List[IpAccessSettingsSummaryTypeDef]
1073
+ ipAccessSettings: list[IpAccessSettingsSummaryTypeDef]
1086
1074
  ResponseMetadata: ResponseMetadataTypeDef
1087
1075
  nextToken: NotRequired[str]
1088
1076
 
@@ -1105,31 +1093,31 @@ class ListSessionsRequestPaginateTypeDef(TypedDict):
1105
1093
 
1106
1094
 
1107
1095
  class ListNetworkSettingsResponseTypeDef(TypedDict):
1108
- networkSettings: List[NetworkSettingsSummaryTypeDef]
1096
+ networkSettings: list[NetworkSettingsSummaryTypeDef]
1109
1097
  ResponseMetadata: ResponseMetadataTypeDef
1110
1098
  nextToken: NotRequired[str]
1111
1099
 
1112
1100
 
1113
1101
  class ListPortalsResponseTypeDef(TypedDict):
1114
- portals: List[PortalSummaryTypeDef]
1102
+ portals: list[PortalSummaryTypeDef]
1115
1103
  ResponseMetadata: ResponseMetadataTypeDef
1116
1104
  nextToken: NotRequired[str]
1117
1105
 
1118
1106
 
1119
1107
  class ListSessionsResponseTypeDef(TypedDict):
1120
- sessions: List[SessionSummaryTypeDef]
1108
+ sessions: list[SessionSummaryTypeDef]
1121
1109
  ResponseMetadata: ResponseMetadataTypeDef
1122
1110
  nextToken: NotRequired[str]
1123
1111
 
1124
1112
 
1125
1113
  class ListTrustStoresResponseTypeDef(TypedDict):
1126
- trustStores: List[TrustStoreSummaryTypeDef]
1114
+ trustStores: list[TrustStoreSummaryTypeDef]
1127
1115
  ResponseMetadata: ResponseMetadataTypeDef
1128
1116
  nextToken: NotRequired[str]
1129
1117
 
1130
1118
 
1131
1119
  class ListUserAccessLoggingSettingsResponseTypeDef(TypedDict):
1132
- userAccessLoggingSettings: List[UserAccessLoggingSettingsSummaryTypeDef]
1120
+ userAccessLoggingSettings: list[UserAccessLoggingSettingsSummaryTypeDef]
1133
1121
  ResponseMetadata: ResponseMetadataTypeDef
1134
1122
  nextToken: NotRequired[str]
1135
1123
 
@@ -1141,6 +1129,19 @@ class LogConfigurationTypeDef(TypedDict):
1141
1129
  ToolbarConfigurationUnionTypeDef = Union[
1142
1130
  ToolbarConfigurationTypeDef, ToolbarConfigurationOutputTypeDef
1143
1131
  ]
1132
+ WebContentFilteringPolicyUnionTypeDef = Union[
1133
+ WebContentFilteringPolicyTypeDef, WebContentFilteringPolicyOutputTypeDef
1134
+ ]
1135
+
1136
+
1137
+ class GetBrowserSettingsResponseTypeDef(TypedDict):
1138
+ browserSettings: BrowserSettingsTypeDef
1139
+ ResponseMetadata: ResponseMetadataTypeDef
1140
+
1141
+
1142
+ class UpdateBrowserSettingsResponseTypeDef(TypedDict):
1143
+ browserSettings: BrowserSettingsTypeDef
1144
+ ResponseMetadata: ResponseMetadataTypeDef
1144
1145
 
1145
1146
 
1146
1147
  class UserSettingsSummaryTypeDef(TypedDict):
@@ -1159,7 +1160,7 @@ class UserSettingsSummaryTypeDef(TypedDict):
1159
1160
 
1160
1161
  class UserSettingsTypeDef(TypedDict):
1161
1162
  userSettingsArn: str
1162
- associatedPortalArns: NotRequired[List[str]]
1163
+ associatedPortalArns: NotRequired[list[str]]
1163
1164
  copyAllowed: NotRequired[EnabledTypeType]
1164
1165
  pasteAllowed: NotRequired[EnabledTypeType]
1165
1166
  downloadAllowed: NotRequired[EnabledTypeType]
@@ -1169,7 +1170,7 @@ class UserSettingsTypeDef(TypedDict):
1169
1170
  idleDisconnectTimeoutInMinutes: NotRequired[int]
1170
1171
  cookieSynchronizationConfiguration: NotRequired[CookieSynchronizationConfigurationOutputTypeDef]
1171
1172
  customerManagedKey: NotRequired[str]
1172
- additionalEncryptionContext: NotRequired[Dict[str, str]]
1173
+ additionalEncryptionContext: NotRequired[dict[str, str]]
1173
1174
  deepLinkAllowed: NotRequired[EnabledTypeType]
1174
1175
  toolbarConfiguration: NotRequired[ToolbarConfigurationOutputTypeDef]
1175
1176
 
@@ -1190,9 +1191,9 @@ class UpdateIpAccessSettingsResponseTypeDef(TypedDict):
1190
1191
 
1191
1192
 
1192
1193
  class InlineRedactionConfigurationOutputTypeDef(TypedDict):
1193
- inlineRedactionPatterns: List[InlineRedactionPatternOutputTypeDef]
1194
- globalEnforcedUrls: NotRequired[List[str]]
1195
- globalExemptUrls: NotRequired[List[str]]
1194
+ inlineRedactionPatterns: list[InlineRedactionPatternOutputTypeDef]
1195
+ globalEnforcedUrls: NotRequired[list[str]]
1196
+ globalExemptUrls: NotRequired[list[str]]
1196
1197
  globalConfidenceLevel: NotRequired[int]
1197
1198
 
1198
1199
 
@@ -1225,8 +1226,8 @@ class SessionLoggerTypeDef(TypedDict):
1225
1226
  eventFilter: NotRequired[EventFilterOutputTypeDef]
1226
1227
  logConfiguration: NotRequired[LogConfigurationTypeDef]
1227
1228
  customerManagedKey: NotRequired[str]
1228
- additionalEncryptionContext: NotRequired[Dict[str, str]]
1229
- associatedPortalArns: NotRequired[List[str]]
1229
+ additionalEncryptionContext: NotRequired[dict[str, str]]
1230
+ associatedPortalArns: NotRequired[list[str]]
1230
1231
  displayName: NotRequired[str]
1231
1232
  creationDate: NotRequired[datetime]
1232
1233
 
@@ -1238,8 +1239,24 @@ class UpdateSessionLoggerRequestTypeDef(TypedDict):
1238
1239
  displayName: NotRequired[str]
1239
1240
 
1240
1241
 
1242
+ class CreateBrowserSettingsRequestTypeDef(TypedDict):
1243
+ tags: NotRequired[Sequence[TagTypeDef]]
1244
+ customerManagedKey: NotRequired[str]
1245
+ additionalEncryptionContext: NotRequired[Mapping[str, str]]
1246
+ browserPolicy: NotRequired[str]
1247
+ clientToken: NotRequired[str]
1248
+ webContentFilteringPolicy: NotRequired[WebContentFilteringPolicyUnionTypeDef]
1249
+
1250
+
1251
+ class UpdateBrowserSettingsRequestTypeDef(TypedDict):
1252
+ browserSettingsArn: str
1253
+ browserPolicy: NotRequired[str]
1254
+ clientToken: NotRequired[str]
1255
+ webContentFilteringPolicy: NotRequired[WebContentFilteringPolicyUnionTypeDef]
1256
+
1257
+
1241
1258
  class ListUserSettingsResponseTypeDef(TypedDict):
1242
- userSettings: List[UserSettingsSummaryTypeDef]
1259
+ userSettings: list[UserSettingsSummaryTypeDef]
1243
1260
  ResponseMetadata: ResponseMetadataTypeDef
1244
1261
  nextToken: NotRequired[str]
1245
1262
 
@@ -1289,12 +1306,12 @@ class UpdateUserSettingsRequestTypeDef(TypedDict):
1289
1306
  class DataProtectionSettingsTypeDef(TypedDict):
1290
1307
  dataProtectionSettingsArn: str
1291
1308
  inlineRedactionConfiguration: NotRequired[InlineRedactionConfigurationOutputTypeDef]
1292
- associatedPortalArns: NotRequired[List[str]]
1309
+ associatedPortalArns: NotRequired[list[str]]
1293
1310
  displayName: NotRequired[str]
1294
1311
  description: NotRequired[str]
1295
1312
  creationDate: NotRequired[datetime]
1296
1313
  customerManagedKey: NotRequired[str]
1297
- additionalEncryptionContext: NotRequired[Dict[str, str]]
1314
+ additionalEncryptionContext: NotRequired[dict[str, str]]
1298
1315
 
1299
1316
 
1300
1317
  InlineRedactionConfigurationUnionTypeDef = Union[
@@ -1303,7 +1320,7 @@ InlineRedactionConfigurationUnionTypeDef = Union[
1303
1320
 
1304
1321
 
1305
1322
  class ListSessionLoggersResponseTypeDef(TypedDict):
1306
- sessionLoggers: List[SessionLoggerSummaryTypeDef]
1323
+ sessionLoggers: list[SessionLoggerSummaryTypeDef]
1307
1324
  ResponseMetadata: ResponseMetadataTypeDef
1308
1325
  nextToken: NotRequired[str]
1309
1326