aws-cdk-lib 2.145.0__py3-none-any.whl → 2.146.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 +2 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.145.0.jsii.tgz → aws-cdk-lib@2.146.0.jsii.tgz} +0 -0
- aws_cdk/aws_appsync/__init__.py +62 -0
- aws_cdk/aws_autoscaling/__init__.py +412 -56
- aws_cdk/aws_codebuild/__init__.py +23 -3
- aws_cdk/aws_connect/__init__.py +86 -0
- aws_cdk/aws_ecs/__init__.py +110 -1
- aws_cdk/aws_eks/__init__.py +1320 -41
- aws_cdk/aws_iam/__init__.py +13 -8
- aws_cdk/aws_opensearchservice/__init__.py +6 -0
- aws_cdk/aws_pipes/__init__.py +639 -0
- aws_cdk/aws_rds/__init__.py +12 -0
- aws_cdk/aws_rolesanywhere/__init__.py +196 -0
- aws_cdk/aws_sns/__init__.py +61 -9
- aws_cdk/aws_stepfunctions_tasks/__init__.py +3 -3
- aws_cdk/region_info/__init__.py +6 -0
- {aws_cdk_lib-2.145.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.145.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/NOTICE +0 -35
- {aws_cdk_lib-2.145.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/RECORD +23 -23
- {aws_cdk_lib-2.145.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.145.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.145.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -2584,6 +2584,12 @@ class AuroraMysqlEngineVersion(
|
|
|
2584
2584
|
'''Version "8.0.mysql_aurora.3.06.0".'''
|
|
2585
2585
|
return typing.cast("AuroraMysqlEngineVersion", jsii.sget(cls, "VER_3_06_0"))
|
|
2586
2586
|
|
|
2587
|
+
@jsii.python.classproperty
|
|
2588
|
+
@jsii.member(jsii_name="VER_3_07_0")
|
|
2589
|
+
def VER_3_07_0(cls) -> "AuroraMysqlEngineVersion":
|
|
2590
|
+
'''Version "8.0.mysql_aurora.3.07.0".'''
|
|
2591
|
+
return typing.cast("AuroraMysqlEngineVersion", jsii.sget(cls, "VER_3_07_0"))
|
|
2592
|
+
|
|
2587
2593
|
@jsii.python.classproperty
|
|
2588
2594
|
@jsii.member(jsii_name="VER_5_7_12")
|
|
2589
2595
|
def VER_5_7_12(cls) -> "AuroraMysqlEngineVersion":
|
|
@@ -3489,6 +3495,12 @@ class AuroraPostgresEngineVersion(
|
|
|
3489
3495
|
'''Version "15.5".'''
|
|
3490
3496
|
return typing.cast("AuroraPostgresEngineVersion", jsii.sget(cls, "VER_15_5"))
|
|
3491
3497
|
|
|
3498
|
+
@jsii.python.classproperty
|
|
3499
|
+
@jsii.member(jsii_name="VER_15_6")
|
|
3500
|
+
def VER_15_6(cls) -> "AuroraPostgresEngineVersion":
|
|
3501
|
+
'''Version "15.6".'''
|
|
3502
|
+
return typing.cast("AuroraPostgresEngineVersion", jsii.sget(cls, "VER_15_6"))
|
|
3503
|
+
|
|
3492
3504
|
@jsii.python.classproperty
|
|
3493
3505
|
@jsii.member(jsii_name="VER_16_0")
|
|
3494
3506
|
def VER_16_0(cls) -> "AuroraPostgresEngineVersion":
|
|
@@ -385,6 +385,12 @@ class CfnProfile(
|
|
|
385
385
|
role_arns=["roleArns"],
|
|
386
386
|
|
|
387
387
|
# the properties below are optional
|
|
388
|
+
attribute_mappings=[rolesanywhere.CfnProfile.AttributeMappingProperty(
|
|
389
|
+
certificate_field="certificateField",
|
|
390
|
+
mapping_rules=[rolesanywhere.CfnProfile.MappingRuleProperty(
|
|
391
|
+
specifier="specifier"
|
|
392
|
+
)]
|
|
393
|
+
)],
|
|
388
394
|
duration_seconds=123,
|
|
389
395
|
enabled=False,
|
|
390
396
|
managed_policy_arns=["managedPolicyArns"],
|
|
@@ -404,6 +410,7 @@ class CfnProfile(
|
|
|
404
410
|
*,
|
|
405
411
|
name: builtins.str,
|
|
406
412
|
role_arns: typing.Sequence[builtins.str],
|
|
413
|
+
attribute_mappings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnProfile.AttributeMappingProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
407
414
|
duration_seconds: typing.Optional[jsii.Number] = None,
|
|
408
415
|
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
409
416
|
managed_policy_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -416,6 +423,7 @@ class CfnProfile(
|
|
|
416
423
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
417
424
|
:param name: The customer specified name of the resource.
|
|
418
425
|
:param role_arns: A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
|
|
426
|
+
:param attribute_mappings:
|
|
419
427
|
:param duration_seconds: The number of seconds vended session credentials will be valid for.
|
|
420
428
|
:param enabled: The enabled status of the resource.
|
|
421
429
|
:param managed_policy_arns: A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.
|
|
@@ -430,6 +438,7 @@ class CfnProfile(
|
|
|
430
438
|
props = CfnProfileProps(
|
|
431
439
|
name=name,
|
|
432
440
|
role_arns=role_arns,
|
|
441
|
+
attribute_mappings=attribute_mappings,
|
|
433
442
|
duration_seconds=duration_seconds,
|
|
434
443
|
enabled=enabled,
|
|
435
444
|
managed_policy_arns=managed_policy_arns,
|
|
@@ -525,6 +534,23 @@ class CfnProfile(
|
|
|
525
534
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
526
535
|
jsii.set(self, "roleArns", value)
|
|
527
536
|
|
|
537
|
+
@builtins.property
|
|
538
|
+
@jsii.member(jsii_name="attributeMappings")
|
|
539
|
+
def attribute_mappings(
|
|
540
|
+
self,
|
|
541
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnProfile.AttributeMappingProperty"]]]]:
|
|
542
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnProfile.AttributeMappingProperty"]]]], jsii.get(self, "attributeMappings"))
|
|
543
|
+
|
|
544
|
+
@attribute_mappings.setter
|
|
545
|
+
def attribute_mappings(
|
|
546
|
+
self,
|
|
547
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnProfile.AttributeMappingProperty"]]]],
|
|
548
|
+
) -> None:
|
|
549
|
+
if __debug__:
|
|
550
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a933bc8a589ca2e29de261062eefb4537f3f9eee0b743f26a28b8b55ea20b163)
|
|
551
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
552
|
+
jsii.set(self, "attributeMappings", value)
|
|
553
|
+
|
|
528
554
|
@builtins.property
|
|
529
555
|
@jsii.member(jsii_name="durationSeconds")
|
|
530
556
|
def duration_seconds(self) -> typing.Optional[jsii.Number]:
|
|
@@ -616,6 +642,131 @@ class CfnProfile(
|
|
|
616
642
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
617
643
|
jsii.set(self, "tagsRaw", value)
|
|
618
644
|
|
|
645
|
+
@jsii.data_type(
|
|
646
|
+
jsii_type="aws-cdk-lib.aws_rolesanywhere.CfnProfile.AttributeMappingProperty",
|
|
647
|
+
jsii_struct_bases=[],
|
|
648
|
+
name_mapping={
|
|
649
|
+
"certificate_field": "certificateField",
|
|
650
|
+
"mapping_rules": "mappingRules",
|
|
651
|
+
},
|
|
652
|
+
)
|
|
653
|
+
class AttributeMappingProperty:
|
|
654
|
+
def __init__(
|
|
655
|
+
self,
|
|
656
|
+
*,
|
|
657
|
+
certificate_field: builtins.str,
|
|
658
|
+
mapping_rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnProfile.MappingRuleProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
659
|
+
) -> None:
|
|
660
|
+
'''
|
|
661
|
+
:param certificate_field:
|
|
662
|
+
:param mapping_rules:
|
|
663
|
+
|
|
664
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html
|
|
665
|
+
:exampleMetadata: fixture=_generated
|
|
666
|
+
|
|
667
|
+
Example::
|
|
668
|
+
|
|
669
|
+
# The code below shows an example of how to instantiate this type.
|
|
670
|
+
# The values are placeholders you should change.
|
|
671
|
+
from aws_cdk import aws_rolesanywhere as rolesanywhere
|
|
672
|
+
|
|
673
|
+
attribute_mapping_property = rolesanywhere.CfnProfile.AttributeMappingProperty(
|
|
674
|
+
certificate_field="certificateField",
|
|
675
|
+
mapping_rules=[rolesanywhere.CfnProfile.MappingRuleProperty(
|
|
676
|
+
specifier="specifier"
|
|
677
|
+
)]
|
|
678
|
+
)
|
|
679
|
+
'''
|
|
680
|
+
if __debug__:
|
|
681
|
+
type_hints = typing.get_type_hints(_typecheckingstub__05d62dd9516ef6f649bf3b5d657cdfc92e568e217f35731a999cfd15f5b4f68e)
|
|
682
|
+
check_type(argname="argument certificate_field", value=certificate_field, expected_type=type_hints["certificate_field"])
|
|
683
|
+
check_type(argname="argument mapping_rules", value=mapping_rules, expected_type=type_hints["mapping_rules"])
|
|
684
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
685
|
+
"certificate_field": certificate_field,
|
|
686
|
+
"mapping_rules": mapping_rules,
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
@builtins.property
|
|
690
|
+
def certificate_field(self) -> builtins.str:
|
|
691
|
+
'''
|
|
692
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html#cfn-rolesanywhere-profile-attributemapping-certificatefield
|
|
693
|
+
'''
|
|
694
|
+
result = self._values.get("certificate_field")
|
|
695
|
+
assert result is not None, "Required property 'certificate_field' is missing"
|
|
696
|
+
return typing.cast(builtins.str, result)
|
|
697
|
+
|
|
698
|
+
@builtins.property
|
|
699
|
+
def mapping_rules(
|
|
700
|
+
self,
|
|
701
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnProfile.MappingRuleProperty"]]]:
|
|
702
|
+
'''
|
|
703
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-attributemapping.html#cfn-rolesanywhere-profile-attributemapping-mappingrules
|
|
704
|
+
'''
|
|
705
|
+
result = self._values.get("mapping_rules")
|
|
706
|
+
assert result is not None, "Required property 'mapping_rules' is missing"
|
|
707
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnProfile.MappingRuleProperty"]]], result)
|
|
708
|
+
|
|
709
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
710
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
711
|
+
|
|
712
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
713
|
+
return not (rhs == self)
|
|
714
|
+
|
|
715
|
+
def __repr__(self) -> str:
|
|
716
|
+
return "AttributeMappingProperty(%s)" % ", ".join(
|
|
717
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
718
|
+
)
|
|
719
|
+
|
|
720
|
+
@jsii.data_type(
|
|
721
|
+
jsii_type="aws-cdk-lib.aws_rolesanywhere.CfnProfile.MappingRuleProperty",
|
|
722
|
+
jsii_struct_bases=[],
|
|
723
|
+
name_mapping={"specifier": "specifier"},
|
|
724
|
+
)
|
|
725
|
+
class MappingRuleProperty:
|
|
726
|
+
def __init__(self, *, specifier: builtins.str) -> None:
|
|
727
|
+
'''
|
|
728
|
+
:param specifier:
|
|
729
|
+
|
|
730
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-mappingrule.html
|
|
731
|
+
:exampleMetadata: fixture=_generated
|
|
732
|
+
|
|
733
|
+
Example::
|
|
734
|
+
|
|
735
|
+
# The code below shows an example of how to instantiate this type.
|
|
736
|
+
# The values are placeholders you should change.
|
|
737
|
+
from aws_cdk import aws_rolesanywhere as rolesanywhere
|
|
738
|
+
|
|
739
|
+
mapping_rule_property = rolesanywhere.CfnProfile.MappingRuleProperty(
|
|
740
|
+
specifier="specifier"
|
|
741
|
+
)
|
|
742
|
+
'''
|
|
743
|
+
if __debug__:
|
|
744
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7422c94323a807bff6335911405b595c6b214c6864553b5fe25c6dac4b8d588d)
|
|
745
|
+
check_type(argname="argument specifier", value=specifier, expected_type=type_hints["specifier"])
|
|
746
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
747
|
+
"specifier": specifier,
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
@builtins.property
|
|
751
|
+
def specifier(self) -> builtins.str:
|
|
752
|
+
'''
|
|
753
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rolesanywhere-profile-mappingrule.html#cfn-rolesanywhere-profile-mappingrule-specifier
|
|
754
|
+
'''
|
|
755
|
+
result = self._values.get("specifier")
|
|
756
|
+
assert result is not None, "Required property 'specifier' is missing"
|
|
757
|
+
return typing.cast(builtins.str, result)
|
|
758
|
+
|
|
759
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
760
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
761
|
+
|
|
762
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
763
|
+
return not (rhs == self)
|
|
764
|
+
|
|
765
|
+
def __repr__(self) -> str:
|
|
766
|
+
return "MappingRuleProperty(%s)" % ", ".join(
|
|
767
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
768
|
+
)
|
|
769
|
+
|
|
619
770
|
|
|
620
771
|
@jsii.data_type(
|
|
621
772
|
jsii_type="aws-cdk-lib.aws_rolesanywhere.CfnProfileProps",
|
|
@@ -623,6 +774,7 @@ class CfnProfile(
|
|
|
623
774
|
name_mapping={
|
|
624
775
|
"name": "name",
|
|
625
776
|
"role_arns": "roleArns",
|
|
777
|
+
"attribute_mappings": "attributeMappings",
|
|
626
778
|
"duration_seconds": "durationSeconds",
|
|
627
779
|
"enabled": "enabled",
|
|
628
780
|
"managed_policy_arns": "managedPolicyArns",
|
|
@@ -637,6 +789,7 @@ class CfnProfileProps:
|
|
|
637
789
|
*,
|
|
638
790
|
name: builtins.str,
|
|
639
791
|
role_arns: typing.Sequence[builtins.str],
|
|
792
|
+
attribute_mappings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnProfile.AttributeMappingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
640
793
|
duration_seconds: typing.Optional[jsii.Number] = None,
|
|
641
794
|
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
642
795
|
managed_policy_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -648,6 +801,7 @@ class CfnProfileProps:
|
|
|
648
801
|
|
|
649
802
|
:param name: The customer specified name of the resource.
|
|
650
803
|
:param role_arns: A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
|
|
804
|
+
:param attribute_mappings:
|
|
651
805
|
:param duration_seconds: The number of seconds vended session credentials will be valid for.
|
|
652
806
|
:param enabled: The enabled status of the resource.
|
|
653
807
|
:param managed_policy_arns: A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.
|
|
@@ -669,6 +823,12 @@ class CfnProfileProps:
|
|
|
669
823
|
role_arns=["roleArns"],
|
|
670
824
|
|
|
671
825
|
# the properties below are optional
|
|
826
|
+
attribute_mappings=[rolesanywhere.CfnProfile.AttributeMappingProperty(
|
|
827
|
+
certificate_field="certificateField",
|
|
828
|
+
mapping_rules=[rolesanywhere.CfnProfile.MappingRuleProperty(
|
|
829
|
+
specifier="specifier"
|
|
830
|
+
)]
|
|
831
|
+
)],
|
|
672
832
|
duration_seconds=123,
|
|
673
833
|
enabled=False,
|
|
674
834
|
managed_policy_arns=["managedPolicyArns"],
|
|
@@ -684,6 +844,7 @@ class CfnProfileProps:
|
|
|
684
844
|
type_hints = typing.get_type_hints(_typecheckingstub__cc8a99a4d25c139ca779820c498d07ef2292a040188712d06b21830cb9c3d764)
|
|
685
845
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
686
846
|
check_type(argname="argument role_arns", value=role_arns, expected_type=type_hints["role_arns"])
|
|
847
|
+
check_type(argname="argument attribute_mappings", value=attribute_mappings, expected_type=type_hints["attribute_mappings"])
|
|
687
848
|
check_type(argname="argument duration_seconds", value=duration_seconds, expected_type=type_hints["duration_seconds"])
|
|
688
849
|
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
689
850
|
check_type(argname="argument managed_policy_arns", value=managed_policy_arns, expected_type=type_hints["managed_policy_arns"])
|
|
@@ -694,6 +855,8 @@ class CfnProfileProps:
|
|
|
694
855
|
"name": name,
|
|
695
856
|
"role_arns": role_arns,
|
|
696
857
|
}
|
|
858
|
+
if attribute_mappings is not None:
|
|
859
|
+
self._values["attribute_mappings"] = attribute_mappings
|
|
697
860
|
if duration_seconds is not None:
|
|
698
861
|
self._values["duration_seconds"] = duration_seconds
|
|
699
862
|
if enabled is not None:
|
|
@@ -727,6 +890,16 @@ class CfnProfileProps:
|
|
|
727
890
|
assert result is not None, "Required property 'role_arns' is missing"
|
|
728
891
|
return typing.cast(typing.List[builtins.str], result)
|
|
729
892
|
|
|
893
|
+
@builtins.property
|
|
894
|
+
def attribute_mappings(
|
|
895
|
+
self,
|
|
896
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnProfile.AttributeMappingProperty]]]]:
|
|
897
|
+
'''
|
|
898
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rolesanywhere-profile.html#cfn-rolesanywhere-profile-attributemappings
|
|
899
|
+
'''
|
|
900
|
+
result = self._values.get("attribute_mappings")
|
|
901
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnProfile.AttributeMappingProperty]]]], result)
|
|
902
|
+
|
|
730
903
|
@builtins.property
|
|
731
904
|
def duration_seconds(self) -> typing.Optional[jsii.Number]:
|
|
732
905
|
'''The number of seconds vended session credentials will be valid for.
|
|
@@ -1520,6 +1693,7 @@ def _typecheckingstub__15739ec913066dea67815f6297a7c4e3ed351b4df22323a7b46fa138a
|
|
|
1520
1693
|
*,
|
|
1521
1694
|
name: builtins.str,
|
|
1522
1695
|
role_arns: typing.Sequence[builtins.str],
|
|
1696
|
+
attribute_mappings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnProfile.AttributeMappingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1523
1697
|
duration_seconds: typing.Optional[jsii.Number] = None,
|
|
1524
1698
|
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1525
1699
|
managed_policy_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -1554,6 +1728,12 @@ def _typecheckingstub__e8d24089a88ab86238c5340434a58996a10c5d047049180f8bfea3a52
|
|
|
1554
1728
|
"""Type checking stubs"""
|
|
1555
1729
|
pass
|
|
1556
1730
|
|
|
1731
|
+
def _typecheckingstub__a933bc8a589ca2e29de261062eefb4537f3f9eee0b743f26a28b8b55ea20b163(
|
|
1732
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnProfile.AttributeMappingProperty]]]],
|
|
1733
|
+
) -> None:
|
|
1734
|
+
"""Type checking stubs"""
|
|
1735
|
+
pass
|
|
1736
|
+
|
|
1557
1737
|
def _typecheckingstub__c198b2977e47134c474ca242dadf9d96676c95614df55d34d80a89658dbb1f75(
|
|
1558
1738
|
value: typing.Optional[jsii.Number],
|
|
1559
1739
|
) -> None:
|
|
@@ -1590,10 +1770,26 @@ def _typecheckingstub__99305adebaa684e99f5f2849196087f9cc1788f2b87af7300c436a0fe
|
|
|
1590
1770
|
"""Type checking stubs"""
|
|
1591
1771
|
pass
|
|
1592
1772
|
|
|
1773
|
+
def _typecheckingstub__05d62dd9516ef6f649bf3b5d657cdfc92e568e217f35731a999cfd15f5b4f68e(
|
|
1774
|
+
*,
|
|
1775
|
+
certificate_field: builtins.str,
|
|
1776
|
+
mapping_rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnProfile.MappingRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
1777
|
+
) -> None:
|
|
1778
|
+
"""Type checking stubs"""
|
|
1779
|
+
pass
|
|
1780
|
+
|
|
1781
|
+
def _typecheckingstub__7422c94323a807bff6335911405b595c6b214c6864553b5fe25c6dac4b8d588d(
|
|
1782
|
+
*,
|
|
1783
|
+
specifier: builtins.str,
|
|
1784
|
+
) -> None:
|
|
1785
|
+
"""Type checking stubs"""
|
|
1786
|
+
pass
|
|
1787
|
+
|
|
1593
1788
|
def _typecheckingstub__cc8a99a4d25c139ca779820c498d07ef2292a040188712d06b21830cb9c3d764(
|
|
1594
1789
|
*,
|
|
1595
1790
|
name: builtins.str,
|
|
1596
1791
|
role_arns: typing.Sequence[builtins.str],
|
|
1792
|
+
attribute_mappings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnProfile.AttributeMappingProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1597
1793
|
duration_seconds: typing.Optional[jsii.Number] = None,
|
|
1598
1794
|
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1599
1795
|
managed_policy_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
aws_cdk/aws_sns/__init__.py
CHANGED
|
@@ -62,6 +62,17 @@ my_topic.add_subscription(subscriptions.SqsSubscription(queue))
|
|
|
62
62
|
Note that subscriptions of queues in different accounts need to be manually confirmed by
|
|
63
63
|
reading the initial message from the queue and visiting the link found in it.
|
|
64
64
|
|
|
65
|
+
The `grantSubscribe` method adds a policy statement to the topic's resource policy, allowing the specified principal to perform the `sns:Subscribe` action.
|
|
66
|
+
It's useful when you want to allow entities, such as another AWS account or resources created later, to subscribe to the topic at their own pace, separating permission granting from the actual subscription process.
|
|
67
|
+
|
|
68
|
+
```python
|
|
69
|
+
# account_principal: iam.AccountPrincipal
|
|
70
|
+
|
|
71
|
+
my_topic = sns.Topic(self, "MyTopic")
|
|
72
|
+
|
|
73
|
+
my_topic.grant_subscribe(account_principal)
|
|
74
|
+
```
|
|
75
|
+
|
|
65
76
|
### Filter policy
|
|
66
77
|
|
|
67
78
|
A filter policy can be specified when subscribing an endpoint to a topic.
|
|
@@ -2403,6 +2414,14 @@ class ITopic(
|
|
|
2403
2414
|
'''
|
|
2404
2415
|
...
|
|
2405
2416
|
|
|
2417
|
+
@jsii.member(jsii_name="grantSubscribe")
|
|
2418
|
+
def grant_subscribe(self, identity: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
2419
|
+
'''Grant topic subscribing permissions to the given identity.
|
|
2420
|
+
|
|
2421
|
+
:param identity: -
|
|
2422
|
+
'''
|
|
2423
|
+
...
|
|
2424
|
+
|
|
2406
2425
|
@jsii.member(jsii_name="metric")
|
|
2407
2426
|
def metric(
|
|
2408
2427
|
self,
|
|
@@ -2770,6 +2789,17 @@ class _ITopicProxy(
|
|
|
2770
2789
|
check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
|
|
2771
2790
|
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantPublish", [identity]))
|
|
2772
2791
|
|
|
2792
|
+
@jsii.member(jsii_name="grantSubscribe")
|
|
2793
|
+
def grant_subscribe(self, identity: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
2794
|
+
'''Grant topic subscribing permissions to the given identity.
|
|
2795
|
+
|
|
2796
|
+
:param identity: -
|
|
2797
|
+
'''
|
|
2798
|
+
if __debug__:
|
|
2799
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7aeb5c807ffbca475c72e16b5057cf9e84960ecb69a07c559eacf1d2d9f57d08)
|
|
2800
|
+
check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
|
|
2801
|
+
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantSubscribe", [identity]))
|
|
2802
|
+
|
|
2773
2803
|
@jsii.member(jsii_name="metric")
|
|
2774
2804
|
def metric(
|
|
2775
2805
|
self,
|
|
@@ -4494,6 +4524,17 @@ class TopicBase(
|
|
|
4494
4524
|
check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
|
|
4495
4525
|
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantPublish", [grantee]))
|
|
4496
4526
|
|
|
4527
|
+
@jsii.member(jsii_name="grantSubscribe")
|
|
4528
|
+
def grant_subscribe(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
4529
|
+
'''Grant topic subscribing permissions to the given identity.
|
|
4530
|
+
|
|
4531
|
+
:param grantee: -
|
|
4532
|
+
'''
|
|
4533
|
+
if __debug__:
|
|
4534
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cdc643adf708f1051e215b34e0def5de91fed4799b3870f5be0d3e0ddf1702b2)
|
|
4535
|
+
check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
|
|
4536
|
+
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantSubscribe", [grantee]))
|
|
4537
|
+
|
|
4497
4538
|
@jsii.member(jsii_name="metric")
|
|
4498
4539
|
def metric(
|
|
4499
4540
|
self,
|
|
@@ -5703,18 +5744,17 @@ class Topic(TopicBase, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_sns.T
|
|
|
5703
5744
|
|
|
5704
5745
|
Example::
|
|
5705
5746
|
|
|
5706
|
-
|
|
5747
|
+
from aws_cdk.aws_kinesisfirehose_alpha import DeliveryStream
|
|
5748
|
+
# stream: DeliveryStream
|
|
5707
5749
|
|
|
5708
5750
|
|
|
5709
|
-
topic = sns.Topic(self, "
|
|
5751
|
+
topic = sns.Topic(self, "Topic")
|
|
5710
5752
|
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
)
|
|
5717
|
-
]
|
|
5753
|
+
sns.Subscription(self, "Subscription",
|
|
5754
|
+
topic=topic,
|
|
5755
|
+
endpoint=stream.delivery_stream_arn,
|
|
5756
|
+
protocol=sns.SubscriptionProtocol.FIREHOSE,
|
|
5757
|
+
subscription_role_arn="SAMPLE_ARN"
|
|
5718
5758
|
)
|
|
5719
5759
|
'''
|
|
5720
5760
|
|
|
@@ -6291,6 +6331,12 @@ def _typecheckingstub__bf96d0b079cfedfe1ad406a08f2229f4ed5332b9d92fc6d78e1571fce
|
|
|
6291
6331
|
"""Type checking stubs"""
|
|
6292
6332
|
pass
|
|
6293
6333
|
|
|
6334
|
+
def _typecheckingstub__7aeb5c807ffbca475c72e16b5057cf9e84960ecb69a07c559eacf1d2d9f57d08(
|
|
6335
|
+
identity: _IGrantable_71c4f5de,
|
|
6336
|
+
) -> None:
|
|
6337
|
+
"""Type checking stubs"""
|
|
6338
|
+
pass
|
|
6339
|
+
|
|
6294
6340
|
def _typecheckingstub__05c3997edd40866d6774aed03c03e55b6cf80f23f518be34bcdf19adf065db7c(
|
|
6295
6341
|
metric_name: builtins.str,
|
|
6296
6342
|
*,
|
|
@@ -6447,6 +6493,12 @@ def _typecheckingstub__6461236ee087e9f8e6de731371b913e918bbd3ec5d928bd677a69c9c8
|
|
|
6447
6493
|
"""Type checking stubs"""
|
|
6448
6494
|
pass
|
|
6449
6495
|
|
|
6496
|
+
def _typecheckingstub__cdc643adf708f1051e215b34e0def5de91fed4799b3870f5be0d3e0ddf1702b2(
|
|
6497
|
+
grantee: _IGrantable_71c4f5de,
|
|
6498
|
+
) -> None:
|
|
6499
|
+
"""Type checking stubs"""
|
|
6500
|
+
pass
|
|
6501
|
+
|
|
6450
6502
|
def _typecheckingstub__b07969d7a2c71869715d0fe87d9b0d9d67f663ddecc9d81d353ba532fdaa3b8d(
|
|
6451
6503
|
metric_name: builtins.str,
|
|
6452
6504
|
*,
|
|
@@ -21517,7 +21517,7 @@ class EvaluateExpression(
|
|
|
21517
21517
|
:param scope: -
|
|
21518
21518
|
:param id: Descriptive identifier for this chainable.
|
|
21519
21519
|
:param expression: The expression to evaluate. The expression may contain state paths. Example value: ``'$.a + $.b'``
|
|
21520
|
-
:param runtime: The runtime language to use to evaluate the expression. Default:
|
|
21520
|
+
:param runtime: The runtime language to use to evaluate the expression. Default: - the latest Lambda node runtime available in your region.
|
|
21521
21521
|
:param comment: An optional description for this state. Default: - No comment
|
|
21522
21522
|
:param credentials: Credentials for an IAM Role that the State Machine assumes for executing the task. This enables cross-account resource invocations. Default: - None (Task is executed using the State Machine's execution role)
|
|
21523
21523
|
:param heartbeat: (deprecated) Timeout for the heartbeat. Default: - None
|
|
@@ -21619,7 +21619,7 @@ class EvaluateExpressionProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
21619
21619
|
:param task_timeout: Timeout for the task. [disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface Default: - None
|
|
21620
21620
|
:param timeout: (deprecated) Timeout for the task. Default: - None
|
|
21621
21621
|
:param expression: The expression to evaluate. The expression may contain state paths. Example value: ``'$.a + $.b'``
|
|
21622
|
-
:param runtime: The runtime language to use to evaluate the expression. Default:
|
|
21622
|
+
:param runtime: The runtime language to use to evaluate the expression. Default: - the latest Lambda node runtime available in your region.
|
|
21623
21623
|
|
|
21624
21624
|
:exampleMetadata: infused
|
|
21625
21625
|
|
|
@@ -21868,7 +21868,7 @@ class EvaluateExpressionProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
21868
21868
|
def runtime(self) -> typing.Optional[_Runtime_b4eaa844]:
|
|
21869
21869
|
'''The runtime language to use to evaluate the expression.
|
|
21870
21870
|
|
|
21871
|
-
:default:
|
|
21871
|
+
:default: - the latest Lambda node runtime available in your region.
|
|
21872
21872
|
'''
|
|
21873
21873
|
result = self._values.get("runtime")
|
|
21874
21874
|
return typing.cast(typing.Optional[_Runtime_b4eaa844], result)
|
aws_cdk/region_info/__init__.py
CHANGED
|
@@ -404,6 +404,12 @@ class FactName(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.region_info.FactN
|
|
|
404
404
|
'''
|
|
405
405
|
return typing.cast(builtins.str, jsii.sget(cls, "IS_OPT_IN_REGION"))
|
|
406
406
|
|
|
407
|
+
@jsii.python.classproperty
|
|
408
|
+
@jsii.member(jsii_name="LATEST_NODE_RUNTIME")
|
|
409
|
+
def LATEST_NODE_RUNTIME(cls) -> builtins.str:
|
|
410
|
+
'''The latest Lambda NodeJS runtime available in a given region.'''
|
|
411
|
+
return typing.cast(builtins.str, jsii.sget(cls, "LATEST_NODE_RUNTIME"))
|
|
412
|
+
|
|
407
413
|
@jsii.python.classproperty
|
|
408
414
|
@jsii.member(jsii_name="PARTITION")
|
|
409
415
|
def PARTITION(cls) -> builtins.str:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-cdk-lib
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.146.0
|
|
4
4
|
Summary: Version 2 of the AWS Cloud Development Kit library
|
|
5
5
|
Home-page: https://github.com/aws/aws-cdk
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -25,7 +25,7 @@ Requires-Dist: aws-cdk.asset-awscli-v1 <3.0.0,>=2.2.202
|
|
|
25
25
|
Requires-Dist: aws-cdk.asset-kubectl-v20 <3.0.0,>=2.1.2
|
|
26
26
|
Requires-Dist: aws-cdk.asset-node-proxy-agent-v6 <3.0.0,>=2.0.3
|
|
27
27
|
Requires-Dist: constructs <11.0.0,>=10.0.0
|
|
28
|
-
Requires-Dist: jsii <2.0.0,>=1.
|
|
28
|
+
Requires-Dist: jsii <2.0.0,>=1.99.0
|
|
29
29
|
Requires-Dist: publication >=0.0.3
|
|
30
30
|
Requires-Dist: typeguard ~=2.13.3
|
|
31
31
|
|
|
@@ -349,24 +349,6 @@ SOFTWARE.
|
|
|
349
349
|
|
|
350
350
|
----------------
|
|
351
351
|
|
|
352
|
-
** lru-cache - https://www.npmjs.com/package/lru-cache
|
|
353
|
-
|
|
354
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
355
|
-
|
|
356
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
357
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
358
|
-
copyright notice and this permission notice appear in all copies.
|
|
359
|
-
|
|
360
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
361
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
362
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
363
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
364
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
365
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
366
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
367
|
-
|
|
368
|
-
----------------
|
|
369
|
-
|
|
370
352
|
** kubectl - https://github.com/kubernetes/kubectl
|
|
371
353
|
Copyright 2017 The Kubernetes Authors.
|
|
372
354
|
|
|
@@ -401,23 +383,6 @@ Copyright 2016 The Kubernetes Authors All Rights Reserved
|
|
|
401
383
|
|
|
402
384
|
----------------
|
|
403
385
|
|
|
404
|
-
** yallist - https://www.npmjs.com/package/yallist
|
|
405
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
406
|
-
|
|
407
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
408
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
409
|
-
copyright notice and this permission notice appear in all copies.
|
|
410
|
-
|
|
411
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
412
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
413
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
414
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
415
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
416
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
417
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
418
|
-
|
|
419
|
-
----------------
|
|
420
|
-
|
|
421
386
|
** ajv - https://www.npmjs.com/package/ajv/v/8.12.0 | MIT
|
|
422
387
|
The MIT License (MIT)
|
|
423
388
|
|