aws-cdk-lib 2.171.1__py3-none-any.whl → 2.172.0__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.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +471 -161
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.171.1.jsii.tgz → aws-cdk-lib@2.172.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +1314 -124
- aws_cdk/aws_appsync/__init__.py +159 -136
- aws_cdk/aws_autoscaling/__init__.py +81 -24
- aws_cdk/aws_bedrock/__init__.py +48 -0
- aws_cdk/aws_chatbot/__init__.py +775 -0
- aws_cdk/aws_cloudformation/__init__.py +240 -159
- aws_cdk/aws_cloudfront/__init__.py +11 -5
- aws_cdk/aws_cloudtrail/__init__.py +753 -0
- aws_cdk/aws_cognito/__init__.py +825 -4
- aws_cdk/aws_connect/__init__.py +429 -0
- aws_cdk/aws_customerprofiles/__init__.py +3148 -0
- aws_cdk/aws_ec2/__init__.py +872 -5
- aws_cdk/aws_ecs/__init__.py +12 -7
- aws_cdk/aws_eks/__init__.py +709 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +309 -55
- aws_cdk/aws_events/__init__.py +515 -8
- aws_cdk/aws_iot/__init__.py +42 -4
- aws_cdk/aws_iotfleetwise/__init__.py +510 -0
- aws_cdk/aws_iotsitewise/__init__.py +156 -0
- aws_cdk/aws_lambda/__init__.py +14 -8
- aws_cdk/aws_lambda_event_sources/__init__.py +2 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +11 -11
- aws_cdk/aws_m2/__init__.py +289 -0
- aws_cdk/aws_mwaa/__init__.py +6 -6
- aws_cdk/aws_opensearchserverless/__init__.py +249 -1
- aws_cdk/aws_pipes/__init__.py +14 -30
- aws_cdk/aws_qbusiness/__init__.py +3 -1
- aws_cdk/aws_quicksight/__init__.py +8270 -10
- aws_cdk/aws_rbin/__init__.py +53 -34
- aws_cdk/aws_rds/__init__.py +140 -8
- aws_cdk/aws_resourcegroups/__init__.py +349 -0
- aws_cdk/aws_route53_targets/__init__.py +82 -0
- aws_cdk/aws_route53resolver/__init__.py +15 -6
- aws_cdk/aws_s3express/__init__.py +403 -2
- aws_cdk/aws_sagemaker/__init__.py +124 -112
- aws_cdk/aws_ses/__init__.py +79 -41
- aws_cdk/aws_wisdom/__init__.py +4713 -172
- aws_cdk/aws_workspacesweb/__init__.py +1024 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/RECORD +47 -47
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/top_level.txt +0 -0
|
@@ -377,6 +377,872 @@ class CfnBrowserSettingsProps:
|
|
|
377
377
|
)
|
|
378
378
|
|
|
379
379
|
|
|
380
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
381
|
+
class CfnDataProtectionSettings(
|
|
382
|
+
_CfnResource_9df397a6,
|
|
383
|
+
metaclass=jsii.JSIIMeta,
|
|
384
|
+
jsii_type="aws-cdk-lib.aws_workspacesweb.CfnDataProtectionSettings",
|
|
385
|
+
):
|
|
386
|
+
'''Definition of AWS::WorkSpacesWeb::DataProtectionSettings Resource Type.
|
|
387
|
+
|
|
388
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-dataprotectionsettings.html
|
|
389
|
+
:cloudformationResource: AWS::WorkSpacesWeb::DataProtectionSettings
|
|
390
|
+
:exampleMetadata: fixture=_generated
|
|
391
|
+
|
|
392
|
+
Example::
|
|
393
|
+
|
|
394
|
+
# The code below shows an example of how to instantiate this type.
|
|
395
|
+
# The values are placeholders you should change.
|
|
396
|
+
from aws_cdk import aws_workspacesweb as workspacesweb
|
|
397
|
+
|
|
398
|
+
cfn_data_protection_settings = workspacesweb.CfnDataProtectionSettings(self, "MyCfnDataProtectionSettings",
|
|
399
|
+
additional_encryption_context={
|
|
400
|
+
"additional_encryption_context_key": "additionalEncryptionContext"
|
|
401
|
+
},
|
|
402
|
+
customer_managed_key="customerManagedKey",
|
|
403
|
+
description="description",
|
|
404
|
+
display_name="displayName",
|
|
405
|
+
inline_redaction_configuration=workspacesweb.CfnDataProtectionSettings.InlineRedactionConfigurationProperty(
|
|
406
|
+
inline_redaction_patterns=[workspacesweb.CfnDataProtectionSettings.InlineRedactionPatternProperty(
|
|
407
|
+
redaction_place_holder=workspacesweb.CfnDataProtectionSettings.RedactionPlaceHolderProperty(
|
|
408
|
+
redaction_place_holder_type="redactionPlaceHolderType",
|
|
409
|
+
|
|
410
|
+
# the properties below are optional
|
|
411
|
+
redaction_place_holder_text="redactionPlaceHolderText"
|
|
412
|
+
),
|
|
413
|
+
|
|
414
|
+
# the properties below are optional
|
|
415
|
+
built_in_pattern_id="builtInPatternId",
|
|
416
|
+
confidence_level=123,
|
|
417
|
+
custom_pattern=workspacesweb.CfnDataProtectionSettings.CustomPatternProperty(
|
|
418
|
+
pattern_name="patternName",
|
|
419
|
+
pattern_regex="patternRegex",
|
|
420
|
+
|
|
421
|
+
# the properties below are optional
|
|
422
|
+
keyword_regex="keywordRegex",
|
|
423
|
+
pattern_description="patternDescription"
|
|
424
|
+
),
|
|
425
|
+
enforced_urls=["enforcedUrls"],
|
|
426
|
+
exempt_urls=["exemptUrls"]
|
|
427
|
+
)],
|
|
428
|
+
|
|
429
|
+
# the properties below are optional
|
|
430
|
+
global_confidence_level=123,
|
|
431
|
+
global_enforced_urls=["globalEnforcedUrls"],
|
|
432
|
+
global_exempt_urls=["globalExemptUrls"]
|
|
433
|
+
),
|
|
434
|
+
tags=[CfnTag(
|
|
435
|
+
key="key",
|
|
436
|
+
value="value"
|
|
437
|
+
)]
|
|
438
|
+
)
|
|
439
|
+
'''
|
|
440
|
+
|
|
441
|
+
def __init__(
|
|
442
|
+
self,
|
|
443
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
444
|
+
id: builtins.str,
|
|
445
|
+
*,
|
|
446
|
+
additional_encryption_context: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
|
|
447
|
+
customer_managed_key: typing.Optional[builtins.str] = None,
|
|
448
|
+
description: typing.Optional[builtins.str] = None,
|
|
449
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
450
|
+
inline_redaction_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataProtectionSettings.InlineRedactionConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
451
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
452
|
+
) -> None:
|
|
453
|
+
'''
|
|
454
|
+
:param scope: Scope in which this resource is defined.
|
|
455
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
456
|
+
:param additional_encryption_context:
|
|
457
|
+
:param customer_managed_key:
|
|
458
|
+
:param description:
|
|
459
|
+
:param display_name:
|
|
460
|
+
:param inline_redaction_configuration:
|
|
461
|
+
:param tags:
|
|
462
|
+
'''
|
|
463
|
+
if __debug__:
|
|
464
|
+
type_hints = typing.get_type_hints(_typecheckingstub__851565cba0af7c67b6951a864a7d6671af0039654a56671ed86d28919552d73e)
|
|
465
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
466
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
467
|
+
props = CfnDataProtectionSettingsProps(
|
|
468
|
+
additional_encryption_context=additional_encryption_context,
|
|
469
|
+
customer_managed_key=customer_managed_key,
|
|
470
|
+
description=description,
|
|
471
|
+
display_name=display_name,
|
|
472
|
+
inline_redaction_configuration=inline_redaction_configuration,
|
|
473
|
+
tags=tags,
|
|
474
|
+
)
|
|
475
|
+
|
|
476
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
477
|
+
|
|
478
|
+
@jsii.member(jsii_name="inspect")
|
|
479
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
480
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
481
|
+
|
|
482
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
483
|
+
'''
|
|
484
|
+
if __debug__:
|
|
485
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3afc83d9e43528cc13b5abd50d4826acf870643c24640ed022e2bd621b1dec5f)
|
|
486
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
487
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
488
|
+
|
|
489
|
+
@jsii.member(jsii_name="renderProperties")
|
|
490
|
+
def _render_properties(
|
|
491
|
+
self,
|
|
492
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
493
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
494
|
+
'''
|
|
495
|
+
:param props: -
|
|
496
|
+
'''
|
|
497
|
+
if __debug__:
|
|
498
|
+
type_hints = typing.get_type_hints(_typecheckingstub__029b8eb91b5f7341d86b33581460523348eedfa665657364ac1293ba7954ad5e)
|
|
499
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
500
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
501
|
+
|
|
502
|
+
@jsii.python.classproperty
|
|
503
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
504
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
505
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
506
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
507
|
+
|
|
508
|
+
@builtins.property
|
|
509
|
+
@jsii.member(jsii_name="attrAssociatedPortalArns")
|
|
510
|
+
def attr_associated_portal_arns(self) -> typing.List[builtins.str]:
|
|
511
|
+
'''
|
|
512
|
+
:cloudformationAttribute: AssociatedPortalArns
|
|
513
|
+
'''
|
|
514
|
+
return typing.cast(typing.List[builtins.str], jsii.get(self, "attrAssociatedPortalArns"))
|
|
515
|
+
|
|
516
|
+
@builtins.property
|
|
517
|
+
@jsii.member(jsii_name="attrCreationDate")
|
|
518
|
+
def attr_creation_date(self) -> builtins.str:
|
|
519
|
+
'''
|
|
520
|
+
:cloudformationAttribute: CreationDate
|
|
521
|
+
'''
|
|
522
|
+
return typing.cast(builtins.str, jsii.get(self, "attrCreationDate"))
|
|
523
|
+
|
|
524
|
+
@builtins.property
|
|
525
|
+
@jsii.member(jsii_name="attrDataProtectionSettingsArn")
|
|
526
|
+
def attr_data_protection_settings_arn(self) -> builtins.str:
|
|
527
|
+
'''
|
|
528
|
+
:cloudformationAttribute: DataProtectionSettingsArn
|
|
529
|
+
'''
|
|
530
|
+
return typing.cast(builtins.str, jsii.get(self, "attrDataProtectionSettingsArn"))
|
|
531
|
+
|
|
532
|
+
@builtins.property
|
|
533
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
534
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
535
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
536
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
537
|
+
|
|
538
|
+
@builtins.property
|
|
539
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
540
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
541
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
542
|
+
|
|
543
|
+
@builtins.property
|
|
544
|
+
@jsii.member(jsii_name="additionalEncryptionContext")
|
|
545
|
+
def additional_encryption_context(
|
|
546
|
+
self,
|
|
547
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
|
|
548
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]], jsii.get(self, "additionalEncryptionContext"))
|
|
549
|
+
|
|
550
|
+
@additional_encryption_context.setter
|
|
551
|
+
def additional_encryption_context(
|
|
552
|
+
self,
|
|
553
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]],
|
|
554
|
+
) -> None:
|
|
555
|
+
if __debug__:
|
|
556
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3fb99479367371b2a6c52e976d47a87740ba2c6f65f4fcf0c11ef7787923a279)
|
|
557
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
558
|
+
jsii.set(self, "additionalEncryptionContext", value) # pyright: ignore[reportArgumentType]
|
|
559
|
+
|
|
560
|
+
@builtins.property
|
|
561
|
+
@jsii.member(jsii_name="customerManagedKey")
|
|
562
|
+
def customer_managed_key(self) -> typing.Optional[builtins.str]:
|
|
563
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "customerManagedKey"))
|
|
564
|
+
|
|
565
|
+
@customer_managed_key.setter
|
|
566
|
+
def customer_managed_key(self, value: typing.Optional[builtins.str]) -> None:
|
|
567
|
+
if __debug__:
|
|
568
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b8794b55f834ff23fceefb4949f1c9ca0f88d0253e16fe02de823fd78e704f6a)
|
|
569
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
570
|
+
jsii.set(self, "customerManagedKey", value) # pyright: ignore[reportArgumentType]
|
|
571
|
+
|
|
572
|
+
@builtins.property
|
|
573
|
+
@jsii.member(jsii_name="description")
|
|
574
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
575
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
576
|
+
|
|
577
|
+
@description.setter
|
|
578
|
+
def description(self, value: typing.Optional[builtins.str]) -> None:
|
|
579
|
+
if __debug__:
|
|
580
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7e6f16d355910af3e0d25ae4869bb9019e44d7bb8454311659d9581fbff7ad5f)
|
|
581
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
582
|
+
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
583
|
+
|
|
584
|
+
@builtins.property
|
|
585
|
+
@jsii.member(jsii_name="displayName")
|
|
586
|
+
def display_name(self) -> typing.Optional[builtins.str]:
|
|
587
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "displayName"))
|
|
588
|
+
|
|
589
|
+
@display_name.setter
|
|
590
|
+
def display_name(self, value: typing.Optional[builtins.str]) -> None:
|
|
591
|
+
if __debug__:
|
|
592
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4bbbc104f6c3d94f0c1f63bd93d3ec5849325aa58b7e06f06e3c37f6b101823f)
|
|
593
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
594
|
+
jsii.set(self, "displayName", value) # pyright: ignore[reportArgumentType]
|
|
595
|
+
|
|
596
|
+
@builtins.property
|
|
597
|
+
@jsii.member(jsii_name="inlineRedactionConfiguration")
|
|
598
|
+
def inline_redaction_configuration(
|
|
599
|
+
self,
|
|
600
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.InlineRedactionConfigurationProperty"]]:
|
|
601
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.InlineRedactionConfigurationProperty"]], jsii.get(self, "inlineRedactionConfiguration"))
|
|
602
|
+
|
|
603
|
+
@inline_redaction_configuration.setter
|
|
604
|
+
def inline_redaction_configuration(
|
|
605
|
+
self,
|
|
606
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.InlineRedactionConfigurationProperty"]],
|
|
607
|
+
) -> None:
|
|
608
|
+
if __debug__:
|
|
609
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a80d3be6cd6ed07f4c7a5f51acbace505548a335789227fb3e70735f66c484f6)
|
|
610
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
611
|
+
jsii.set(self, "inlineRedactionConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
612
|
+
|
|
613
|
+
@builtins.property
|
|
614
|
+
@jsii.member(jsii_name="tags")
|
|
615
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
616
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
617
|
+
|
|
618
|
+
@tags.setter
|
|
619
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
620
|
+
if __debug__:
|
|
621
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d82a664a0d9b6e2a4f59784e5f13b3f39994ef205d8513718b40fba2b6daf513)
|
|
622
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
623
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
624
|
+
|
|
625
|
+
@jsii.data_type(
|
|
626
|
+
jsii_type="aws-cdk-lib.aws_workspacesweb.CfnDataProtectionSettings.CustomPatternProperty",
|
|
627
|
+
jsii_struct_bases=[],
|
|
628
|
+
name_mapping={
|
|
629
|
+
"pattern_name": "patternName",
|
|
630
|
+
"pattern_regex": "patternRegex",
|
|
631
|
+
"keyword_regex": "keywordRegex",
|
|
632
|
+
"pattern_description": "patternDescription",
|
|
633
|
+
},
|
|
634
|
+
)
|
|
635
|
+
class CustomPatternProperty:
|
|
636
|
+
def __init__(
|
|
637
|
+
self,
|
|
638
|
+
*,
|
|
639
|
+
pattern_name: builtins.str,
|
|
640
|
+
pattern_regex: builtins.str,
|
|
641
|
+
keyword_regex: typing.Optional[builtins.str] = None,
|
|
642
|
+
pattern_description: typing.Optional[builtins.str] = None,
|
|
643
|
+
) -> None:
|
|
644
|
+
'''
|
|
645
|
+
:param pattern_name:
|
|
646
|
+
:param pattern_regex:
|
|
647
|
+
:param keyword_regex:
|
|
648
|
+
:param pattern_description:
|
|
649
|
+
|
|
650
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-custompattern.html
|
|
651
|
+
:exampleMetadata: fixture=_generated
|
|
652
|
+
|
|
653
|
+
Example::
|
|
654
|
+
|
|
655
|
+
# The code below shows an example of how to instantiate this type.
|
|
656
|
+
# The values are placeholders you should change.
|
|
657
|
+
from aws_cdk import aws_workspacesweb as workspacesweb
|
|
658
|
+
|
|
659
|
+
custom_pattern_property = workspacesweb.CfnDataProtectionSettings.CustomPatternProperty(
|
|
660
|
+
pattern_name="patternName",
|
|
661
|
+
pattern_regex="patternRegex",
|
|
662
|
+
|
|
663
|
+
# the properties below are optional
|
|
664
|
+
keyword_regex="keywordRegex",
|
|
665
|
+
pattern_description="patternDescription"
|
|
666
|
+
)
|
|
667
|
+
'''
|
|
668
|
+
if __debug__:
|
|
669
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6114d751d2647346cb8b4fe7fc495c1b5e4ec1ffbe6904abf91d6b44adec7548)
|
|
670
|
+
check_type(argname="argument pattern_name", value=pattern_name, expected_type=type_hints["pattern_name"])
|
|
671
|
+
check_type(argname="argument pattern_regex", value=pattern_regex, expected_type=type_hints["pattern_regex"])
|
|
672
|
+
check_type(argname="argument keyword_regex", value=keyword_regex, expected_type=type_hints["keyword_regex"])
|
|
673
|
+
check_type(argname="argument pattern_description", value=pattern_description, expected_type=type_hints["pattern_description"])
|
|
674
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
675
|
+
"pattern_name": pattern_name,
|
|
676
|
+
"pattern_regex": pattern_regex,
|
|
677
|
+
}
|
|
678
|
+
if keyword_regex is not None:
|
|
679
|
+
self._values["keyword_regex"] = keyword_regex
|
|
680
|
+
if pattern_description is not None:
|
|
681
|
+
self._values["pattern_description"] = pattern_description
|
|
682
|
+
|
|
683
|
+
@builtins.property
|
|
684
|
+
def pattern_name(self) -> builtins.str:
|
|
685
|
+
'''
|
|
686
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-custompattern.html#cfn-workspacesweb-dataprotectionsettings-custompattern-patternname
|
|
687
|
+
'''
|
|
688
|
+
result = self._values.get("pattern_name")
|
|
689
|
+
assert result is not None, "Required property 'pattern_name' is missing"
|
|
690
|
+
return typing.cast(builtins.str, result)
|
|
691
|
+
|
|
692
|
+
@builtins.property
|
|
693
|
+
def pattern_regex(self) -> builtins.str:
|
|
694
|
+
'''
|
|
695
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-custompattern.html#cfn-workspacesweb-dataprotectionsettings-custompattern-patternregex
|
|
696
|
+
'''
|
|
697
|
+
result = self._values.get("pattern_regex")
|
|
698
|
+
assert result is not None, "Required property 'pattern_regex' is missing"
|
|
699
|
+
return typing.cast(builtins.str, result)
|
|
700
|
+
|
|
701
|
+
@builtins.property
|
|
702
|
+
def keyword_regex(self) -> typing.Optional[builtins.str]:
|
|
703
|
+
'''
|
|
704
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-custompattern.html#cfn-workspacesweb-dataprotectionsettings-custompattern-keywordregex
|
|
705
|
+
'''
|
|
706
|
+
result = self._values.get("keyword_regex")
|
|
707
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
708
|
+
|
|
709
|
+
@builtins.property
|
|
710
|
+
def pattern_description(self) -> typing.Optional[builtins.str]:
|
|
711
|
+
'''
|
|
712
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-custompattern.html#cfn-workspacesweb-dataprotectionsettings-custompattern-patterndescription
|
|
713
|
+
'''
|
|
714
|
+
result = self._values.get("pattern_description")
|
|
715
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
716
|
+
|
|
717
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
718
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
719
|
+
|
|
720
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
721
|
+
return not (rhs == self)
|
|
722
|
+
|
|
723
|
+
def __repr__(self) -> str:
|
|
724
|
+
return "CustomPatternProperty(%s)" % ", ".join(
|
|
725
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
726
|
+
)
|
|
727
|
+
|
|
728
|
+
@jsii.data_type(
|
|
729
|
+
jsii_type="aws-cdk-lib.aws_workspacesweb.CfnDataProtectionSettings.InlineRedactionConfigurationProperty",
|
|
730
|
+
jsii_struct_bases=[],
|
|
731
|
+
name_mapping={
|
|
732
|
+
"inline_redaction_patterns": "inlineRedactionPatterns",
|
|
733
|
+
"global_confidence_level": "globalConfidenceLevel",
|
|
734
|
+
"global_enforced_urls": "globalEnforcedUrls",
|
|
735
|
+
"global_exempt_urls": "globalExemptUrls",
|
|
736
|
+
},
|
|
737
|
+
)
|
|
738
|
+
class InlineRedactionConfigurationProperty:
|
|
739
|
+
def __init__(
|
|
740
|
+
self,
|
|
741
|
+
*,
|
|
742
|
+
inline_redaction_patterns: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataProtectionSettings.InlineRedactionPatternProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
743
|
+
global_confidence_level: typing.Optional[jsii.Number] = None,
|
|
744
|
+
global_enforced_urls: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
745
|
+
global_exempt_urls: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
746
|
+
) -> None:
|
|
747
|
+
'''
|
|
748
|
+
:param inline_redaction_patterns:
|
|
749
|
+
:param global_confidence_level:
|
|
750
|
+
:param global_enforced_urls:
|
|
751
|
+
:param global_exempt_urls:
|
|
752
|
+
|
|
753
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html
|
|
754
|
+
:exampleMetadata: fixture=_generated
|
|
755
|
+
|
|
756
|
+
Example::
|
|
757
|
+
|
|
758
|
+
# The code below shows an example of how to instantiate this type.
|
|
759
|
+
# The values are placeholders you should change.
|
|
760
|
+
from aws_cdk import aws_workspacesweb as workspacesweb
|
|
761
|
+
|
|
762
|
+
inline_redaction_configuration_property = workspacesweb.CfnDataProtectionSettings.InlineRedactionConfigurationProperty(
|
|
763
|
+
inline_redaction_patterns=[workspacesweb.CfnDataProtectionSettings.InlineRedactionPatternProperty(
|
|
764
|
+
redaction_place_holder=workspacesweb.CfnDataProtectionSettings.RedactionPlaceHolderProperty(
|
|
765
|
+
redaction_place_holder_type="redactionPlaceHolderType",
|
|
766
|
+
|
|
767
|
+
# the properties below are optional
|
|
768
|
+
redaction_place_holder_text="redactionPlaceHolderText"
|
|
769
|
+
),
|
|
770
|
+
|
|
771
|
+
# the properties below are optional
|
|
772
|
+
built_in_pattern_id="builtInPatternId",
|
|
773
|
+
confidence_level=123,
|
|
774
|
+
custom_pattern=workspacesweb.CfnDataProtectionSettings.CustomPatternProperty(
|
|
775
|
+
pattern_name="patternName",
|
|
776
|
+
pattern_regex="patternRegex",
|
|
777
|
+
|
|
778
|
+
# the properties below are optional
|
|
779
|
+
keyword_regex="keywordRegex",
|
|
780
|
+
pattern_description="patternDescription"
|
|
781
|
+
),
|
|
782
|
+
enforced_urls=["enforcedUrls"],
|
|
783
|
+
exempt_urls=["exemptUrls"]
|
|
784
|
+
)],
|
|
785
|
+
|
|
786
|
+
# the properties below are optional
|
|
787
|
+
global_confidence_level=123,
|
|
788
|
+
global_enforced_urls=["globalEnforcedUrls"],
|
|
789
|
+
global_exempt_urls=["globalExemptUrls"]
|
|
790
|
+
)
|
|
791
|
+
'''
|
|
792
|
+
if __debug__:
|
|
793
|
+
type_hints = typing.get_type_hints(_typecheckingstub__552bfd927d431d6795b0b5add23e48f1a25b4db6addb149426e81afc6686dc63)
|
|
794
|
+
check_type(argname="argument inline_redaction_patterns", value=inline_redaction_patterns, expected_type=type_hints["inline_redaction_patterns"])
|
|
795
|
+
check_type(argname="argument global_confidence_level", value=global_confidence_level, expected_type=type_hints["global_confidence_level"])
|
|
796
|
+
check_type(argname="argument global_enforced_urls", value=global_enforced_urls, expected_type=type_hints["global_enforced_urls"])
|
|
797
|
+
check_type(argname="argument global_exempt_urls", value=global_exempt_urls, expected_type=type_hints["global_exempt_urls"])
|
|
798
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
799
|
+
"inline_redaction_patterns": inline_redaction_patterns,
|
|
800
|
+
}
|
|
801
|
+
if global_confidence_level is not None:
|
|
802
|
+
self._values["global_confidence_level"] = global_confidence_level
|
|
803
|
+
if global_enforced_urls is not None:
|
|
804
|
+
self._values["global_enforced_urls"] = global_enforced_urls
|
|
805
|
+
if global_exempt_urls is not None:
|
|
806
|
+
self._values["global_exempt_urls"] = global_exempt_urls
|
|
807
|
+
|
|
808
|
+
@builtins.property
|
|
809
|
+
def inline_redaction_patterns(
|
|
810
|
+
self,
|
|
811
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.InlineRedactionPatternProperty"]]]:
|
|
812
|
+
'''
|
|
813
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration-inlineredactionpatterns
|
|
814
|
+
'''
|
|
815
|
+
result = self._values.get("inline_redaction_patterns")
|
|
816
|
+
assert result is not None, "Required property 'inline_redaction_patterns' is missing"
|
|
817
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.InlineRedactionPatternProperty"]]], result)
|
|
818
|
+
|
|
819
|
+
@builtins.property
|
|
820
|
+
def global_confidence_level(self) -> typing.Optional[jsii.Number]:
|
|
821
|
+
'''
|
|
822
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration-globalconfidencelevel
|
|
823
|
+
'''
|
|
824
|
+
result = self._values.get("global_confidence_level")
|
|
825
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
826
|
+
|
|
827
|
+
@builtins.property
|
|
828
|
+
def global_enforced_urls(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
829
|
+
'''
|
|
830
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration-globalenforcedurls
|
|
831
|
+
'''
|
|
832
|
+
result = self._values.get("global_enforced_urls")
|
|
833
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
834
|
+
|
|
835
|
+
@builtins.property
|
|
836
|
+
def global_exempt_urls(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
837
|
+
'''
|
|
838
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionconfiguration.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration-globalexempturls
|
|
839
|
+
'''
|
|
840
|
+
result = self._values.get("global_exempt_urls")
|
|
841
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
842
|
+
|
|
843
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
844
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
845
|
+
|
|
846
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
847
|
+
return not (rhs == self)
|
|
848
|
+
|
|
849
|
+
def __repr__(self) -> str:
|
|
850
|
+
return "InlineRedactionConfigurationProperty(%s)" % ", ".join(
|
|
851
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
852
|
+
)
|
|
853
|
+
|
|
854
|
+
@jsii.data_type(
|
|
855
|
+
jsii_type="aws-cdk-lib.aws_workspacesweb.CfnDataProtectionSettings.InlineRedactionPatternProperty",
|
|
856
|
+
jsii_struct_bases=[],
|
|
857
|
+
name_mapping={
|
|
858
|
+
"redaction_place_holder": "redactionPlaceHolder",
|
|
859
|
+
"built_in_pattern_id": "builtInPatternId",
|
|
860
|
+
"confidence_level": "confidenceLevel",
|
|
861
|
+
"custom_pattern": "customPattern",
|
|
862
|
+
"enforced_urls": "enforcedUrls",
|
|
863
|
+
"exempt_urls": "exemptUrls",
|
|
864
|
+
},
|
|
865
|
+
)
|
|
866
|
+
class InlineRedactionPatternProperty:
|
|
867
|
+
def __init__(
|
|
868
|
+
self,
|
|
869
|
+
*,
|
|
870
|
+
redaction_place_holder: typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataProtectionSettings.RedactionPlaceHolderProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
871
|
+
built_in_pattern_id: typing.Optional[builtins.str] = None,
|
|
872
|
+
confidence_level: typing.Optional[jsii.Number] = None,
|
|
873
|
+
custom_pattern: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataProtectionSettings.CustomPatternProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
874
|
+
enforced_urls: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
875
|
+
exempt_urls: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
876
|
+
) -> None:
|
|
877
|
+
'''
|
|
878
|
+
:param redaction_place_holder:
|
|
879
|
+
:param built_in_pattern_id:
|
|
880
|
+
:param confidence_level:
|
|
881
|
+
:param custom_pattern:
|
|
882
|
+
:param enforced_urls:
|
|
883
|
+
:param exempt_urls:
|
|
884
|
+
|
|
885
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionpattern.html
|
|
886
|
+
:exampleMetadata: fixture=_generated
|
|
887
|
+
|
|
888
|
+
Example::
|
|
889
|
+
|
|
890
|
+
# The code below shows an example of how to instantiate this type.
|
|
891
|
+
# The values are placeholders you should change.
|
|
892
|
+
from aws_cdk import aws_workspacesweb as workspacesweb
|
|
893
|
+
|
|
894
|
+
inline_redaction_pattern_property = workspacesweb.CfnDataProtectionSettings.InlineRedactionPatternProperty(
|
|
895
|
+
redaction_place_holder=workspacesweb.CfnDataProtectionSettings.RedactionPlaceHolderProperty(
|
|
896
|
+
redaction_place_holder_type="redactionPlaceHolderType",
|
|
897
|
+
|
|
898
|
+
# the properties below are optional
|
|
899
|
+
redaction_place_holder_text="redactionPlaceHolderText"
|
|
900
|
+
),
|
|
901
|
+
|
|
902
|
+
# the properties below are optional
|
|
903
|
+
built_in_pattern_id="builtInPatternId",
|
|
904
|
+
confidence_level=123,
|
|
905
|
+
custom_pattern=workspacesweb.CfnDataProtectionSettings.CustomPatternProperty(
|
|
906
|
+
pattern_name="patternName",
|
|
907
|
+
pattern_regex="patternRegex",
|
|
908
|
+
|
|
909
|
+
# the properties below are optional
|
|
910
|
+
keyword_regex="keywordRegex",
|
|
911
|
+
pattern_description="patternDescription"
|
|
912
|
+
),
|
|
913
|
+
enforced_urls=["enforcedUrls"],
|
|
914
|
+
exempt_urls=["exemptUrls"]
|
|
915
|
+
)
|
|
916
|
+
'''
|
|
917
|
+
if __debug__:
|
|
918
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f28e305e326d3f4c9ac306ecac6e0d132c560d8cb368e6c1d255bce2256c5953)
|
|
919
|
+
check_type(argname="argument redaction_place_holder", value=redaction_place_holder, expected_type=type_hints["redaction_place_holder"])
|
|
920
|
+
check_type(argname="argument built_in_pattern_id", value=built_in_pattern_id, expected_type=type_hints["built_in_pattern_id"])
|
|
921
|
+
check_type(argname="argument confidence_level", value=confidence_level, expected_type=type_hints["confidence_level"])
|
|
922
|
+
check_type(argname="argument custom_pattern", value=custom_pattern, expected_type=type_hints["custom_pattern"])
|
|
923
|
+
check_type(argname="argument enforced_urls", value=enforced_urls, expected_type=type_hints["enforced_urls"])
|
|
924
|
+
check_type(argname="argument exempt_urls", value=exempt_urls, expected_type=type_hints["exempt_urls"])
|
|
925
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
926
|
+
"redaction_place_holder": redaction_place_holder,
|
|
927
|
+
}
|
|
928
|
+
if built_in_pattern_id is not None:
|
|
929
|
+
self._values["built_in_pattern_id"] = built_in_pattern_id
|
|
930
|
+
if confidence_level is not None:
|
|
931
|
+
self._values["confidence_level"] = confidence_level
|
|
932
|
+
if custom_pattern is not None:
|
|
933
|
+
self._values["custom_pattern"] = custom_pattern
|
|
934
|
+
if enforced_urls is not None:
|
|
935
|
+
self._values["enforced_urls"] = enforced_urls
|
|
936
|
+
if exempt_urls is not None:
|
|
937
|
+
self._values["exempt_urls"] = exempt_urls
|
|
938
|
+
|
|
939
|
+
@builtins.property
|
|
940
|
+
def redaction_place_holder(
|
|
941
|
+
self,
|
|
942
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.RedactionPlaceHolderProperty"]:
|
|
943
|
+
'''
|
|
944
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionpattern.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionpattern-redactionplaceholder
|
|
945
|
+
'''
|
|
946
|
+
result = self._values.get("redaction_place_holder")
|
|
947
|
+
assert result is not None, "Required property 'redaction_place_holder' is missing"
|
|
948
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.RedactionPlaceHolderProperty"], result)
|
|
949
|
+
|
|
950
|
+
@builtins.property
|
|
951
|
+
def built_in_pattern_id(self) -> typing.Optional[builtins.str]:
|
|
952
|
+
'''
|
|
953
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionpattern.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionpattern-builtinpatternid
|
|
954
|
+
'''
|
|
955
|
+
result = self._values.get("built_in_pattern_id")
|
|
956
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
957
|
+
|
|
958
|
+
@builtins.property
|
|
959
|
+
def confidence_level(self) -> typing.Optional[jsii.Number]:
|
|
960
|
+
'''
|
|
961
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionpattern.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionpattern-confidencelevel
|
|
962
|
+
'''
|
|
963
|
+
result = self._values.get("confidence_level")
|
|
964
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
965
|
+
|
|
966
|
+
@builtins.property
|
|
967
|
+
def custom_pattern(
|
|
968
|
+
self,
|
|
969
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.CustomPatternProperty"]]:
|
|
970
|
+
'''
|
|
971
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionpattern.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionpattern-custompattern
|
|
972
|
+
'''
|
|
973
|
+
result = self._values.get("custom_pattern")
|
|
974
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataProtectionSettings.CustomPatternProperty"]], result)
|
|
975
|
+
|
|
976
|
+
@builtins.property
|
|
977
|
+
def enforced_urls(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
978
|
+
'''
|
|
979
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionpattern.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionpattern-enforcedurls
|
|
980
|
+
'''
|
|
981
|
+
result = self._values.get("enforced_urls")
|
|
982
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
983
|
+
|
|
984
|
+
@builtins.property
|
|
985
|
+
def exempt_urls(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
986
|
+
'''
|
|
987
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-inlineredactionpattern.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionpattern-exempturls
|
|
988
|
+
'''
|
|
989
|
+
result = self._values.get("exempt_urls")
|
|
990
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
991
|
+
|
|
992
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
993
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
994
|
+
|
|
995
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
996
|
+
return not (rhs == self)
|
|
997
|
+
|
|
998
|
+
def __repr__(self) -> str:
|
|
999
|
+
return "InlineRedactionPatternProperty(%s)" % ", ".join(
|
|
1000
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1001
|
+
)
|
|
1002
|
+
|
|
1003
|
+
@jsii.data_type(
|
|
1004
|
+
jsii_type="aws-cdk-lib.aws_workspacesweb.CfnDataProtectionSettings.RedactionPlaceHolderProperty",
|
|
1005
|
+
jsii_struct_bases=[],
|
|
1006
|
+
name_mapping={
|
|
1007
|
+
"redaction_place_holder_type": "redactionPlaceHolderType",
|
|
1008
|
+
"redaction_place_holder_text": "redactionPlaceHolderText",
|
|
1009
|
+
},
|
|
1010
|
+
)
|
|
1011
|
+
class RedactionPlaceHolderProperty:
|
|
1012
|
+
def __init__(
|
|
1013
|
+
self,
|
|
1014
|
+
*,
|
|
1015
|
+
redaction_place_holder_type: builtins.str,
|
|
1016
|
+
redaction_place_holder_text: typing.Optional[builtins.str] = None,
|
|
1017
|
+
) -> None:
|
|
1018
|
+
'''
|
|
1019
|
+
:param redaction_place_holder_type:
|
|
1020
|
+
:param redaction_place_holder_text:
|
|
1021
|
+
|
|
1022
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-redactionplaceholder.html
|
|
1023
|
+
:exampleMetadata: fixture=_generated
|
|
1024
|
+
|
|
1025
|
+
Example::
|
|
1026
|
+
|
|
1027
|
+
# The code below shows an example of how to instantiate this type.
|
|
1028
|
+
# The values are placeholders you should change.
|
|
1029
|
+
from aws_cdk import aws_workspacesweb as workspacesweb
|
|
1030
|
+
|
|
1031
|
+
redaction_place_holder_property = workspacesweb.CfnDataProtectionSettings.RedactionPlaceHolderProperty(
|
|
1032
|
+
redaction_place_holder_type="redactionPlaceHolderType",
|
|
1033
|
+
|
|
1034
|
+
# the properties below are optional
|
|
1035
|
+
redaction_place_holder_text="redactionPlaceHolderText"
|
|
1036
|
+
)
|
|
1037
|
+
'''
|
|
1038
|
+
if __debug__:
|
|
1039
|
+
type_hints = typing.get_type_hints(_typecheckingstub__93e3fa90dfeb5ed27de42632610186e3eec8e8ee42bce56d7f8dcb07d9c19f53)
|
|
1040
|
+
check_type(argname="argument redaction_place_holder_type", value=redaction_place_holder_type, expected_type=type_hints["redaction_place_holder_type"])
|
|
1041
|
+
check_type(argname="argument redaction_place_holder_text", value=redaction_place_holder_text, expected_type=type_hints["redaction_place_holder_text"])
|
|
1042
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1043
|
+
"redaction_place_holder_type": redaction_place_holder_type,
|
|
1044
|
+
}
|
|
1045
|
+
if redaction_place_holder_text is not None:
|
|
1046
|
+
self._values["redaction_place_holder_text"] = redaction_place_holder_text
|
|
1047
|
+
|
|
1048
|
+
@builtins.property
|
|
1049
|
+
def redaction_place_holder_type(self) -> builtins.str:
|
|
1050
|
+
'''
|
|
1051
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-redactionplaceholder.html#cfn-workspacesweb-dataprotectionsettings-redactionplaceholder-redactionplaceholdertype
|
|
1052
|
+
'''
|
|
1053
|
+
result = self._values.get("redaction_place_holder_type")
|
|
1054
|
+
assert result is not None, "Required property 'redaction_place_holder_type' is missing"
|
|
1055
|
+
return typing.cast(builtins.str, result)
|
|
1056
|
+
|
|
1057
|
+
@builtins.property
|
|
1058
|
+
def redaction_place_holder_text(self) -> typing.Optional[builtins.str]:
|
|
1059
|
+
'''
|
|
1060
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-workspacesweb-dataprotectionsettings-redactionplaceholder.html#cfn-workspacesweb-dataprotectionsettings-redactionplaceholder-redactionplaceholdertext
|
|
1061
|
+
'''
|
|
1062
|
+
result = self._values.get("redaction_place_holder_text")
|
|
1063
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1064
|
+
|
|
1065
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1066
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1067
|
+
|
|
1068
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1069
|
+
return not (rhs == self)
|
|
1070
|
+
|
|
1071
|
+
def __repr__(self) -> str:
|
|
1072
|
+
return "RedactionPlaceHolderProperty(%s)" % ", ".join(
|
|
1073
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1074
|
+
)
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
@jsii.data_type(
|
|
1078
|
+
jsii_type="aws-cdk-lib.aws_workspacesweb.CfnDataProtectionSettingsProps",
|
|
1079
|
+
jsii_struct_bases=[],
|
|
1080
|
+
name_mapping={
|
|
1081
|
+
"additional_encryption_context": "additionalEncryptionContext",
|
|
1082
|
+
"customer_managed_key": "customerManagedKey",
|
|
1083
|
+
"description": "description",
|
|
1084
|
+
"display_name": "displayName",
|
|
1085
|
+
"inline_redaction_configuration": "inlineRedactionConfiguration",
|
|
1086
|
+
"tags": "tags",
|
|
1087
|
+
},
|
|
1088
|
+
)
|
|
1089
|
+
class CfnDataProtectionSettingsProps:
|
|
1090
|
+
def __init__(
|
|
1091
|
+
self,
|
|
1092
|
+
*,
|
|
1093
|
+
additional_encryption_context: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
|
|
1094
|
+
customer_managed_key: typing.Optional[builtins.str] = None,
|
|
1095
|
+
description: typing.Optional[builtins.str] = None,
|
|
1096
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
1097
|
+
inline_redaction_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataProtectionSettings.InlineRedactionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1098
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1099
|
+
) -> None:
|
|
1100
|
+
'''Properties for defining a ``CfnDataProtectionSettings``.
|
|
1101
|
+
|
|
1102
|
+
:param additional_encryption_context:
|
|
1103
|
+
:param customer_managed_key:
|
|
1104
|
+
:param description:
|
|
1105
|
+
:param display_name:
|
|
1106
|
+
:param inline_redaction_configuration:
|
|
1107
|
+
:param tags:
|
|
1108
|
+
|
|
1109
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-dataprotectionsettings.html
|
|
1110
|
+
:exampleMetadata: fixture=_generated
|
|
1111
|
+
|
|
1112
|
+
Example::
|
|
1113
|
+
|
|
1114
|
+
# The code below shows an example of how to instantiate this type.
|
|
1115
|
+
# The values are placeholders you should change.
|
|
1116
|
+
from aws_cdk import aws_workspacesweb as workspacesweb
|
|
1117
|
+
|
|
1118
|
+
cfn_data_protection_settings_props = workspacesweb.CfnDataProtectionSettingsProps(
|
|
1119
|
+
additional_encryption_context={
|
|
1120
|
+
"additional_encryption_context_key": "additionalEncryptionContext"
|
|
1121
|
+
},
|
|
1122
|
+
customer_managed_key="customerManagedKey",
|
|
1123
|
+
description="description",
|
|
1124
|
+
display_name="displayName",
|
|
1125
|
+
inline_redaction_configuration=workspacesweb.CfnDataProtectionSettings.InlineRedactionConfigurationProperty(
|
|
1126
|
+
inline_redaction_patterns=[workspacesweb.CfnDataProtectionSettings.InlineRedactionPatternProperty(
|
|
1127
|
+
redaction_place_holder=workspacesweb.CfnDataProtectionSettings.RedactionPlaceHolderProperty(
|
|
1128
|
+
redaction_place_holder_type="redactionPlaceHolderType",
|
|
1129
|
+
|
|
1130
|
+
# the properties below are optional
|
|
1131
|
+
redaction_place_holder_text="redactionPlaceHolderText"
|
|
1132
|
+
),
|
|
1133
|
+
|
|
1134
|
+
# the properties below are optional
|
|
1135
|
+
built_in_pattern_id="builtInPatternId",
|
|
1136
|
+
confidence_level=123,
|
|
1137
|
+
custom_pattern=workspacesweb.CfnDataProtectionSettings.CustomPatternProperty(
|
|
1138
|
+
pattern_name="patternName",
|
|
1139
|
+
pattern_regex="patternRegex",
|
|
1140
|
+
|
|
1141
|
+
# the properties below are optional
|
|
1142
|
+
keyword_regex="keywordRegex",
|
|
1143
|
+
pattern_description="patternDescription"
|
|
1144
|
+
),
|
|
1145
|
+
enforced_urls=["enforcedUrls"],
|
|
1146
|
+
exempt_urls=["exemptUrls"]
|
|
1147
|
+
)],
|
|
1148
|
+
|
|
1149
|
+
# the properties below are optional
|
|
1150
|
+
global_confidence_level=123,
|
|
1151
|
+
global_enforced_urls=["globalEnforcedUrls"],
|
|
1152
|
+
global_exempt_urls=["globalExemptUrls"]
|
|
1153
|
+
),
|
|
1154
|
+
tags=[CfnTag(
|
|
1155
|
+
key="key",
|
|
1156
|
+
value="value"
|
|
1157
|
+
)]
|
|
1158
|
+
)
|
|
1159
|
+
'''
|
|
1160
|
+
if __debug__:
|
|
1161
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9bd186c92264d6b6332cc9ff86b6f530f1f3d30da79101020cac77924b86ea5a)
|
|
1162
|
+
check_type(argname="argument additional_encryption_context", value=additional_encryption_context, expected_type=type_hints["additional_encryption_context"])
|
|
1163
|
+
check_type(argname="argument customer_managed_key", value=customer_managed_key, expected_type=type_hints["customer_managed_key"])
|
|
1164
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
1165
|
+
check_type(argname="argument display_name", value=display_name, expected_type=type_hints["display_name"])
|
|
1166
|
+
check_type(argname="argument inline_redaction_configuration", value=inline_redaction_configuration, expected_type=type_hints["inline_redaction_configuration"])
|
|
1167
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1168
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1169
|
+
if additional_encryption_context is not None:
|
|
1170
|
+
self._values["additional_encryption_context"] = additional_encryption_context
|
|
1171
|
+
if customer_managed_key is not None:
|
|
1172
|
+
self._values["customer_managed_key"] = customer_managed_key
|
|
1173
|
+
if description is not None:
|
|
1174
|
+
self._values["description"] = description
|
|
1175
|
+
if display_name is not None:
|
|
1176
|
+
self._values["display_name"] = display_name
|
|
1177
|
+
if inline_redaction_configuration is not None:
|
|
1178
|
+
self._values["inline_redaction_configuration"] = inline_redaction_configuration
|
|
1179
|
+
if tags is not None:
|
|
1180
|
+
self._values["tags"] = tags
|
|
1181
|
+
|
|
1182
|
+
@builtins.property
|
|
1183
|
+
def additional_encryption_context(
|
|
1184
|
+
self,
|
|
1185
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]]:
|
|
1186
|
+
'''
|
|
1187
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-dataprotectionsettings.html#cfn-workspacesweb-dataprotectionsettings-additionalencryptioncontext
|
|
1188
|
+
'''
|
|
1189
|
+
result = self._values.get("additional_encryption_context")
|
|
1190
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]], result)
|
|
1191
|
+
|
|
1192
|
+
@builtins.property
|
|
1193
|
+
def customer_managed_key(self) -> typing.Optional[builtins.str]:
|
|
1194
|
+
'''
|
|
1195
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-dataprotectionsettings.html#cfn-workspacesweb-dataprotectionsettings-customermanagedkey
|
|
1196
|
+
'''
|
|
1197
|
+
result = self._values.get("customer_managed_key")
|
|
1198
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1199
|
+
|
|
1200
|
+
@builtins.property
|
|
1201
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
1202
|
+
'''
|
|
1203
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-dataprotectionsettings.html#cfn-workspacesweb-dataprotectionsettings-description
|
|
1204
|
+
'''
|
|
1205
|
+
result = self._values.get("description")
|
|
1206
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1207
|
+
|
|
1208
|
+
@builtins.property
|
|
1209
|
+
def display_name(self) -> typing.Optional[builtins.str]:
|
|
1210
|
+
'''
|
|
1211
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-dataprotectionsettings.html#cfn-workspacesweb-dataprotectionsettings-displayname
|
|
1212
|
+
'''
|
|
1213
|
+
result = self._values.get("display_name")
|
|
1214
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1215
|
+
|
|
1216
|
+
@builtins.property
|
|
1217
|
+
def inline_redaction_configuration(
|
|
1218
|
+
self,
|
|
1219
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDataProtectionSettings.InlineRedactionConfigurationProperty]]:
|
|
1220
|
+
'''
|
|
1221
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-dataprotectionsettings.html#cfn-workspacesweb-dataprotectionsettings-inlineredactionconfiguration
|
|
1222
|
+
'''
|
|
1223
|
+
result = self._values.get("inline_redaction_configuration")
|
|
1224
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDataProtectionSettings.InlineRedactionConfigurationProperty]], result)
|
|
1225
|
+
|
|
1226
|
+
@builtins.property
|
|
1227
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1228
|
+
'''
|
|
1229
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-dataprotectionsettings.html#cfn-workspacesweb-dataprotectionsettings-tags
|
|
1230
|
+
'''
|
|
1231
|
+
result = self._values.get("tags")
|
|
1232
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
1233
|
+
|
|
1234
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1235
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1236
|
+
|
|
1237
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1238
|
+
return not (rhs == self)
|
|
1239
|
+
|
|
1240
|
+
def __repr__(self) -> str:
|
|
1241
|
+
return "CfnDataProtectionSettingsProps(%s)" % ", ".join(
|
|
1242
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1243
|
+
)
|
|
1244
|
+
|
|
1245
|
+
|
|
380
1246
|
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
381
1247
|
class CfnIdentityProvider(
|
|
382
1248
|
_CfnResource_9df397a6,
|
|
@@ -1534,6 +2400,7 @@ class CfnPortal(
|
|
|
1534
2400
|
authentication_type="authenticationType",
|
|
1535
2401
|
browser_settings_arn="browserSettingsArn",
|
|
1536
2402
|
customer_managed_key="customerManagedKey",
|
|
2403
|
+
data_protection_settings_arn="dataProtectionSettingsArn",
|
|
1537
2404
|
display_name="displayName",
|
|
1538
2405
|
instance_type="instanceType",
|
|
1539
2406
|
ip_access_settings_arn="ipAccessSettingsArn",
|
|
@@ -1558,6 +2425,7 @@ class CfnPortal(
|
|
|
1558
2425
|
authentication_type: typing.Optional[builtins.str] = None,
|
|
1559
2426
|
browser_settings_arn: typing.Optional[builtins.str] = None,
|
|
1560
2427
|
customer_managed_key: typing.Optional[builtins.str] = None,
|
|
2428
|
+
data_protection_settings_arn: typing.Optional[builtins.str] = None,
|
|
1561
2429
|
display_name: typing.Optional[builtins.str] = None,
|
|
1562
2430
|
instance_type: typing.Optional[builtins.str] = None,
|
|
1563
2431
|
ip_access_settings_arn: typing.Optional[builtins.str] = None,
|
|
@@ -1575,6 +2443,7 @@ class CfnPortal(
|
|
|
1575
2443
|
:param authentication_type: The type of authentication integration points used when signing into the web portal. Defaults to ``Standard`` . ``Standard`` web portals are authenticated directly through your identity provider (IdP). User and group access to your web portal is controlled through your IdP. You need to include an IdP resource in your template to integrate your IdP with your web portal. Completing the configuration for your IdP requires exchanging WorkSpaces Secure Browser’s SP metadata with your IdP’s IdP metadata. If your IdP requires the SP metadata first before returning the IdP metadata, you should follow these steps: 1. Create and deploy a CloudFormation template with a ``Standard`` portal with no ``IdentityProvider`` resource. 2. Retrieve the SP metadata using ``Fn:GetAtt`` , the WorkSpaces Secure Browser console, or by the calling the ``GetPortalServiceProviderMetadata`` API. 3. Submit the data to your IdP. 4. Add an ``IdentityProvider`` resource to your CloudFormation template. ``IAM Identity Center`` web portals are authenticated through AWS IAM Identity Center . They provide additional features, such as IdP-initiated authentication. Identity sources (including external identity provider integration) and other identity provider information must be configured in IAM Identity Center . User and group assignment must be done through the WorkSpaces Secure Browser console. These cannot be configured in CloudFormation.
|
|
1576
2444
|
:param browser_settings_arn: The ARN of the browser settings that is associated with this web portal.
|
|
1577
2445
|
:param customer_managed_key: The customer managed key of the web portal. *Pattern* : ``^arn:[\\w+=\\/,.@-]+:kms:[a-zA-Z0-9\\-]*:[a-zA-Z0-9]{1,12}:key\\/[a-zA-Z0-9-]+$``
|
|
2446
|
+
:param data_protection_settings_arn:
|
|
1578
2447
|
:param display_name: The name of the web portal.
|
|
1579
2448
|
:param instance_type: The type and resources of the underlying instance.
|
|
1580
2449
|
:param ip_access_settings_arn: The ARN of the IP access settings that is associated with the web portal.
|
|
@@ -1594,6 +2463,7 @@ class CfnPortal(
|
|
|
1594
2463
|
authentication_type=authentication_type,
|
|
1595
2464
|
browser_settings_arn=browser_settings_arn,
|
|
1596
2465
|
customer_managed_key=customer_managed_key,
|
|
2466
|
+
data_protection_settings_arn=data_protection_settings_arn,
|
|
1597
2467
|
display_name=display_name,
|
|
1598
2468
|
instance_type=instance_type,
|
|
1599
2469
|
ip_access_settings_arn=ip_access_settings_arn,
|
|
@@ -1780,6 +2650,21 @@ class CfnPortal(
|
|
|
1780
2650
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1781
2651
|
jsii.set(self, "customerManagedKey", value) # pyright: ignore[reportArgumentType]
|
|
1782
2652
|
|
|
2653
|
+
@builtins.property
|
|
2654
|
+
@jsii.member(jsii_name="dataProtectionSettingsArn")
|
|
2655
|
+
def data_protection_settings_arn(self) -> typing.Optional[builtins.str]:
|
|
2656
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "dataProtectionSettingsArn"))
|
|
2657
|
+
|
|
2658
|
+
@data_protection_settings_arn.setter
|
|
2659
|
+
def data_protection_settings_arn(
|
|
2660
|
+
self,
|
|
2661
|
+
value: typing.Optional[builtins.str],
|
|
2662
|
+
) -> None:
|
|
2663
|
+
if __debug__:
|
|
2664
|
+
type_hints = typing.get_type_hints(_typecheckingstub__dfde357dad34994249d2ece8cb99322e6a84a2af5763685459271a2545a12e6f)
|
|
2665
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2666
|
+
jsii.set(self, "dataProtectionSettingsArn", value) # pyright: ignore[reportArgumentType]
|
|
2667
|
+
|
|
1783
2668
|
@builtins.property
|
|
1784
2669
|
@jsii.member(jsii_name="displayName")
|
|
1785
2670
|
def display_name(self) -> typing.Optional[builtins.str]:
|
|
@@ -1909,6 +2794,7 @@ class CfnPortal(
|
|
|
1909
2794
|
"authentication_type": "authenticationType",
|
|
1910
2795
|
"browser_settings_arn": "browserSettingsArn",
|
|
1911
2796
|
"customer_managed_key": "customerManagedKey",
|
|
2797
|
+
"data_protection_settings_arn": "dataProtectionSettingsArn",
|
|
1912
2798
|
"display_name": "displayName",
|
|
1913
2799
|
"instance_type": "instanceType",
|
|
1914
2800
|
"ip_access_settings_arn": "ipAccessSettingsArn",
|
|
@@ -1928,6 +2814,7 @@ class CfnPortalProps:
|
|
|
1928
2814
|
authentication_type: typing.Optional[builtins.str] = None,
|
|
1929
2815
|
browser_settings_arn: typing.Optional[builtins.str] = None,
|
|
1930
2816
|
customer_managed_key: typing.Optional[builtins.str] = None,
|
|
2817
|
+
data_protection_settings_arn: typing.Optional[builtins.str] = None,
|
|
1931
2818
|
display_name: typing.Optional[builtins.str] = None,
|
|
1932
2819
|
instance_type: typing.Optional[builtins.str] = None,
|
|
1933
2820
|
ip_access_settings_arn: typing.Optional[builtins.str] = None,
|
|
@@ -1944,6 +2831,7 @@ class CfnPortalProps:
|
|
|
1944
2831
|
:param authentication_type: The type of authentication integration points used when signing into the web portal. Defaults to ``Standard`` . ``Standard`` web portals are authenticated directly through your identity provider (IdP). User and group access to your web portal is controlled through your IdP. You need to include an IdP resource in your template to integrate your IdP with your web portal. Completing the configuration for your IdP requires exchanging WorkSpaces Secure Browser’s SP metadata with your IdP’s IdP metadata. If your IdP requires the SP metadata first before returning the IdP metadata, you should follow these steps: 1. Create and deploy a CloudFormation template with a ``Standard`` portal with no ``IdentityProvider`` resource. 2. Retrieve the SP metadata using ``Fn:GetAtt`` , the WorkSpaces Secure Browser console, or by the calling the ``GetPortalServiceProviderMetadata`` API. 3. Submit the data to your IdP. 4. Add an ``IdentityProvider`` resource to your CloudFormation template. ``IAM Identity Center`` web portals are authenticated through AWS IAM Identity Center . They provide additional features, such as IdP-initiated authentication. Identity sources (including external identity provider integration) and other identity provider information must be configured in IAM Identity Center . User and group assignment must be done through the WorkSpaces Secure Browser console. These cannot be configured in CloudFormation.
|
|
1945
2832
|
:param browser_settings_arn: The ARN of the browser settings that is associated with this web portal.
|
|
1946
2833
|
:param customer_managed_key: The customer managed key of the web portal. *Pattern* : ``^arn:[\\w+=\\/,.@-]+:kms:[a-zA-Z0-9\\-]*:[a-zA-Z0-9]{1,12}:key\\/[a-zA-Z0-9-]+$``
|
|
2834
|
+
:param data_protection_settings_arn:
|
|
1947
2835
|
:param display_name: The name of the web portal.
|
|
1948
2836
|
:param instance_type: The type and resources of the underlying instance.
|
|
1949
2837
|
:param ip_access_settings_arn: The ARN of the IP access settings that is associated with the web portal.
|
|
@@ -1970,6 +2858,7 @@ class CfnPortalProps:
|
|
|
1970
2858
|
authentication_type="authenticationType",
|
|
1971
2859
|
browser_settings_arn="browserSettingsArn",
|
|
1972
2860
|
customer_managed_key="customerManagedKey",
|
|
2861
|
+
data_protection_settings_arn="dataProtectionSettingsArn",
|
|
1973
2862
|
display_name="displayName",
|
|
1974
2863
|
instance_type="instanceType",
|
|
1975
2864
|
ip_access_settings_arn="ipAccessSettingsArn",
|
|
@@ -1990,6 +2879,7 @@ class CfnPortalProps:
|
|
|
1990
2879
|
check_type(argname="argument authentication_type", value=authentication_type, expected_type=type_hints["authentication_type"])
|
|
1991
2880
|
check_type(argname="argument browser_settings_arn", value=browser_settings_arn, expected_type=type_hints["browser_settings_arn"])
|
|
1992
2881
|
check_type(argname="argument customer_managed_key", value=customer_managed_key, expected_type=type_hints["customer_managed_key"])
|
|
2882
|
+
check_type(argname="argument data_protection_settings_arn", value=data_protection_settings_arn, expected_type=type_hints["data_protection_settings_arn"])
|
|
1993
2883
|
check_type(argname="argument display_name", value=display_name, expected_type=type_hints["display_name"])
|
|
1994
2884
|
check_type(argname="argument instance_type", value=instance_type, expected_type=type_hints["instance_type"])
|
|
1995
2885
|
check_type(argname="argument ip_access_settings_arn", value=ip_access_settings_arn, expected_type=type_hints["ip_access_settings_arn"])
|
|
@@ -2008,6 +2898,8 @@ class CfnPortalProps:
|
|
|
2008
2898
|
self._values["browser_settings_arn"] = browser_settings_arn
|
|
2009
2899
|
if customer_managed_key is not None:
|
|
2010
2900
|
self._values["customer_managed_key"] = customer_managed_key
|
|
2901
|
+
if data_protection_settings_arn is not None:
|
|
2902
|
+
self._values["data_protection_settings_arn"] = data_protection_settings_arn
|
|
2011
2903
|
if display_name is not None:
|
|
2012
2904
|
self._values["display_name"] = display_name
|
|
2013
2905
|
if instance_type is not None:
|
|
@@ -2076,6 +2968,14 @@ class CfnPortalProps:
|
|
|
2076
2968
|
result = self._values.get("customer_managed_key")
|
|
2077
2969
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2078
2970
|
|
|
2971
|
+
@builtins.property
|
|
2972
|
+
def data_protection_settings_arn(self) -> typing.Optional[builtins.str]:
|
|
2973
|
+
'''
|
|
2974
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspacesweb-portal.html#cfn-workspacesweb-portal-dataprotectionsettingsarn
|
|
2975
|
+
'''
|
|
2976
|
+
result = self._values.get("data_protection_settings_arn")
|
|
2977
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2978
|
+
|
|
2079
2979
|
@builtins.property
|
|
2080
2980
|
def display_name(self) -> typing.Optional[builtins.str]:
|
|
2081
2981
|
'''The name of the web portal.
|
|
@@ -3405,6 +4305,8 @@ class CfnUserSettingsProps:
|
|
|
3405
4305
|
__all__ = [
|
|
3406
4306
|
"CfnBrowserSettings",
|
|
3407
4307
|
"CfnBrowserSettingsProps",
|
|
4308
|
+
"CfnDataProtectionSettings",
|
|
4309
|
+
"CfnDataProtectionSettingsProps",
|
|
3408
4310
|
"CfnIdentityProvider",
|
|
3409
4311
|
"CfnIdentityProviderProps",
|
|
3410
4312
|
"CfnIpAccessSettings",
|
|
@@ -3481,6 +4383,120 @@ def _typecheckingstub__f99c227d497f6d51d01cc19398b94784835fab55afca7c6488466bb1c
|
|
|
3481
4383
|
"""Type checking stubs"""
|
|
3482
4384
|
pass
|
|
3483
4385
|
|
|
4386
|
+
def _typecheckingstub__851565cba0af7c67b6951a864a7d6671af0039654a56671ed86d28919552d73e(
|
|
4387
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4388
|
+
id: builtins.str,
|
|
4389
|
+
*,
|
|
4390
|
+
additional_encryption_context: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
|
|
4391
|
+
customer_managed_key: typing.Optional[builtins.str] = None,
|
|
4392
|
+
description: typing.Optional[builtins.str] = None,
|
|
4393
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
4394
|
+
inline_redaction_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataProtectionSettings.InlineRedactionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4395
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4396
|
+
) -> None:
|
|
4397
|
+
"""Type checking stubs"""
|
|
4398
|
+
pass
|
|
4399
|
+
|
|
4400
|
+
def _typecheckingstub__3afc83d9e43528cc13b5abd50d4826acf870643c24640ed022e2bd621b1dec5f(
|
|
4401
|
+
inspector: _TreeInspector_488e0dd5,
|
|
4402
|
+
) -> None:
|
|
4403
|
+
"""Type checking stubs"""
|
|
4404
|
+
pass
|
|
4405
|
+
|
|
4406
|
+
def _typecheckingstub__029b8eb91b5f7341d86b33581460523348eedfa665657364ac1293ba7954ad5e(
|
|
4407
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
4408
|
+
) -> None:
|
|
4409
|
+
"""Type checking stubs"""
|
|
4410
|
+
pass
|
|
4411
|
+
|
|
4412
|
+
def _typecheckingstub__3fb99479367371b2a6c52e976d47a87740ba2c6f65f4fcf0c11ef7787923a279(
|
|
4413
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]],
|
|
4414
|
+
) -> None:
|
|
4415
|
+
"""Type checking stubs"""
|
|
4416
|
+
pass
|
|
4417
|
+
|
|
4418
|
+
def _typecheckingstub__b8794b55f834ff23fceefb4949f1c9ca0f88d0253e16fe02de823fd78e704f6a(
|
|
4419
|
+
value: typing.Optional[builtins.str],
|
|
4420
|
+
) -> None:
|
|
4421
|
+
"""Type checking stubs"""
|
|
4422
|
+
pass
|
|
4423
|
+
|
|
4424
|
+
def _typecheckingstub__7e6f16d355910af3e0d25ae4869bb9019e44d7bb8454311659d9581fbff7ad5f(
|
|
4425
|
+
value: typing.Optional[builtins.str],
|
|
4426
|
+
) -> None:
|
|
4427
|
+
"""Type checking stubs"""
|
|
4428
|
+
pass
|
|
4429
|
+
|
|
4430
|
+
def _typecheckingstub__4bbbc104f6c3d94f0c1f63bd93d3ec5849325aa58b7e06f06e3c37f6b101823f(
|
|
4431
|
+
value: typing.Optional[builtins.str],
|
|
4432
|
+
) -> None:
|
|
4433
|
+
"""Type checking stubs"""
|
|
4434
|
+
pass
|
|
4435
|
+
|
|
4436
|
+
def _typecheckingstub__a80d3be6cd6ed07f4c7a5f51acbace505548a335789227fb3e70735f66c484f6(
|
|
4437
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDataProtectionSettings.InlineRedactionConfigurationProperty]],
|
|
4438
|
+
) -> None:
|
|
4439
|
+
"""Type checking stubs"""
|
|
4440
|
+
pass
|
|
4441
|
+
|
|
4442
|
+
def _typecheckingstub__d82a664a0d9b6e2a4f59784e5f13b3f39994ef205d8513718b40fba2b6daf513(
|
|
4443
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
4444
|
+
) -> None:
|
|
4445
|
+
"""Type checking stubs"""
|
|
4446
|
+
pass
|
|
4447
|
+
|
|
4448
|
+
def _typecheckingstub__6114d751d2647346cb8b4fe7fc495c1b5e4ec1ffbe6904abf91d6b44adec7548(
|
|
4449
|
+
*,
|
|
4450
|
+
pattern_name: builtins.str,
|
|
4451
|
+
pattern_regex: builtins.str,
|
|
4452
|
+
keyword_regex: typing.Optional[builtins.str] = None,
|
|
4453
|
+
pattern_description: typing.Optional[builtins.str] = None,
|
|
4454
|
+
) -> None:
|
|
4455
|
+
"""Type checking stubs"""
|
|
4456
|
+
pass
|
|
4457
|
+
|
|
4458
|
+
def _typecheckingstub__552bfd927d431d6795b0b5add23e48f1a25b4db6addb149426e81afc6686dc63(
|
|
4459
|
+
*,
|
|
4460
|
+
inline_redaction_patterns: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataProtectionSettings.InlineRedactionPatternProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
4461
|
+
global_confidence_level: typing.Optional[jsii.Number] = None,
|
|
4462
|
+
global_enforced_urls: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4463
|
+
global_exempt_urls: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4464
|
+
) -> None:
|
|
4465
|
+
"""Type checking stubs"""
|
|
4466
|
+
pass
|
|
4467
|
+
|
|
4468
|
+
def _typecheckingstub__f28e305e326d3f4c9ac306ecac6e0d132c560d8cb368e6c1d255bce2256c5953(
|
|
4469
|
+
*,
|
|
4470
|
+
redaction_place_holder: typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataProtectionSettings.RedactionPlaceHolderProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4471
|
+
built_in_pattern_id: typing.Optional[builtins.str] = None,
|
|
4472
|
+
confidence_level: typing.Optional[jsii.Number] = None,
|
|
4473
|
+
custom_pattern: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataProtectionSettings.CustomPatternProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4474
|
+
enforced_urls: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4475
|
+
exempt_urls: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
4476
|
+
) -> None:
|
|
4477
|
+
"""Type checking stubs"""
|
|
4478
|
+
pass
|
|
4479
|
+
|
|
4480
|
+
def _typecheckingstub__93e3fa90dfeb5ed27de42632610186e3eec8e8ee42bce56d7f8dcb07d9c19f53(
|
|
4481
|
+
*,
|
|
4482
|
+
redaction_place_holder_type: builtins.str,
|
|
4483
|
+
redaction_place_holder_text: typing.Optional[builtins.str] = None,
|
|
4484
|
+
) -> None:
|
|
4485
|
+
"""Type checking stubs"""
|
|
4486
|
+
pass
|
|
4487
|
+
|
|
4488
|
+
def _typecheckingstub__9bd186c92264d6b6332cc9ff86b6f530f1f3d30da79101020cac77924b86ea5a(
|
|
4489
|
+
*,
|
|
4490
|
+
additional_encryption_context: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, builtins.str]]] = None,
|
|
4491
|
+
customer_managed_key: typing.Optional[builtins.str] = None,
|
|
4492
|
+
description: typing.Optional[builtins.str] = None,
|
|
4493
|
+
display_name: typing.Optional[builtins.str] = None,
|
|
4494
|
+
inline_redaction_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDataProtectionSettings.InlineRedactionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4495
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4496
|
+
) -> None:
|
|
4497
|
+
"""Type checking stubs"""
|
|
4498
|
+
pass
|
|
4499
|
+
|
|
3484
4500
|
def _typecheckingstub__439cd32d129b1f0a69c13fb5a494170084be122497b619a7175debec51c3635e(
|
|
3485
4501
|
scope: _constructs_77d1e7e8.Construct,
|
|
3486
4502
|
id: builtins.str,
|
|
@@ -3695,6 +4711,7 @@ def _typecheckingstub__239c61bc87a1a693f01a28198d2d3000f7ef790e9684279e807a890b0
|
|
|
3695
4711
|
authentication_type: typing.Optional[builtins.str] = None,
|
|
3696
4712
|
browser_settings_arn: typing.Optional[builtins.str] = None,
|
|
3697
4713
|
customer_managed_key: typing.Optional[builtins.str] = None,
|
|
4714
|
+
data_protection_settings_arn: typing.Optional[builtins.str] = None,
|
|
3698
4715
|
display_name: typing.Optional[builtins.str] = None,
|
|
3699
4716
|
instance_type: typing.Optional[builtins.str] = None,
|
|
3700
4717
|
ip_access_settings_arn: typing.Optional[builtins.str] = None,
|
|
@@ -3744,6 +4761,12 @@ def _typecheckingstub__319e821fe7e2a17153f7832a389ae0c48e1f0517453d29fa3e26fa732
|
|
|
3744
4761
|
"""Type checking stubs"""
|
|
3745
4762
|
pass
|
|
3746
4763
|
|
|
4764
|
+
def _typecheckingstub__dfde357dad34994249d2ece8cb99322e6a84a2af5763685459271a2545a12e6f(
|
|
4765
|
+
value: typing.Optional[builtins.str],
|
|
4766
|
+
) -> None:
|
|
4767
|
+
"""Type checking stubs"""
|
|
4768
|
+
pass
|
|
4769
|
+
|
|
3747
4770
|
def _typecheckingstub__cd1b9794e835c2ffeb3dc42a40224afa89d92cb7704c5a59dd75c1d3dd4ef495(
|
|
3748
4771
|
value: typing.Optional[builtins.str],
|
|
3749
4772
|
) -> None:
|
|
@@ -3804,6 +4827,7 @@ def _typecheckingstub__aa147912cdfb0d9ea5356fccc59e7ae5b02c822d1e3f5ae2e4826ae39
|
|
|
3804
4827
|
authentication_type: typing.Optional[builtins.str] = None,
|
|
3805
4828
|
browser_settings_arn: typing.Optional[builtins.str] = None,
|
|
3806
4829
|
customer_managed_key: typing.Optional[builtins.str] = None,
|
|
4830
|
+
data_protection_settings_arn: typing.Optional[builtins.str] = None,
|
|
3807
4831
|
display_name: typing.Optional[builtins.str] = None,
|
|
3808
4832
|
instance_type: typing.Optional[builtins.str] = None,
|
|
3809
4833
|
ip_access_settings_arn: typing.Optional[builtins.str] = None,
|