aws-cdk-lib 2.202.0__py3-none-any.whl → 2.203.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 +46 -47
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.202.0.jsii.tgz → aws-cdk-lib@2.203.0.jsii.tgz} +0 -0
- aws_cdk/aws_accessanalyzer/__init__.py +310 -4
- aws_cdk/aws_aiops/__init__.py +964 -0
- aws_cdk/aws_amplify/__init__.py +127 -0
- aws_cdk/aws_arczonalshift/__init__.py +8 -8
- aws_cdk/aws_b2bi/__init__.py +782 -3
- aws_cdk/aws_backup/__init__.py +22 -0
- aws_cdk/aws_batch/__init__.py +53 -1
- aws_cdk/aws_bedrock/__init__.py +123 -9
- aws_cdk/aws_cleanrooms/__init__.py +157 -154
- aws_cdk/aws_cloudformation/__init__.py +28 -28
- aws_cdk/aws_cloudfront/__init__.py +61 -18
- aws_cdk/aws_cloudfront/experimental/__init__.py +37 -3
- aws_cdk/aws_cloudwatch/__init__.py +228 -2
- aws_cdk/aws_connect/__init__.py +120 -8
- aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
- aws_cdk/aws_customerprofiles/__init__.py +140 -20
- aws_cdk/aws_datazone/__init__.py +23 -4
- aws_cdk/aws_deadline/__init__.py +4 -4
- aws_cdk/aws_dsql/__init__.py +148 -0
- aws_cdk/aws_ec2/__init__.py +159 -7
- aws_cdk/aws_ecr/__init__.py +3 -3
- aws_cdk/aws_ecs/__init__.py +48 -13
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
- aws_cdk/aws_emrserverless/__init__.py +118 -0
- aws_cdk/aws_fsx/__init__.py +891 -0
- aws_cdk/aws_iam/__init__.py +8 -8
- aws_cdk/aws_inspectorv2/__init__.py +442 -3
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kms/__init__.py +14 -8
- aws_cdk/aws_lambda/__init__.py +191 -24
- aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
- aws_cdk/aws_lex/__init__.py +703 -0
- aws_cdk/aws_logs/__init__.py +144 -0
- aws_cdk/aws_mediatailor/__init__.py +399 -0
- aws_cdk/aws_mpa/__init__.py +1475 -0
- aws_cdk/aws_networkfirewall/__init__.py +4 -2
- aws_cdk/aws_networkmanager/__init__.py +51 -3
- aws_cdk/aws_opsworkscm/__init__.py +44 -2
- aws_cdk/aws_rds/__init__.py +171 -41
- aws_cdk/aws_redshiftserverless/__init__.py +632 -0
- aws_cdk/aws_route53resolver/__init__.py +58 -10
- aws_cdk/aws_s3/__init__.py +3 -1
- aws_cdk/aws_s3tables/__init__.py +230 -0
- aws_cdk/aws_sagemaker/__init__.py +6 -2
- aws_cdk/aws_securityhub/__init__.py +2887 -56
- aws_cdk/aws_synthetics/__init__.py +21 -0
- aws_cdk/aws_vpclattice/__init__.py +6 -4
- aws_cdk/aws_wafv2/__init__.py +156 -51
- aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
- aws_cdk/cloud_assembly_schema/__init__.py +200 -4
- aws_cdk/cx_api/__init__.py +15 -14
- aws_cdk/pipelines/__init__.py +31 -3
- aws_cdk/triggers/__init__.py +41 -4
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +62 -59
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.202.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
|
@@ -94,6 +94,15 @@ class CfnAnalyzer(
|
|
|
94
94
|
|
|
95
95
|
# the properties below are optional
|
|
96
96
|
analyzer_configuration=accessanalyzer.CfnAnalyzer.AnalyzerConfigurationProperty(
|
|
97
|
+
internal_access_configuration=accessanalyzer.CfnAnalyzer.InternalAccessConfigurationProperty(
|
|
98
|
+
internal_access_analysis_rule=accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty(
|
|
99
|
+
inclusions=[accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty(
|
|
100
|
+
account_ids=["accountIds"],
|
|
101
|
+
resource_arns=["resourceArns"],
|
|
102
|
+
resource_types=["resourceTypes"]
|
|
103
|
+
)]
|
|
104
|
+
)
|
|
105
|
+
),
|
|
97
106
|
unused_access_configuration=accessanalyzer.CfnAnalyzer.UnusedAccessConfigurationProperty(
|
|
98
107
|
analysis_rule=accessanalyzer.CfnAnalyzer.AnalysisRuleProperty(
|
|
99
108
|
exclusions=[accessanalyzer.CfnAnalyzer.AnalysisRuleCriteriaProperty(
|
|
@@ -141,7 +150,7 @@ class CfnAnalyzer(
|
|
|
141
150
|
'''
|
|
142
151
|
:param scope: Scope in which this resource is defined.
|
|
143
152
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
144
|
-
:param type: The type represents the zone of trust for the analyzer. *Allowed Values* : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ORGANIZATION_UNUSED_ACCESS
|
|
153
|
+
:param type: The type represents the zone of trust for the analyzer. *Allowed Values* : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ACCOUNT_INTERNAL_ACCESS | ORGANIZATION_INTERNAL_ACCESS | ORGANIZATION_UNUSED_ACCESS
|
|
145
154
|
:param analyzer_configuration: Contains information about the configuration of an analyzer for an AWS organization or account.
|
|
146
155
|
:param analyzer_name: The name of the analyzer.
|
|
147
156
|
:param archive_rules: Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
|
|
@@ -441,16 +450,21 @@ class CfnAnalyzer(
|
|
|
441
450
|
@jsii.data_type(
|
|
442
451
|
jsii_type="aws-cdk-lib.aws_accessanalyzer.CfnAnalyzer.AnalyzerConfigurationProperty",
|
|
443
452
|
jsii_struct_bases=[],
|
|
444
|
-
name_mapping={
|
|
453
|
+
name_mapping={
|
|
454
|
+
"internal_access_configuration": "internalAccessConfiguration",
|
|
455
|
+
"unused_access_configuration": "unusedAccessConfiguration",
|
|
456
|
+
},
|
|
445
457
|
)
|
|
446
458
|
class AnalyzerConfigurationProperty:
|
|
447
459
|
def __init__(
|
|
448
460
|
self,
|
|
449
461
|
*,
|
|
462
|
+
internal_access_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnalyzer.InternalAccessConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
450
463
|
unused_access_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnalyzer.UnusedAccessConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
451
464
|
) -> None:
|
|
452
465
|
'''Contains information about the configuration of an analyzer for an AWS organization or account.
|
|
453
466
|
|
|
467
|
+
:param internal_access_configuration: Specifies the configuration of an internal access analyzer for an AWS organization or account. This configuration determines how the analyzer evaluates access within your AWS environment.
|
|
454
468
|
:param unused_access_configuration: Specifies the configuration of an unused access analyzer for an AWS organization or account.
|
|
455
469
|
|
|
456
470
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analyzerconfiguration.html
|
|
@@ -463,6 +477,15 @@ class CfnAnalyzer(
|
|
|
463
477
|
from aws_cdk import aws_accessanalyzer as accessanalyzer
|
|
464
478
|
|
|
465
479
|
analyzer_configuration_property = accessanalyzer.CfnAnalyzer.AnalyzerConfigurationProperty(
|
|
480
|
+
internal_access_configuration=accessanalyzer.CfnAnalyzer.InternalAccessConfigurationProperty(
|
|
481
|
+
internal_access_analysis_rule=accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty(
|
|
482
|
+
inclusions=[accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty(
|
|
483
|
+
account_ids=["accountIds"],
|
|
484
|
+
resource_arns=["resourceArns"],
|
|
485
|
+
resource_types=["resourceTypes"]
|
|
486
|
+
)]
|
|
487
|
+
)
|
|
488
|
+
),
|
|
466
489
|
unused_access_configuration=accessanalyzer.CfnAnalyzer.UnusedAccessConfigurationProperty(
|
|
467
490
|
analysis_rule=accessanalyzer.CfnAnalyzer.AnalysisRuleProperty(
|
|
468
491
|
exclusions=[accessanalyzer.CfnAnalyzer.AnalysisRuleCriteriaProperty(
|
|
@@ -479,11 +502,27 @@ class CfnAnalyzer(
|
|
|
479
502
|
'''
|
|
480
503
|
if __debug__:
|
|
481
504
|
type_hints = typing.get_type_hints(_typecheckingstub__31c56409583b90336517d4c07b7b7849a386335199a589eff293943ed3b54e61)
|
|
505
|
+
check_type(argname="argument internal_access_configuration", value=internal_access_configuration, expected_type=type_hints["internal_access_configuration"])
|
|
482
506
|
check_type(argname="argument unused_access_configuration", value=unused_access_configuration, expected_type=type_hints["unused_access_configuration"])
|
|
483
507
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
508
|
+
if internal_access_configuration is not None:
|
|
509
|
+
self._values["internal_access_configuration"] = internal_access_configuration
|
|
484
510
|
if unused_access_configuration is not None:
|
|
485
511
|
self._values["unused_access_configuration"] = unused_access_configuration
|
|
486
512
|
|
|
513
|
+
@builtins.property
|
|
514
|
+
def internal_access_configuration(
|
|
515
|
+
self,
|
|
516
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnalyzer.InternalAccessConfigurationProperty"]]:
|
|
517
|
+
'''Specifies the configuration of an internal access analyzer for an AWS organization or account.
|
|
518
|
+
|
|
519
|
+
This configuration determines how the analyzer evaluates access within your AWS environment.
|
|
520
|
+
|
|
521
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-analyzerconfiguration.html#cfn-accessanalyzer-analyzer-analyzerconfiguration-internalaccessconfiguration
|
|
522
|
+
'''
|
|
523
|
+
result = self._values.get("internal_access_configuration")
|
|
524
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnalyzer.InternalAccessConfigurationProperty"]], result)
|
|
525
|
+
|
|
487
526
|
@builtins.property
|
|
488
527
|
def unused_access_configuration(
|
|
489
528
|
self,
|
|
@@ -717,6 +756,240 @@ class CfnAnalyzer(
|
|
|
717
756
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
718
757
|
)
|
|
719
758
|
|
|
759
|
+
@jsii.data_type(
|
|
760
|
+
jsii_type="aws-cdk-lib.aws_accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty",
|
|
761
|
+
jsii_struct_bases=[],
|
|
762
|
+
name_mapping={
|
|
763
|
+
"account_ids": "accountIds",
|
|
764
|
+
"resource_arns": "resourceArns",
|
|
765
|
+
"resource_types": "resourceTypes",
|
|
766
|
+
},
|
|
767
|
+
)
|
|
768
|
+
class InternalAccessAnalysisRuleCriteriaProperty:
|
|
769
|
+
def __init__(
|
|
770
|
+
self,
|
|
771
|
+
*,
|
|
772
|
+
account_ids: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
773
|
+
resource_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
774
|
+
resource_types: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
775
|
+
) -> None:
|
|
776
|
+
'''The criteria for an analysis rule for an internal access analyzer.
|
|
777
|
+
|
|
778
|
+
:param account_ids: A list of AWS account IDs to apply to the internal access analysis rule criteria. Account IDs can only be applied to the analysis rule criteria for organization-level analyzers.
|
|
779
|
+
:param resource_arns: A list of resource ARNs to apply to the internal access analysis rule criteria. The analyzer will only generate findings for resources that match these ARNs.
|
|
780
|
+
:param resource_types: A list of resource types to apply to the internal access analysis rule criteria. The analyzer will only generate findings for resources of these types. These resource types are currently supported for internal access analyzers: - ``AWS::S3::Bucket`` - ``AWS::RDS::DBSnapshot`` - ``AWS::RDS::DBClusterSnapshot`` - ``AWS::S3Express::DirectoryBucket`` - ``AWS::DynamoDB::Table`` - ``AWS::DynamoDB::Stream``
|
|
781
|
+
|
|
782
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrulecriteria.html
|
|
783
|
+
:exampleMetadata: fixture=_generated
|
|
784
|
+
|
|
785
|
+
Example::
|
|
786
|
+
|
|
787
|
+
# The code below shows an example of how to instantiate this type.
|
|
788
|
+
# The values are placeholders you should change.
|
|
789
|
+
from aws_cdk import aws_accessanalyzer as accessanalyzer
|
|
790
|
+
|
|
791
|
+
internal_access_analysis_rule_criteria_property = accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty(
|
|
792
|
+
account_ids=["accountIds"],
|
|
793
|
+
resource_arns=["resourceArns"],
|
|
794
|
+
resource_types=["resourceTypes"]
|
|
795
|
+
)
|
|
796
|
+
'''
|
|
797
|
+
if __debug__:
|
|
798
|
+
type_hints = typing.get_type_hints(_typecheckingstub__df58106489755d92b5cc9d51d8ac254dfccee65f0ca7f4d03d3a9002659d6a9f)
|
|
799
|
+
check_type(argname="argument account_ids", value=account_ids, expected_type=type_hints["account_ids"])
|
|
800
|
+
check_type(argname="argument resource_arns", value=resource_arns, expected_type=type_hints["resource_arns"])
|
|
801
|
+
check_type(argname="argument resource_types", value=resource_types, expected_type=type_hints["resource_types"])
|
|
802
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
803
|
+
if account_ids is not None:
|
|
804
|
+
self._values["account_ids"] = account_ids
|
|
805
|
+
if resource_arns is not None:
|
|
806
|
+
self._values["resource_arns"] = resource_arns
|
|
807
|
+
if resource_types is not None:
|
|
808
|
+
self._values["resource_types"] = resource_types
|
|
809
|
+
|
|
810
|
+
@builtins.property
|
|
811
|
+
def account_ids(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
812
|
+
'''A list of AWS account IDs to apply to the internal access analysis rule criteria.
|
|
813
|
+
|
|
814
|
+
Account IDs can only be applied to the analysis rule criteria for organization-level analyzers.
|
|
815
|
+
|
|
816
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrulecriteria.html#cfn-accessanalyzer-analyzer-internalaccessanalysisrulecriteria-accountids
|
|
817
|
+
'''
|
|
818
|
+
result = self._values.get("account_ids")
|
|
819
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
820
|
+
|
|
821
|
+
@builtins.property
|
|
822
|
+
def resource_arns(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
823
|
+
'''A list of resource ARNs to apply to the internal access analysis rule criteria.
|
|
824
|
+
|
|
825
|
+
The analyzer will only generate findings for resources that match these ARNs.
|
|
826
|
+
|
|
827
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrulecriteria.html#cfn-accessanalyzer-analyzer-internalaccessanalysisrulecriteria-resourcearns
|
|
828
|
+
'''
|
|
829
|
+
result = self._values.get("resource_arns")
|
|
830
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
831
|
+
|
|
832
|
+
@builtins.property
|
|
833
|
+
def resource_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
834
|
+
'''A list of resource types to apply to the internal access analysis rule criteria.
|
|
835
|
+
|
|
836
|
+
The analyzer will only generate findings for resources of these types. These resource types are currently supported for internal access analyzers:
|
|
837
|
+
|
|
838
|
+
- ``AWS::S3::Bucket``
|
|
839
|
+
- ``AWS::RDS::DBSnapshot``
|
|
840
|
+
- ``AWS::RDS::DBClusterSnapshot``
|
|
841
|
+
- ``AWS::S3Express::DirectoryBucket``
|
|
842
|
+
- ``AWS::DynamoDB::Table``
|
|
843
|
+
- ``AWS::DynamoDB::Stream``
|
|
844
|
+
|
|
845
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrulecriteria.html#cfn-accessanalyzer-analyzer-internalaccessanalysisrulecriteria-resourcetypes
|
|
846
|
+
'''
|
|
847
|
+
result = self._values.get("resource_types")
|
|
848
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
849
|
+
|
|
850
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
851
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
852
|
+
|
|
853
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
854
|
+
return not (rhs == self)
|
|
855
|
+
|
|
856
|
+
def __repr__(self) -> str:
|
|
857
|
+
return "InternalAccessAnalysisRuleCriteriaProperty(%s)" % ", ".join(
|
|
858
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
859
|
+
)
|
|
860
|
+
|
|
861
|
+
@jsii.data_type(
|
|
862
|
+
jsii_type="aws-cdk-lib.aws_accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty",
|
|
863
|
+
jsii_struct_bases=[],
|
|
864
|
+
name_mapping={"inclusions": "inclusions"},
|
|
865
|
+
)
|
|
866
|
+
class InternalAccessAnalysisRuleProperty:
|
|
867
|
+
def __init__(
|
|
868
|
+
self,
|
|
869
|
+
*,
|
|
870
|
+
inclusions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
871
|
+
) -> None:
|
|
872
|
+
'''Contains information about analysis rules for the internal access analyzer.
|
|
873
|
+
|
|
874
|
+
Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.
|
|
875
|
+
|
|
876
|
+
:param inclusions: A list of rules for the internal access analyzer containing criteria to include in analysis. Only resources that meet the rule criteria will generate findings.
|
|
877
|
+
|
|
878
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrule.html
|
|
879
|
+
:exampleMetadata: fixture=_generated
|
|
880
|
+
|
|
881
|
+
Example::
|
|
882
|
+
|
|
883
|
+
# The code below shows an example of how to instantiate this type.
|
|
884
|
+
# The values are placeholders you should change.
|
|
885
|
+
from aws_cdk import aws_accessanalyzer as accessanalyzer
|
|
886
|
+
|
|
887
|
+
internal_access_analysis_rule_property = accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty(
|
|
888
|
+
inclusions=[accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty(
|
|
889
|
+
account_ids=["accountIds"],
|
|
890
|
+
resource_arns=["resourceArns"],
|
|
891
|
+
resource_types=["resourceTypes"]
|
|
892
|
+
)]
|
|
893
|
+
)
|
|
894
|
+
'''
|
|
895
|
+
if __debug__:
|
|
896
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b551cb53f4f7a1a38a9a57f1445115d565b843fa07c255e6ae31333c89b019a7)
|
|
897
|
+
check_type(argname="argument inclusions", value=inclusions, expected_type=type_hints["inclusions"])
|
|
898
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
899
|
+
if inclusions is not None:
|
|
900
|
+
self._values["inclusions"] = inclusions
|
|
901
|
+
|
|
902
|
+
@builtins.property
|
|
903
|
+
def inclusions(
|
|
904
|
+
self,
|
|
905
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty"]]]]:
|
|
906
|
+
'''A list of rules for the internal access analyzer containing criteria to include in analysis.
|
|
907
|
+
|
|
908
|
+
Only resources that meet the rule criteria will generate findings.
|
|
909
|
+
|
|
910
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessanalysisrule.html#cfn-accessanalyzer-analyzer-internalaccessanalysisrule-inclusions
|
|
911
|
+
'''
|
|
912
|
+
result = self._values.get("inclusions")
|
|
913
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty"]]]], result)
|
|
914
|
+
|
|
915
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
916
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
917
|
+
|
|
918
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
919
|
+
return not (rhs == self)
|
|
920
|
+
|
|
921
|
+
def __repr__(self) -> str:
|
|
922
|
+
return "InternalAccessAnalysisRuleProperty(%s)" % ", ".join(
|
|
923
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
924
|
+
)
|
|
925
|
+
|
|
926
|
+
@jsii.data_type(
|
|
927
|
+
jsii_type="aws-cdk-lib.aws_accessanalyzer.CfnAnalyzer.InternalAccessConfigurationProperty",
|
|
928
|
+
jsii_struct_bases=[],
|
|
929
|
+
name_mapping={"internal_access_analysis_rule": "internalAccessAnalysisRule"},
|
|
930
|
+
)
|
|
931
|
+
class InternalAccessConfigurationProperty:
|
|
932
|
+
def __init__(
|
|
933
|
+
self,
|
|
934
|
+
*,
|
|
935
|
+
internal_access_analysis_rule: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnalyzer.InternalAccessAnalysisRuleProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
936
|
+
) -> None:
|
|
937
|
+
'''Specifies the configuration of an internal access analyzer for an AWS organization or account.
|
|
938
|
+
|
|
939
|
+
This configuration determines how the analyzer evaluates internal access within your AWS environment.
|
|
940
|
+
|
|
941
|
+
:param internal_access_analysis_rule: Contains information about analysis rules for the internal access analyzer. These rules determine which resources and access patterns will be analyzed.
|
|
942
|
+
|
|
943
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessconfiguration.html
|
|
944
|
+
:exampleMetadata: fixture=_generated
|
|
945
|
+
|
|
946
|
+
Example::
|
|
947
|
+
|
|
948
|
+
# The code below shows an example of how to instantiate this type.
|
|
949
|
+
# The values are placeholders you should change.
|
|
950
|
+
from aws_cdk import aws_accessanalyzer as accessanalyzer
|
|
951
|
+
|
|
952
|
+
internal_access_configuration_property = accessanalyzer.CfnAnalyzer.InternalAccessConfigurationProperty(
|
|
953
|
+
internal_access_analysis_rule=accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty(
|
|
954
|
+
inclusions=[accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty(
|
|
955
|
+
account_ids=["accountIds"],
|
|
956
|
+
resource_arns=["resourceArns"],
|
|
957
|
+
resource_types=["resourceTypes"]
|
|
958
|
+
)]
|
|
959
|
+
)
|
|
960
|
+
)
|
|
961
|
+
'''
|
|
962
|
+
if __debug__:
|
|
963
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0a796d008592c4cc4b9ffe7a696b2a26db99022fdab61d5695cf9465c2e2ecff)
|
|
964
|
+
check_type(argname="argument internal_access_analysis_rule", value=internal_access_analysis_rule, expected_type=type_hints["internal_access_analysis_rule"])
|
|
965
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
966
|
+
if internal_access_analysis_rule is not None:
|
|
967
|
+
self._values["internal_access_analysis_rule"] = internal_access_analysis_rule
|
|
968
|
+
|
|
969
|
+
@builtins.property
|
|
970
|
+
def internal_access_analysis_rule(
|
|
971
|
+
self,
|
|
972
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnalyzer.InternalAccessAnalysisRuleProperty"]]:
|
|
973
|
+
'''Contains information about analysis rules for the internal access analyzer.
|
|
974
|
+
|
|
975
|
+
These rules determine which resources and access patterns will be analyzed.
|
|
976
|
+
|
|
977
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-accessanalyzer-analyzer-internalaccessconfiguration.html#cfn-accessanalyzer-analyzer-internalaccessconfiguration-internalaccessanalysisrule
|
|
978
|
+
'''
|
|
979
|
+
result = self._values.get("internal_access_analysis_rule")
|
|
980
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnalyzer.InternalAccessAnalysisRuleProperty"]], result)
|
|
981
|
+
|
|
982
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
983
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
984
|
+
|
|
985
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
986
|
+
return not (rhs == self)
|
|
987
|
+
|
|
988
|
+
def __repr__(self) -> str:
|
|
989
|
+
return "InternalAccessConfigurationProperty(%s)" % ", ".join(
|
|
990
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
991
|
+
)
|
|
992
|
+
|
|
720
993
|
@jsii.data_type(
|
|
721
994
|
jsii_type="aws-cdk-lib.aws_accessanalyzer.CfnAnalyzer.UnusedAccessConfigurationProperty",
|
|
722
995
|
jsii_struct_bases=[],
|
|
@@ -828,7 +1101,7 @@ class CfnAnalyzerProps:
|
|
|
828
1101
|
) -> None:
|
|
829
1102
|
'''Properties for defining a ``CfnAnalyzer``.
|
|
830
1103
|
|
|
831
|
-
:param type: The type represents the zone of trust for the analyzer. *Allowed Values* : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ORGANIZATION_UNUSED_ACCESS
|
|
1104
|
+
:param type: The type represents the zone of trust for the analyzer. *Allowed Values* : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ACCOUNT_INTERNAL_ACCESS | ORGANIZATION_INTERNAL_ACCESS | ORGANIZATION_UNUSED_ACCESS
|
|
832
1105
|
:param analyzer_configuration: Contains information about the configuration of an analyzer for an AWS organization or account.
|
|
833
1106
|
:param analyzer_name: The name of the analyzer.
|
|
834
1107
|
:param archive_rules: Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
|
|
@@ -848,6 +1121,15 @@ class CfnAnalyzerProps:
|
|
|
848
1121
|
|
|
849
1122
|
# the properties below are optional
|
|
850
1123
|
analyzer_configuration=accessanalyzer.CfnAnalyzer.AnalyzerConfigurationProperty(
|
|
1124
|
+
internal_access_configuration=accessanalyzer.CfnAnalyzer.InternalAccessConfigurationProperty(
|
|
1125
|
+
internal_access_analysis_rule=accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleProperty(
|
|
1126
|
+
inclusions=[accessanalyzer.CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty(
|
|
1127
|
+
account_ids=["accountIds"],
|
|
1128
|
+
resource_arns=["resourceArns"],
|
|
1129
|
+
resource_types=["resourceTypes"]
|
|
1130
|
+
)]
|
|
1131
|
+
)
|
|
1132
|
+
),
|
|
851
1133
|
unused_access_configuration=accessanalyzer.CfnAnalyzer.UnusedAccessConfigurationProperty(
|
|
852
1134
|
analysis_rule=accessanalyzer.CfnAnalyzer.AnalysisRuleProperty(
|
|
853
1135
|
exclusions=[accessanalyzer.CfnAnalyzer.AnalysisRuleCriteriaProperty(
|
|
@@ -903,7 +1185,7 @@ class CfnAnalyzerProps:
|
|
|
903
1185
|
def type(self) -> builtins.str:
|
|
904
1186
|
'''The type represents the zone of trust for the analyzer.
|
|
905
1187
|
|
|
906
|
-
*Allowed Values* : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ORGANIZATION_UNUSED_ACCESS
|
|
1188
|
+
*Allowed Values* : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ACCOUNT_INTERNAL_ACCESS | ORGANIZATION_INTERNAL_ACCESS | ORGANIZATION_UNUSED_ACCESS
|
|
907
1189
|
|
|
908
1190
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-accessanalyzer-analyzer.html#cfn-accessanalyzer-analyzer-type
|
|
909
1191
|
'''
|
|
@@ -1050,6 +1332,7 @@ def _typecheckingstub__17edc274e7f0852c4514c56018aaea9d25296dab4aaadab463eab1460
|
|
|
1050
1332
|
|
|
1051
1333
|
def _typecheckingstub__31c56409583b90336517d4c07b7b7849a386335199a589eff293943ed3b54e61(
|
|
1052
1334
|
*,
|
|
1335
|
+
internal_access_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnalyzer.InternalAccessConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1053
1336
|
unused_access_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnalyzer.UnusedAccessConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1054
1337
|
) -> None:
|
|
1055
1338
|
"""Type checking stubs"""
|
|
@@ -1074,6 +1357,29 @@ def _typecheckingstub__a277539f2c67c28a2a9fc67270fd81239b1346785d9508df320b963a2
|
|
|
1074
1357
|
"""Type checking stubs"""
|
|
1075
1358
|
pass
|
|
1076
1359
|
|
|
1360
|
+
def _typecheckingstub__df58106489755d92b5cc9d51d8ac254dfccee65f0ca7f4d03d3a9002659d6a9f(
|
|
1361
|
+
*,
|
|
1362
|
+
account_ids: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1363
|
+
resource_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1364
|
+
resource_types: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1365
|
+
) -> None:
|
|
1366
|
+
"""Type checking stubs"""
|
|
1367
|
+
pass
|
|
1368
|
+
|
|
1369
|
+
def _typecheckingstub__b551cb53f4f7a1a38a9a57f1445115d565b843fa07c255e6ae31333c89b019a7(
|
|
1370
|
+
*,
|
|
1371
|
+
inclusions: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnalyzer.InternalAccessAnalysisRuleCriteriaProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1372
|
+
) -> None:
|
|
1373
|
+
"""Type checking stubs"""
|
|
1374
|
+
pass
|
|
1375
|
+
|
|
1376
|
+
def _typecheckingstub__0a796d008592c4cc4b9ffe7a696b2a26db99022fdab61d5695cf9465c2e2ecff(
|
|
1377
|
+
*,
|
|
1378
|
+
internal_access_analysis_rule: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnalyzer.InternalAccessAnalysisRuleProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1379
|
+
) -> None:
|
|
1380
|
+
"""Type checking stubs"""
|
|
1381
|
+
pass
|
|
1382
|
+
|
|
1077
1383
|
def _typecheckingstub__b15bc1bfb223a199dc73f744cc56dfec8d77e91fcae9e8e5b3520484a497aba7(
|
|
1078
1384
|
*,
|
|
1079
1385
|
analysis_rule: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnalyzer.AnalysisRuleProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|