aws-cdk-lib 2.181.1__py3-none-any.whl → 2.183.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 +751 -41
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.181.1.jsii.tgz → aws-cdk-lib@2.183.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +59 -0
- aws_cdk/aws_apigateway/__init__.py +122 -66
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -0
- aws_cdk/aws_appsync/__init__.py +30 -4
- aws_cdk/aws_autoscaling/__init__.py +409 -36
- aws_cdk/aws_batch/__init__.py +638 -14
- aws_cdk/aws_bedrock/__init__.py +6009 -2326
- aws_cdk/aws_ce/__init__.py +141 -3
- aws_cdk/aws_certificatemanager/__init__.py +24 -0
- aws_cdk/aws_cloudformation/__init__.py +310 -35
- aws_cdk/aws_cloudfront/__init__.py +1 -0
- aws_cdk/aws_cloudtrail/__init__.py +8 -8
- aws_cdk/aws_codebuild/__init__.py +4 -10
- aws_cdk/aws_cognito/__init__.py +3 -3
- aws_cdk/aws_datazone/__init__.py +82 -0
- aws_cdk/aws_dms/__init__.py +350 -0
- aws_cdk/aws_ec2/__init__.py +95 -17
- aws_cdk/aws_ecr/__init__.py +10 -4
- aws_cdk/aws_ecs/__init__.py +58 -9
- aws_cdk/aws_eks/__init__.py +32 -3
- aws_cdk/aws_elasticache/__init__.py +3 -3
- aws_cdk/aws_emr/__init__.py +9 -3
- aws_cdk/aws_fsx/__init__.py +2 -0
- aws_cdk/aws_gameliftstreams/__init__.py +1205 -0
- aws_cdk/aws_guardduty/__init__.py +38 -26
- aws_cdk/aws_iam/__init__.py +295 -37
- aws_cdk/aws_inspector/__init__.py +180 -1
- aws_cdk/aws_iot/__init__.py +616 -22
- aws_cdk/aws_iotfleetwise/__init__.py +72 -10
- aws_cdk/aws_iotsitewise/__init__.py +14 -11
- aws_cdk/aws_kafkaconnect/__init__.py +4 -2
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
- aws_cdk/aws_lambda/__init__.py +17 -0
- aws_cdk/aws_logs/__init__.py +135 -0
- aws_cdk/aws_medialive/__init__.py +86 -86
- aws_cdk/aws_mediapackagev2/__init__.py +22 -14
- aws_cdk/aws_msk/__init__.py +236 -128
- aws_cdk/aws_neptunegraph/__init__.py +3 -3
- aws_cdk/aws_opensearchserverless/__init__.py +1031 -0
- aws_cdk/aws_opensearchservice/__init__.py +261 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +30 -4
- aws_cdk/aws_pipes/__init__.py +6 -2
- aws_cdk/aws_quicksight/__init__.py +6712 -20758
- aws_cdk/aws_rds/__init__.py +174 -30
- aws_cdk/aws_redshift/__init__.py +8 -8
- aws_cdk/aws_s3/__init__.py +8 -0
- aws_cdk/aws_sagemaker/__init__.py +80 -18
- aws_cdk/aws_securitylake/__init__.py +3 -0
- aws_cdk/aws_sns/__init__.py +76 -1
- aws_cdk/aws_synthetics/__init__.py +2 -0
- aws_cdk/aws_transfer/__init__.py +241 -40
- aws_cdk/aws_vpclattice/__init__.py +144 -9
- aws_cdk/aws_wafv2/__init__.py +790 -0
- aws_cdk/aws_wisdom/__init__.py +3 -110
- aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
- aws_cdk/aws_workspacesweb/__init__.py +179 -2
- aws_cdk/aws_xray/__init__.py +195 -0
- aws_cdk/cloud_assembly_schema/__init__.py +224 -4
- aws_cdk/custom_resources/__init__.py +65 -8
- aws_cdk/cx_api/__init__.py +2 -1
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/RECORD +69 -68
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_xray/__init__.py
CHANGED
|
@@ -1765,6 +1765,165 @@ class CfnSamplingRuleProps:
|
|
|
1765
1765
|
)
|
|
1766
1766
|
|
|
1767
1767
|
|
|
1768
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
1769
|
+
class CfnTransactionSearchConfig(
|
|
1770
|
+
_CfnResource_9df397a6,
|
|
1771
|
+
metaclass=jsii.JSIIMeta,
|
|
1772
|
+
jsii_type="aws-cdk-lib.aws_xray.CfnTransactionSearchConfig",
|
|
1773
|
+
):
|
|
1774
|
+
'''This schema provides construct and validation rules for AWS-XRay TransactionSearchConfig resource parameters.
|
|
1775
|
+
|
|
1776
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-transactionsearchconfig.html
|
|
1777
|
+
:cloudformationResource: AWS::XRay::TransactionSearchConfig
|
|
1778
|
+
:exampleMetadata: fixture=_generated
|
|
1779
|
+
|
|
1780
|
+
Example::
|
|
1781
|
+
|
|
1782
|
+
# The code below shows an example of how to instantiate this type.
|
|
1783
|
+
# The values are placeholders you should change.
|
|
1784
|
+
from aws_cdk import aws_xray as xray
|
|
1785
|
+
|
|
1786
|
+
cfn_transaction_search_config = xray.CfnTransactionSearchConfig(self, "MyCfnTransactionSearchConfig",
|
|
1787
|
+
indexing_percentage=123
|
|
1788
|
+
)
|
|
1789
|
+
'''
|
|
1790
|
+
|
|
1791
|
+
def __init__(
|
|
1792
|
+
self,
|
|
1793
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1794
|
+
id: builtins.str,
|
|
1795
|
+
*,
|
|
1796
|
+
indexing_percentage: typing.Optional[jsii.Number] = None,
|
|
1797
|
+
) -> None:
|
|
1798
|
+
'''
|
|
1799
|
+
:param scope: Scope in which this resource is defined.
|
|
1800
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1801
|
+
:param indexing_percentage: Determines the percentage of traces indexed from CloudWatch Logs to X-Ray.
|
|
1802
|
+
'''
|
|
1803
|
+
if __debug__:
|
|
1804
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f4e1a30e946dc148e1f6ca9dc5dce1a4c01ae226f9b2a99f68a6bfd8caeabe51)
|
|
1805
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1806
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1807
|
+
props = CfnTransactionSearchConfigProps(
|
|
1808
|
+
indexing_percentage=indexing_percentage
|
|
1809
|
+
)
|
|
1810
|
+
|
|
1811
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1812
|
+
|
|
1813
|
+
@jsii.member(jsii_name="inspect")
|
|
1814
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1815
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1816
|
+
|
|
1817
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1818
|
+
'''
|
|
1819
|
+
if __debug__:
|
|
1820
|
+
type_hints = typing.get_type_hints(_typecheckingstub__394cc58a2d528bf2d5be35ac0c8c35c1fb008b91fb4981e2a17b7c6ffdba2f6b)
|
|
1821
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1822
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1823
|
+
|
|
1824
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1825
|
+
def _render_properties(
|
|
1826
|
+
self,
|
|
1827
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1828
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1829
|
+
'''
|
|
1830
|
+
:param props: -
|
|
1831
|
+
'''
|
|
1832
|
+
if __debug__:
|
|
1833
|
+
type_hints = typing.get_type_hints(_typecheckingstub__60d903fbe1bf5e78e1363dfa2d6b437d90640f9c35b6768d40e1327382ee8fcb)
|
|
1834
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1835
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1836
|
+
|
|
1837
|
+
@jsii.python.classproperty
|
|
1838
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1839
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1840
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1841
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1842
|
+
|
|
1843
|
+
@builtins.property
|
|
1844
|
+
@jsii.member(jsii_name="attrAccountId")
|
|
1845
|
+
def attr_account_id(self) -> builtins.str:
|
|
1846
|
+
'''User account id, used as the primary identifier for the resource.
|
|
1847
|
+
|
|
1848
|
+
:cloudformationAttribute: AccountId
|
|
1849
|
+
'''
|
|
1850
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAccountId"))
|
|
1851
|
+
|
|
1852
|
+
@builtins.property
|
|
1853
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1854
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1855
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1856
|
+
|
|
1857
|
+
@builtins.property
|
|
1858
|
+
@jsii.member(jsii_name="indexingPercentage")
|
|
1859
|
+
def indexing_percentage(self) -> typing.Optional[jsii.Number]:
|
|
1860
|
+
'''Determines the percentage of traces indexed from CloudWatch Logs to X-Ray.'''
|
|
1861
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "indexingPercentage"))
|
|
1862
|
+
|
|
1863
|
+
@indexing_percentage.setter
|
|
1864
|
+
def indexing_percentage(self, value: typing.Optional[jsii.Number]) -> None:
|
|
1865
|
+
if __debug__:
|
|
1866
|
+
type_hints = typing.get_type_hints(_typecheckingstub__667a8dfa445e5a7771cc889a458d31a28e3722f0192c79d0a77ca783777108dc)
|
|
1867
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1868
|
+
jsii.set(self, "indexingPercentage", value) # pyright: ignore[reportArgumentType]
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
@jsii.data_type(
|
|
1872
|
+
jsii_type="aws-cdk-lib.aws_xray.CfnTransactionSearchConfigProps",
|
|
1873
|
+
jsii_struct_bases=[],
|
|
1874
|
+
name_mapping={"indexing_percentage": "indexingPercentage"},
|
|
1875
|
+
)
|
|
1876
|
+
class CfnTransactionSearchConfigProps:
|
|
1877
|
+
def __init__(
|
|
1878
|
+
self,
|
|
1879
|
+
*,
|
|
1880
|
+
indexing_percentage: typing.Optional[jsii.Number] = None,
|
|
1881
|
+
) -> None:
|
|
1882
|
+
'''Properties for defining a ``CfnTransactionSearchConfig``.
|
|
1883
|
+
|
|
1884
|
+
:param indexing_percentage: Determines the percentage of traces indexed from CloudWatch Logs to X-Ray.
|
|
1885
|
+
|
|
1886
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-transactionsearchconfig.html
|
|
1887
|
+
:exampleMetadata: fixture=_generated
|
|
1888
|
+
|
|
1889
|
+
Example::
|
|
1890
|
+
|
|
1891
|
+
# The code below shows an example of how to instantiate this type.
|
|
1892
|
+
# The values are placeholders you should change.
|
|
1893
|
+
from aws_cdk import aws_xray as xray
|
|
1894
|
+
|
|
1895
|
+
cfn_transaction_search_config_props = xray.CfnTransactionSearchConfigProps(
|
|
1896
|
+
indexing_percentage=123
|
|
1897
|
+
)
|
|
1898
|
+
'''
|
|
1899
|
+
if __debug__:
|
|
1900
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b2b1f6ec191fd59be2f27330c4455e3dafefecd89a9d126ea095d2128052987b)
|
|
1901
|
+
check_type(argname="argument indexing_percentage", value=indexing_percentage, expected_type=type_hints["indexing_percentage"])
|
|
1902
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1903
|
+
if indexing_percentage is not None:
|
|
1904
|
+
self._values["indexing_percentage"] = indexing_percentage
|
|
1905
|
+
|
|
1906
|
+
@builtins.property
|
|
1907
|
+
def indexing_percentage(self) -> typing.Optional[jsii.Number]:
|
|
1908
|
+
'''Determines the percentage of traces indexed from CloudWatch Logs to X-Ray.
|
|
1909
|
+
|
|
1910
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-transactionsearchconfig.html#cfn-xray-transactionsearchconfig-indexingpercentage
|
|
1911
|
+
'''
|
|
1912
|
+
result = self._values.get("indexing_percentage")
|
|
1913
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1914
|
+
|
|
1915
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1916
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1917
|
+
|
|
1918
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1919
|
+
return not (rhs == self)
|
|
1920
|
+
|
|
1921
|
+
def __repr__(self) -> str:
|
|
1922
|
+
return "CfnTransactionSearchConfigProps(%s)" % ", ".join(
|
|
1923
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1924
|
+
)
|
|
1925
|
+
|
|
1926
|
+
|
|
1768
1927
|
__all__ = [
|
|
1769
1928
|
"CfnGroup",
|
|
1770
1929
|
"CfnGroupProps",
|
|
@@ -1772,6 +1931,8 @@ __all__ = [
|
|
|
1772
1931
|
"CfnResourcePolicyProps",
|
|
1773
1932
|
"CfnSamplingRule",
|
|
1774
1933
|
"CfnSamplingRuleProps",
|
|
1934
|
+
"CfnTransactionSearchConfig",
|
|
1935
|
+
"CfnTransactionSearchConfigProps",
|
|
1775
1936
|
]
|
|
1776
1937
|
|
|
1777
1938
|
publication.publish()
|
|
@@ -2003,3 +2164,37 @@ def _typecheckingstub__6728191ed28a57c9130311eb26a506218d6fceeade2816c46cf035cf4
|
|
|
2003
2164
|
) -> None:
|
|
2004
2165
|
"""Type checking stubs"""
|
|
2005
2166
|
pass
|
|
2167
|
+
|
|
2168
|
+
def _typecheckingstub__f4e1a30e946dc148e1f6ca9dc5dce1a4c01ae226f9b2a99f68a6bfd8caeabe51(
|
|
2169
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
2170
|
+
id: builtins.str,
|
|
2171
|
+
*,
|
|
2172
|
+
indexing_percentage: typing.Optional[jsii.Number] = None,
|
|
2173
|
+
) -> None:
|
|
2174
|
+
"""Type checking stubs"""
|
|
2175
|
+
pass
|
|
2176
|
+
|
|
2177
|
+
def _typecheckingstub__394cc58a2d528bf2d5be35ac0c8c35c1fb008b91fb4981e2a17b7c6ffdba2f6b(
|
|
2178
|
+
inspector: _TreeInspector_488e0dd5,
|
|
2179
|
+
) -> None:
|
|
2180
|
+
"""Type checking stubs"""
|
|
2181
|
+
pass
|
|
2182
|
+
|
|
2183
|
+
def _typecheckingstub__60d903fbe1bf5e78e1363dfa2d6b437d90640f9c35b6768d40e1327382ee8fcb(
|
|
2184
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2185
|
+
) -> None:
|
|
2186
|
+
"""Type checking stubs"""
|
|
2187
|
+
pass
|
|
2188
|
+
|
|
2189
|
+
def _typecheckingstub__667a8dfa445e5a7771cc889a458d31a28e3722f0192c79d0a77ca783777108dc(
|
|
2190
|
+
value: typing.Optional[jsii.Number],
|
|
2191
|
+
) -> None:
|
|
2192
|
+
"""Type checking stubs"""
|
|
2193
|
+
pass
|
|
2194
|
+
|
|
2195
|
+
def _typecheckingstub__b2b1f6ec191fd59be2f27330c4455e3dafefecd89a9d126ea095d2128052987b(
|
|
2196
|
+
*,
|
|
2197
|
+
indexing_percentage: typing.Optional[jsii.Number] = None,
|
|
2198
|
+
) -> None:
|
|
2199
|
+
"""Type checking stubs"""
|
|
2200
|
+
pass
|
|
@@ -2215,6 +2215,8 @@ class ContextProvider(enum.Enum):
|
|
|
2215
2215
|
'''Security group provider.'''
|
|
2216
2216
|
KEY_PROVIDER = "KEY_PROVIDER"
|
|
2217
2217
|
'''KMS Key Provider.'''
|
|
2218
|
+
CC_API_PROVIDER = "CC_API_PROVIDER"
|
|
2219
|
+
'''CCAPI Provider.'''
|
|
2218
2220
|
PLUGIN = "PLUGIN"
|
|
2219
2221
|
'''A plugin provider (the actual plugin name will be in the properties).'''
|
|
2220
2222
|
|
|
@@ -6724,7 +6726,7 @@ class MissingContext:
|
|
|
6724
6726
|
self,
|
|
6725
6727
|
*,
|
|
6726
6728
|
key: builtins.str,
|
|
6727
|
-
props: typing.Union[typing.Union["AmiContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union["AvailabilityZonesContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union[HostedZoneContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union["SSMParameterContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union["VpcContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union[EndpointServiceAvailabilityZonesContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union["LoadBalancerContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union[LoadBalancerListenerContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union["SecurityGroupContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union[KeyContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union["PluginContextQuery", typing.Dict[builtins.str, typing.Any]]],
|
|
6729
|
+
props: typing.Union[typing.Union["AmiContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union["AvailabilityZonesContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union[HostedZoneContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union["SSMParameterContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union["VpcContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union[EndpointServiceAvailabilityZonesContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union["LoadBalancerContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union[LoadBalancerListenerContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union["SecurityGroupContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union[KeyContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union["CcApiContextQuery", typing.Dict[builtins.str, typing.Any]], typing.Union["PluginContextQuery", typing.Dict[builtins.str, typing.Any]]],
|
|
6728
6730
|
provider: ContextProvider,
|
|
6729
6731
|
) -> None:
|
|
6730
6732
|
'''Represents a missing piece of context.
|
|
@@ -6784,11 +6786,11 @@ class MissingContext:
|
|
|
6784
6786
|
@builtins.property
|
|
6785
6787
|
def props(
|
|
6786
6788
|
self,
|
|
6787
|
-
) -> typing.Union["AmiContextQuery", "AvailabilityZonesContextQuery", HostedZoneContextQuery, "SSMParameterContextQuery", "VpcContextQuery", EndpointServiceAvailabilityZonesContextQuery, "LoadBalancerContextQuery", LoadBalancerListenerContextQuery, "SecurityGroupContextQuery", KeyContextQuery, "PluginContextQuery"]:
|
|
6789
|
+
) -> typing.Union["AmiContextQuery", "AvailabilityZonesContextQuery", HostedZoneContextQuery, "SSMParameterContextQuery", "VpcContextQuery", EndpointServiceAvailabilityZonesContextQuery, "LoadBalancerContextQuery", LoadBalancerListenerContextQuery, "SecurityGroupContextQuery", KeyContextQuery, "CcApiContextQuery", "PluginContextQuery"]:
|
|
6788
6790
|
'''A set of provider-specific options.'''
|
|
6789
6791
|
result = self._values.get("props")
|
|
6790
6792
|
assert result is not None, "Required property 'props' is missing"
|
|
6791
|
-
return typing.cast(typing.Union["AmiContextQuery", "AvailabilityZonesContextQuery", HostedZoneContextQuery, "SSMParameterContextQuery", "VpcContextQuery", EndpointServiceAvailabilityZonesContextQuery, "LoadBalancerContextQuery", LoadBalancerListenerContextQuery, "SecurityGroupContextQuery", KeyContextQuery, "PluginContextQuery"], result)
|
|
6793
|
+
return typing.cast(typing.Union["AmiContextQuery", "AvailabilityZonesContextQuery", HostedZoneContextQuery, "SSMParameterContextQuery", "VpcContextQuery", EndpointServiceAvailabilityZonesContextQuery, "LoadBalancerContextQuery", LoadBalancerListenerContextQuery, "SecurityGroupContextQuery", KeyContextQuery, "CcApiContextQuery", "PluginContextQuery"], result)
|
|
6792
6794
|
|
|
6793
6795
|
@builtins.property
|
|
6794
6796
|
def provider(self) -> ContextProvider:
|
|
@@ -8171,6 +8173,208 @@ class AvailabilityZonesContextQuery(ContextLookupRoleOptions):
|
|
|
8171
8173
|
)
|
|
8172
8174
|
|
|
8173
8175
|
|
|
8176
|
+
@jsii.data_type(
|
|
8177
|
+
jsii_type="aws-cdk-lib.cloud_assembly_schema.CcApiContextQuery",
|
|
8178
|
+
jsii_struct_bases=[ContextLookupRoleOptions],
|
|
8179
|
+
name_mapping={
|
|
8180
|
+
"account": "account",
|
|
8181
|
+
"region": "region",
|
|
8182
|
+
"assume_role_additional_options": "assumeRoleAdditionalOptions",
|
|
8183
|
+
"lookup_role_arn": "lookupRoleArn",
|
|
8184
|
+
"lookup_role_external_id": "lookupRoleExternalId",
|
|
8185
|
+
"properties_to_return": "propertiesToReturn",
|
|
8186
|
+
"type_name": "typeName",
|
|
8187
|
+
"exact_identifier": "exactIdentifier",
|
|
8188
|
+
"property_match": "propertyMatch",
|
|
8189
|
+
},
|
|
8190
|
+
)
|
|
8191
|
+
class CcApiContextQuery(ContextLookupRoleOptions):
|
|
8192
|
+
def __init__(
|
|
8193
|
+
self,
|
|
8194
|
+
*,
|
|
8195
|
+
account: builtins.str,
|
|
8196
|
+
region: builtins.str,
|
|
8197
|
+
assume_role_additional_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
8198
|
+
lookup_role_arn: typing.Optional[builtins.str] = None,
|
|
8199
|
+
lookup_role_external_id: typing.Optional[builtins.str] = None,
|
|
8200
|
+
properties_to_return: typing.Sequence[builtins.str],
|
|
8201
|
+
type_name: builtins.str,
|
|
8202
|
+
exact_identifier: typing.Optional[builtins.str] = None,
|
|
8203
|
+
property_match: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
8204
|
+
) -> None:
|
|
8205
|
+
'''Query input for lookup up Cloudformation resources using CC API.
|
|
8206
|
+
|
|
8207
|
+
:param account: Query account.
|
|
8208
|
+
:param region: Query region.
|
|
8209
|
+
:param assume_role_additional_options: Additional options to pass to STS when assuming the lookup role. - ``RoleArn`` should not be used. Use the dedicated ``lookupRoleArn`` property instead. - ``ExternalId`` should not be used. Use the dedicated ``lookupRoleExternalId`` instead. Default: - No additional options.
|
|
8210
|
+
:param lookup_role_arn: The ARN of the role that should be used to look up the missing values. Default: - None
|
|
8211
|
+
:param lookup_role_external_id: The ExternalId that needs to be supplied while assuming this role. Default: - No ExternalId will be supplied
|
|
8212
|
+
:param properties_to_return: This is a set of properties returned from CC API that we want to return from ContextQuery.
|
|
8213
|
+
:param type_name: The Cloudformation resource type. See https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html
|
|
8214
|
+
:param exact_identifier: exactIdentifier of the resource. Specifying exactIdentifier will return at most one result. Either exactIdentifier or propertyMatch should be specified. Default: - None
|
|
8215
|
+
:param property_match: This indicates the property to search for. If both exactIdentifier and propertyMatch are specified, then exactIdentifier is used. Specifying propertyMatch will return 0 or more results. Either exactIdentifier or propertyMatch should be specified. Default: - None
|
|
8216
|
+
|
|
8217
|
+
:exampleMetadata: fixture=_generated
|
|
8218
|
+
|
|
8219
|
+
Example::
|
|
8220
|
+
|
|
8221
|
+
# The code below shows an example of how to instantiate this type.
|
|
8222
|
+
# The values are placeholders you should change.
|
|
8223
|
+
from aws_cdk import cloud_assembly_schema
|
|
8224
|
+
|
|
8225
|
+
# assume_role_additional_options: Any
|
|
8226
|
+
# property_match: Any
|
|
8227
|
+
|
|
8228
|
+
cc_api_context_query = CcApiContextQuery(
|
|
8229
|
+
account="account",
|
|
8230
|
+
properties_to_return=["propertiesToReturn"],
|
|
8231
|
+
region="region",
|
|
8232
|
+
type_name="typeName",
|
|
8233
|
+
|
|
8234
|
+
# the properties below are optional
|
|
8235
|
+
assume_role_additional_options={
|
|
8236
|
+
"assume_role_additional_options_key": assume_role_additional_options
|
|
8237
|
+
},
|
|
8238
|
+
exact_identifier="exactIdentifier",
|
|
8239
|
+
lookup_role_arn="lookupRoleArn",
|
|
8240
|
+
lookup_role_external_id="lookupRoleExternalId",
|
|
8241
|
+
property_match={
|
|
8242
|
+
"property_match_key": property_match
|
|
8243
|
+
}
|
|
8244
|
+
)
|
|
8245
|
+
'''
|
|
8246
|
+
if __debug__:
|
|
8247
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cdf6a33d88e10af638d11c3322b9291978a474ed65f1a2ab37cdecc88fbcd5ab)
|
|
8248
|
+
check_type(argname="argument account", value=account, expected_type=type_hints["account"])
|
|
8249
|
+
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
8250
|
+
check_type(argname="argument assume_role_additional_options", value=assume_role_additional_options, expected_type=type_hints["assume_role_additional_options"])
|
|
8251
|
+
check_type(argname="argument lookup_role_arn", value=lookup_role_arn, expected_type=type_hints["lookup_role_arn"])
|
|
8252
|
+
check_type(argname="argument lookup_role_external_id", value=lookup_role_external_id, expected_type=type_hints["lookup_role_external_id"])
|
|
8253
|
+
check_type(argname="argument properties_to_return", value=properties_to_return, expected_type=type_hints["properties_to_return"])
|
|
8254
|
+
check_type(argname="argument type_name", value=type_name, expected_type=type_hints["type_name"])
|
|
8255
|
+
check_type(argname="argument exact_identifier", value=exact_identifier, expected_type=type_hints["exact_identifier"])
|
|
8256
|
+
check_type(argname="argument property_match", value=property_match, expected_type=type_hints["property_match"])
|
|
8257
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
8258
|
+
"account": account,
|
|
8259
|
+
"region": region,
|
|
8260
|
+
"properties_to_return": properties_to_return,
|
|
8261
|
+
"type_name": type_name,
|
|
8262
|
+
}
|
|
8263
|
+
if assume_role_additional_options is not None:
|
|
8264
|
+
self._values["assume_role_additional_options"] = assume_role_additional_options
|
|
8265
|
+
if lookup_role_arn is not None:
|
|
8266
|
+
self._values["lookup_role_arn"] = lookup_role_arn
|
|
8267
|
+
if lookup_role_external_id is not None:
|
|
8268
|
+
self._values["lookup_role_external_id"] = lookup_role_external_id
|
|
8269
|
+
if exact_identifier is not None:
|
|
8270
|
+
self._values["exact_identifier"] = exact_identifier
|
|
8271
|
+
if property_match is not None:
|
|
8272
|
+
self._values["property_match"] = property_match
|
|
8273
|
+
|
|
8274
|
+
@builtins.property
|
|
8275
|
+
def account(self) -> builtins.str:
|
|
8276
|
+
'''Query account.'''
|
|
8277
|
+
result = self._values.get("account")
|
|
8278
|
+
assert result is not None, "Required property 'account' is missing"
|
|
8279
|
+
return typing.cast(builtins.str, result)
|
|
8280
|
+
|
|
8281
|
+
@builtins.property
|
|
8282
|
+
def region(self) -> builtins.str:
|
|
8283
|
+
'''Query region.'''
|
|
8284
|
+
result = self._values.get("region")
|
|
8285
|
+
assert result is not None, "Required property 'region' is missing"
|
|
8286
|
+
return typing.cast(builtins.str, result)
|
|
8287
|
+
|
|
8288
|
+
@builtins.property
|
|
8289
|
+
def assume_role_additional_options(
|
|
8290
|
+
self,
|
|
8291
|
+
) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
|
|
8292
|
+
'''Additional options to pass to STS when assuming the lookup role.
|
|
8293
|
+
|
|
8294
|
+
- ``RoleArn`` should not be used. Use the dedicated ``lookupRoleArn`` property instead.
|
|
8295
|
+
- ``ExternalId`` should not be used. Use the dedicated ``lookupRoleExternalId`` instead.
|
|
8296
|
+
|
|
8297
|
+
:default: - No additional options.
|
|
8298
|
+
|
|
8299
|
+
:see: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property
|
|
8300
|
+
'''
|
|
8301
|
+
result = self._values.get("assume_role_additional_options")
|
|
8302
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
|
|
8303
|
+
|
|
8304
|
+
@builtins.property
|
|
8305
|
+
def lookup_role_arn(self) -> typing.Optional[builtins.str]:
|
|
8306
|
+
'''The ARN of the role that should be used to look up the missing values.
|
|
8307
|
+
|
|
8308
|
+
:default: - None
|
|
8309
|
+
'''
|
|
8310
|
+
result = self._values.get("lookup_role_arn")
|
|
8311
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
8312
|
+
|
|
8313
|
+
@builtins.property
|
|
8314
|
+
def lookup_role_external_id(self) -> typing.Optional[builtins.str]:
|
|
8315
|
+
'''The ExternalId that needs to be supplied while assuming this role.
|
|
8316
|
+
|
|
8317
|
+
:default: - No ExternalId will be supplied
|
|
8318
|
+
'''
|
|
8319
|
+
result = self._values.get("lookup_role_external_id")
|
|
8320
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
8321
|
+
|
|
8322
|
+
@builtins.property
|
|
8323
|
+
def properties_to_return(self) -> typing.List[builtins.str]:
|
|
8324
|
+
'''This is a set of properties returned from CC API that we want to return from ContextQuery.'''
|
|
8325
|
+
result = self._values.get("properties_to_return")
|
|
8326
|
+
assert result is not None, "Required property 'properties_to_return' is missing"
|
|
8327
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
8328
|
+
|
|
8329
|
+
@builtins.property
|
|
8330
|
+
def type_name(self) -> builtins.str:
|
|
8331
|
+
'''The Cloudformation resource type.
|
|
8332
|
+
|
|
8333
|
+
See https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/supported-resources.html
|
|
8334
|
+
'''
|
|
8335
|
+
result = self._values.get("type_name")
|
|
8336
|
+
assert result is not None, "Required property 'type_name' is missing"
|
|
8337
|
+
return typing.cast(builtins.str, result)
|
|
8338
|
+
|
|
8339
|
+
@builtins.property
|
|
8340
|
+
def exact_identifier(self) -> typing.Optional[builtins.str]:
|
|
8341
|
+
'''exactIdentifier of the resource.
|
|
8342
|
+
|
|
8343
|
+
Specifying exactIdentifier will return at most one result.
|
|
8344
|
+
Either exactIdentifier or propertyMatch should be specified.
|
|
8345
|
+
|
|
8346
|
+
:default: - None
|
|
8347
|
+
'''
|
|
8348
|
+
result = self._values.get("exact_identifier")
|
|
8349
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
8350
|
+
|
|
8351
|
+
@builtins.property
|
|
8352
|
+
def property_match(
|
|
8353
|
+
self,
|
|
8354
|
+
) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
|
|
8355
|
+
'''This indicates the property to search for.
|
|
8356
|
+
|
|
8357
|
+
If both exactIdentifier and propertyMatch are specified, then exactIdentifier is used.
|
|
8358
|
+
Specifying propertyMatch will return 0 or more results.
|
|
8359
|
+
Either exactIdentifier or propertyMatch should be specified.
|
|
8360
|
+
|
|
8361
|
+
:default: - None
|
|
8362
|
+
'''
|
|
8363
|
+
result = self._values.get("property_match")
|
|
8364
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
|
|
8365
|
+
|
|
8366
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8367
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
8368
|
+
|
|
8369
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
8370
|
+
return not (rhs == self)
|
|
8371
|
+
|
|
8372
|
+
def __repr__(self) -> str:
|
|
8373
|
+
return "CcApiContextQuery(%s)" % ", ".join(
|
|
8374
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
8375
|
+
)
|
|
8376
|
+
|
|
8377
|
+
|
|
8174
8378
|
@jsii.data_type(
|
|
8175
8379
|
jsii_type="aws-cdk-lib.cloud_assembly_schema.LoadBalancerContextQuery",
|
|
8176
8380
|
jsii_struct_bases=[LoadBalancerFilter],
|
|
@@ -8652,6 +8856,7 @@ __all__ = [
|
|
|
8652
8856
|
"AwsCloudFormationStackProperties",
|
|
8653
8857
|
"AwsDestination",
|
|
8654
8858
|
"BootstrapRole",
|
|
8859
|
+
"CcApiContextQuery",
|
|
8655
8860
|
"CdkCommand",
|
|
8656
8861
|
"CdkCommands",
|
|
8657
8862
|
"ContainerImageAssetCacheOption",
|
|
@@ -9217,7 +9422,7 @@ def _typecheckingstub__e77201bee0581d95dfd6e3150d491c958851c456cbdd8aaea71cb7371
|
|
|
9217
9422
|
def _typecheckingstub__af657f9f6c83e032e4811f8db352c854d88bb8d40b052424137f1bf159f9170d(
|
|
9218
9423
|
*,
|
|
9219
9424
|
key: builtins.str,
|
|
9220
|
-
props: typing.Union[typing.Union[AmiContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[AvailabilityZonesContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[HostedZoneContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[SSMParameterContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[VpcContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[EndpointServiceAvailabilityZonesContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[LoadBalancerContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[LoadBalancerListenerContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[SecurityGroupContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[KeyContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[PluginContextQuery, typing.Dict[builtins.str, typing.Any]]],
|
|
9425
|
+
props: typing.Union[typing.Union[AmiContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[AvailabilityZonesContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[HostedZoneContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[SSMParameterContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[VpcContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[EndpointServiceAvailabilityZonesContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[LoadBalancerContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[LoadBalancerListenerContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[SecurityGroupContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[KeyContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[CcApiContextQuery, typing.Dict[builtins.str, typing.Any]], typing.Union[PluginContextQuery, typing.Dict[builtins.str, typing.Any]]],
|
|
9221
9426
|
provider: ContextProvider,
|
|
9222
9427
|
) -> None:
|
|
9223
9428
|
"""Type checking stubs"""
|
|
@@ -9337,6 +9542,21 @@ def _typecheckingstub__e23cb5710241f65fda5e65504911a7340786a62ce9cf7c60c9cfc1d4d
|
|
|
9337
9542
|
"""Type checking stubs"""
|
|
9338
9543
|
pass
|
|
9339
9544
|
|
|
9545
|
+
def _typecheckingstub__cdf6a33d88e10af638d11c3322b9291978a474ed65f1a2ab37cdecc88fbcd5ab(
|
|
9546
|
+
*,
|
|
9547
|
+
account: builtins.str,
|
|
9548
|
+
region: builtins.str,
|
|
9549
|
+
assume_role_additional_options: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
9550
|
+
lookup_role_arn: typing.Optional[builtins.str] = None,
|
|
9551
|
+
lookup_role_external_id: typing.Optional[builtins.str] = None,
|
|
9552
|
+
properties_to_return: typing.Sequence[builtins.str],
|
|
9553
|
+
type_name: builtins.str,
|
|
9554
|
+
exact_identifier: typing.Optional[builtins.str] = None,
|
|
9555
|
+
property_match: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
9556
|
+
) -> None:
|
|
9557
|
+
"""Type checking stubs"""
|
|
9558
|
+
pass
|
|
9559
|
+
|
|
9340
9560
|
def _typecheckingstub__684496ae759db19b352bca3cc225ef7242df94dfd04fc23412be9b315f601e9a(
|
|
9341
9561
|
*,
|
|
9342
9562
|
account: builtins.str,
|