aws-cdk-lib 2.133.0__py3-none-any.whl → 2.134.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 +9 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.133.0.jsii.tgz → aws-cdk-lib@2.134.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +105 -3
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +155 -3
- aws_cdk/aws_appconfig/__init__.py +186 -8
- aws_cdk/aws_appintegrations/__init__.py +551 -0
- aws_cdk/aws_appsync/__init__.py +71 -0
- aws_cdk/aws_autoscaling/__init__.py +6 -4
- aws_cdk/aws_backup/__init__.py +23 -12
- aws_cdk/aws_batch/__init__.py +423 -73
- aws_cdk/aws_bedrock/__init__.py +197 -2
- aws_cdk/aws_cloudformation/__init__.py +1 -1
- aws_cdk/aws_cloudfront/__init__.py +2 -2
- aws_cdk/aws_cloudtrail/__init__.py +44 -14
- aws_cdk/aws_cloudwatch/__init__.py +18 -0
- aws_cdk/aws_codeartifact/__init__.py +812 -2
- aws_cdk/aws_codebuild/__init__.py +21 -5
- aws_cdk/aws_codepipeline/__init__.py +24 -8
- aws_cdk/aws_cognito/__init__.py +41 -40
- aws_cdk/aws_connect/__init__.py +256 -0
- aws_cdk/aws_datasync/__init__.py +393 -13
- aws_cdk/aws_dlm/__init__.py +2 -2
- aws_cdk/aws_docdbelastic/__init__.py +117 -0
- aws_cdk/aws_dynamodb/__init__.py +416 -5
- aws_cdk/aws_ec2/__init__.py +493 -93
- aws_cdk/aws_ecs/__init__.py +6 -4
- aws_cdk/aws_eks/__init__.py +27 -25
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +359 -60
- aws_cdk/aws_entityresolution/__init__.py +91 -64
- aws_cdk/aws_glue/__init__.py +137 -3
- aws_cdk/aws_iam/__init__.py +9 -10
- aws_cdk/aws_internetmonitor/__init__.py +85 -0
- aws_cdk/aws_iotsitewise/__init__.py +110 -50
- aws_cdk/aws_kafkaconnect/__init__.py +1237 -162
- aws_cdk/aws_kendra/__init__.py +34 -24
- aws_cdk/aws_kinesisanalytics/__init__.py +37 -37
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +37 -37
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -2
- aws_cdk/aws_msk/__init__.py +88 -0
- aws_cdk/aws_opensearchservice/__init__.py +19 -17
- aws_cdk/aws_pinpoint/__init__.py +42 -0
- aws_cdk/aws_rds/__init__.py +48 -14
- aws_cdk/aws_sagemaker/__init__.py +2 -2
- aws_cdk/aws_ssm/__init__.py +3 -3
- aws_cdk/aws_stepfunctions_tasks/__init__.py +23 -0
- aws_cdk/aws_synthetics/__init__.py +74 -14
- aws_cdk/aws_transfer/__init__.py +4 -3
- aws_cdk/aws_wafv2/__init__.py +96 -46
- aws_cdk/cx_api/__init__.py +17 -0
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.134.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.134.0.dist-info}/RECORD +56 -56
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.134.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.134.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.134.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.133.0.dist-info → aws_cdk_lib-2.134.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_iam/__init__.py
CHANGED
|
@@ -2294,7 +2294,7 @@ class CfnManagedPolicy(
|
|
|
2294
2294
|
:param description: A friendly description of the policy. Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables." The policy description is immutable. After a value is assigned, it cannot be changed.
|
|
2295
2295
|
:param groups: The name (friendly name, not ARN) of the group to attach the policy to. This parameter allows (through its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
|
|
2296
2296
|
:param managed_policy_name: The friendly name of the policy. .. epigraph:: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name. If you specify a name, you must specify the ``CAPABILITY_NAMED_IAM`` value to acknowledge your template's capabilities. For more information, see `Acknowledging IAM Resources in AWS CloudFormation Templates <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#using-iam-capabilities>`_ . .. epigraph:: Naming an IAM resource can cause an unrecoverable error if you reuse the same template in multiple Regions. To prevent this, we recommend using ``Fn::Join`` and ``AWS::Region`` to create a Region-specific name, as in the following example: ``{"Fn::Join": ["", [{"Ref": "AWS::Region"}, {"Ref": "MyResourceName"}]]}`` .
|
|
2297
|
-
:param path: The path for the policy. For more information about paths, see `IAM identifiers <https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html>`_ in the *IAM User Guide* . This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! ( ``\\u0021`` ) through the DEL character ( ``\\u007F`` ), including most punctuation characters, digits, and upper and lowercased letters. .. epigraph:: You cannot use an asterisk (*) in the path name.
|
|
2297
|
+
:param path: The path for the policy. For more information about paths, see `IAM identifiers <https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html>`_ in the *IAM User Guide* . This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! ( ``\\u0021`` ) through the DEL character ( ``\\u007F`` ), including most punctuation characters, digits, and upper and lowercased letters. .. epigraph:: You cannot use an asterisk (*) in the path name. Default: - "/"
|
|
2298
2298
|
:param roles: The name (friendly name, not ARN) of the role to attach the policy to. This parameter allows (per its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- .. epigraph:: If an external policy (such as ``AWS::IAM::Policy`` or ``AWS::IAM::ManagedPolicy`` ) has a ``Ref`` to a role and if a resource (such as ``AWS::ECS::Service`` ) also has a ``Ref`` to the same role, add a ``DependsOn`` attribute to the resource to make the resource depend on the external policy. This dependency ensures that the role's policy is available throughout the resource's lifecycle. For example, when you delete a stack with an ``AWS::ECS::Service`` resource, the ``DependsOn`` attribute ensures that AWS CloudFormation deletes the ``AWS::ECS::Service`` resource before deleting its role's policy.
|
|
2299
2299
|
:param users: The name (friendly name, not ARN) of the IAM user to attach the policy to. This parameter allows (through its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
|
|
2300
2300
|
'''
|
|
@@ -2552,7 +2552,7 @@ class CfnManagedPolicyProps:
|
|
|
2552
2552
|
:param description: A friendly description of the policy. Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables." The policy description is immutable. After a value is assigned, it cannot be changed.
|
|
2553
2553
|
:param groups: The name (friendly name, not ARN) of the group to attach the policy to. This parameter allows (through its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
|
|
2554
2554
|
:param managed_policy_name: The friendly name of the policy. .. epigraph:: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name. If you specify a name, you must specify the ``CAPABILITY_NAMED_IAM`` value to acknowledge your template's capabilities. For more information, see `Acknowledging IAM Resources in AWS CloudFormation Templates <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#using-iam-capabilities>`_ . .. epigraph:: Naming an IAM resource can cause an unrecoverable error if you reuse the same template in multiple Regions. To prevent this, we recommend using ``Fn::Join`` and ``AWS::Region`` to create a Region-specific name, as in the following example: ``{"Fn::Join": ["", [{"Ref": "AWS::Region"}, {"Ref": "MyResourceName"}]]}`` .
|
|
2555
|
-
:param path: The path for the policy. For more information about paths, see `IAM identifiers <https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html>`_ in the *IAM User Guide* . This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! ( ``\\u0021`` ) through the DEL character ( ``\\u007F`` ), including most punctuation characters, digits, and upper and lowercased letters. .. epigraph:: You cannot use an asterisk (*) in the path name.
|
|
2555
|
+
:param path: The path for the policy. For more information about paths, see `IAM identifiers <https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html>`_ in the *IAM User Guide* . This parameter is optional. If it is not included, it defaults to a slash (/). This parameter allows (through its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! ( ``\\u0021`` ) through the DEL character ( ``\\u007F`` ), including most punctuation characters, digits, and upper and lowercased letters. .. epigraph:: You cannot use an asterisk (*) in the path name. Default: - "/"
|
|
2556
2556
|
:param roles: The name (friendly name, not ARN) of the role to attach the policy to. This parameter allows (per its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- .. epigraph:: If an external policy (such as ``AWS::IAM::Policy`` or ``AWS::IAM::ManagedPolicy`` ) has a ``Ref`` to a role and if a resource (such as ``AWS::ECS::Service`` ) also has a ``Ref`` to the same role, add a ``DependsOn`` attribute to the resource to make the resource depend on the external policy. This dependency ensures that the role's policy is available throughout the resource's lifecycle. For example, when you delete a stack with an ``AWS::ECS::Service`` resource, the ``DependsOn`` attribute ensures that AWS CloudFormation deletes the ``AWS::ECS::Service`` resource before deleting its role's policy.
|
|
2557
2557
|
:param users: The name (friendly name, not ARN) of the IAM user to attach the policy to. This parameter allows (through its `regex pattern <https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex>`_ ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
|
|
2558
2558
|
|
|
@@ -2681,6 +2681,8 @@ class CfnManagedPolicyProps:
|
|
|
2681
2681
|
|
|
2682
2682
|
You cannot use an asterisk (*) in the path name.
|
|
2683
2683
|
|
|
2684
|
+
:default: - "/"
|
|
2685
|
+
|
|
2684
2686
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html#cfn-iam-managedpolicy-path
|
|
2685
2687
|
'''
|
|
2686
2688
|
result = self._values.get("path")
|
|
@@ -9253,11 +9255,7 @@ class Policy(
|
|
|
9253
9255
|
metaclass=jsii.JSIIMeta,
|
|
9254
9256
|
jsii_type="aws-cdk-lib.aws_iam.Policy",
|
|
9255
9257
|
):
|
|
9256
|
-
'''The AWS::IAM::Policy resource associates an IAM policy with IAM users, roles, or groups.
|
|
9257
|
-
|
|
9258
|
-
For more information about IAM policies, see `Overview of IAM
|
|
9259
|
-
Policies <http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html>`_
|
|
9260
|
-
in the IAM User Guide guide.
|
|
9258
|
+
'''The AWS::IAM::Policy resource associates an `inline <https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#inline>`_ IAM policy with IAM users, roles, or groups. For more information about IAM policies, see `Overview of IAM Policies <http://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html>`_ in the IAM User Guide guide.
|
|
9261
9259
|
|
|
9262
9260
|
:exampleMetadata: infused
|
|
9263
9261
|
|
|
@@ -9298,7 +9296,7 @@ class Policy(
|
|
|
9298
9296
|
:param scope: -
|
|
9299
9297
|
:param id: -
|
|
9300
9298
|
:param document: Initial PolicyDocument to use for this Policy. If omited, any ``PolicyStatement`` provided in the ``statements`` property will be applied against the empty default ``PolicyDocument``. Default: - An empty policy.
|
|
9301
|
-
:param force: Force creation of an ``AWS::IAM::Policy``. Unless set to ``true``, this ``Policy`` construct will not materialize to an ``AWS::IAM::Policy`` CloudFormation resource in case it would have no effect (for example, if it remains unattached to an IAM identity or if it has no statements). This is generally desired behavior, since it prevents creating invalid--and hence undeployable--CloudFormation templates. In cases where you know the policy must be created and it is actually an error if no statements have been added to it, you can set this to ``true``. Default: false
|
|
9299
|
+
:param force: Force creation of an ``AWS::IAM::Policy``. Unless set to ``true``, this ``Policy`` construct will not materialize to an ``AWS::IAM::Policy`` CloudFormation resource in case it would have no effect (for example, if it remains unattached to an IAM identity or if it has no statements). This is generally desired behavior, since it prevents creating invalid--and hence undeployable--CloudFormation templates. In cases where you know the policy must be created and it is actually an error if no statements have been added to it or it remains unattached to an IAM identity, you can set this to ``true``. Default: false
|
|
9302
9300
|
:param groups: Groups to attach this policy to. You can also use ``attachToGroup(group)`` to attach this policy to a group. Default: - No groups.
|
|
9303
9301
|
:param policy_name: The name of the policy. If you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name. Default: - Uses the logical ID of the policy resource, which is ensured to be unique within the stack.
|
|
9304
9302
|
:param roles: Roles to attach this policy to. You can also use ``attachToRole(role)`` to attach this policy to a role. Default: - No roles.
|
|
@@ -9705,7 +9703,7 @@ class PolicyProps:
|
|
|
9705
9703
|
'''Properties for defining an IAM inline policy document.
|
|
9706
9704
|
|
|
9707
9705
|
:param document: Initial PolicyDocument to use for this Policy. If omited, any ``PolicyStatement`` provided in the ``statements`` property will be applied against the empty default ``PolicyDocument``. Default: - An empty policy.
|
|
9708
|
-
:param force: Force creation of an ``AWS::IAM::Policy``. Unless set to ``true``, this ``Policy`` construct will not materialize to an ``AWS::IAM::Policy`` CloudFormation resource in case it would have no effect (for example, if it remains unattached to an IAM identity or if it has no statements). This is generally desired behavior, since it prevents creating invalid--and hence undeployable--CloudFormation templates. In cases where you know the policy must be created and it is actually an error if no statements have been added to it, you can set this to ``true``. Default: false
|
|
9706
|
+
:param force: Force creation of an ``AWS::IAM::Policy``. Unless set to ``true``, this ``Policy`` construct will not materialize to an ``AWS::IAM::Policy`` CloudFormation resource in case it would have no effect (for example, if it remains unattached to an IAM identity or if it has no statements). This is generally desired behavior, since it prevents creating invalid--and hence undeployable--CloudFormation templates. In cases where you know the policy must be created and it is actually an error if no statements have been added to it or it remains unattached to an IAM identity, you can set this to ``true``. Default: false
|
|
9709
9707
|
:param groups: Groups to attach this policy to. You can also use ``attachToGroup(group)`` to attach this policy to a group. Default: - No groups.
|
|
9710
9708
|
:param policy_name: The name of the policy. If you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name. Default: - Uses the logical ID of the policy resource, which is ensured to be unique within the stack.
|
|
9711
9709
|
:param roles: Roles to attach this policy to. You can also use ``attachToRole(role)`` to attach this policy to a role. Default: - No roles.
|
|
@@ -9783,7 +9781,8 @@ class PolicyProps:
|
|
|
9783
9781
|
creating invalid--and hence undeployable--CloudFormation templates.
|
|
9784
9782
|
|
|
9785
9783
|
In cases where you know the policy must be created and it is actually
|
|
9786
|
-
an error if no statements have been added to it
|
|
9784
|
+
an error if no statements have been added to it or it remains unattached to
|
|
9785
|
+
an IAM identity, you can set this to ``true``.
|
|
9787
9786
|
|
|
9788
9787
|
:default: false
|
|
9789
9788
|
'''
|
|
@@ -93,6 +93,7 @@ class CfnMonitor(
|
|
|
93
93
|
),
|
|
94
94
|
performance_score_threshold=123
|
|
95
95
|
),
|
|
96
|
+
include_linked_accounts=False,
|
|
96
97
|
internet_measurements_log_delivery=internetmonitor.CfnMonitor.InternetMeasurementsLogDeliveryProperty(
|
|
97
98
|
s3_config=internetmonitor.CfnMonitor.S3ConfigProperty(
|
|
98
99
|
bucket_name="bucketName",
|
|
@@ -100,6 +101,7 @@ class CfnMonitor(
|
|
|
100
101
|
log_delivery_status="logDeliveryStatus"
|
|
101
102
|
)
|
|
102
103
|
),
|
|
104
|
+
linked_account_id="linkedAccountId",
|
|
103
105
|
max_city_networks_to_monitor=123,
|
|
104
106
|
resources=["resources"],
|
|
105
107
|
resources_to_add=["resourcesToAdd"],
|
|
@@ -120,7 +122,9 @@ class CfnMonitor(
|
|
|
120
122
|
*,
|
|
121
123
|
monitor_name: builtins.str,
|
|
122
124
|
health_events_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnMonitor.HealthEventsConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
125
|
+
include_linked_accounts: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
123
126
|
internet_measurements_log_delivery: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnMonitor.InternetMeasurementsLogDeliveryProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
127
|
+
linked_account_id: typing.Optional[builtins.str] = None,
|
|
124
128
|
max_city_networks_to_monitor: typing.Optional[jsii.Number] = None,
|
|
125
129
|
resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
126
130
|
resources_to_add: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -134,7 +138,9 @@ class CfnMonitor(
|
|
|
134
138
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
135
139
|
:param monitor_name: The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
|
|
136
140
|
:param health_events_config: A complex type with the configuration information that determines the threshold and other conditions for when Internet Monitor creates a health event for an overall performance or availability issue, across an application's geographies. Defines the percentages, for overall performance scores and availability scores for an application, that are the thresholds for when Amazon CloudWatch Internet Monitor creates a health event. You can override the defaults to set a custom threshold for overall performance or availability scores, or both. You can also set thresholds for local health scores,, where Internet Monitor creates a health event when scores cross a threshold for one or more city-networks, in addition to creating an event when an overall score crosses a threshold. If you don't set a health event threshold, the default value is 95%. For local thresholds, you also set a minimum percentage of overall traffic that is impacted by an issue before Internet Monitor creates an event. In addition, you can disable local thresholds, for performance scores, availability scores, or both. For more information, see `Change health event thresholds <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-IM-overview.html#IMUpdateThresholdFromOverview>`_ in the Internet Monitor section of the *CloudWatch User Guide* .
|
|
141
|
+
:param include_linked_accounts:
|
|
137
142
|
:param internet_measurements_log_delivery: Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket. Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
|
|
143
|
+
:param linked_account_id:
|
|
138
144
|
:param max_city_networks_to_monitor: The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the network, such as an internet service provider, that clients access the resources through. For more information, see `Choosing a city-network maximum value <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html>`_ in *Using Amazon CloudWatch Internet Monitor* .
|
|
139
145
|
:param resources: The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs). Use this option to add or remove resources when making an update. .. epigraph:: Be aware that if you include content in the ``Resources`` field when you update a monitor, the ``ResourcesToAdd`` and ``ResourcesToRemove`` fields must be empty.
|
|
140
146
|
:param resources_to_add: The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can be Amazon Virtual Private Cloud VPCs, Network Load Balancers (NLBs), Amazon CloudFront distributions, or Amazon WorkSpaces directories. You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources. If you add only VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity. .. epigraph:: You can specify this field for a monitor update only if the ``Resources`` field is empty.
|
|
@@ -150,7 +156,9 @@ class CfnMonitor(
|
|
|
150
156
|
props = CfnMonitorProps(
|
|
151
157
|
monitor_name=monitor_name,
|
|
152
158
|
health_events_config=health_events_config,
|
|
159
|
+
include_linked_accounts=include_linked_accounts,
|
|
153
160
|
internet_measurements_log_delivery=internet_measurements_log_delivery,
|
|
161
|
+
linked_account_id=linked_account_id,
|
|
154
162
|
max_city_networks_to_monitor=max_city_networks_to_monitor,
|
|
155
163
|
resources=resources,
|
|
156
164
|
resources_to_add=resources_to_add,
|
|
@@ -281,6 +289,23 @@ class CfnMonitor(
|
|
|
281
289
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
282
290
|
jsii.set(self, "healthEventsConfig", value)
|
|
283
291
|
|
|
292
|
+
@builtins.property
|
|
293
|
+
@jsii.member(jsii_name="includeLinkedAccounts")
|
|
294
|
+
def include_linked_accounts(
|
|
295
|
+
self,
|
|
296
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
297
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "includeLinkedAccounts"))
|
|
298
|
+
|
|
299
|
+
@include_linked_accounts.setter
|
|
300
|
+
def include_linked_accounts(
|
|
301
|
+
self,
|
|
302
|
+
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
303
|
+
) -> None:
|
|
304
|
+
if __debug__:
|
|
305
|
+
type_hints = typing.get_type_hints(_typecheckingstub__80a74cd4b87837dd8170028ab147883219b1546ce841f056d4ef2aa4f1fd501b)
|
|
306
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
307
|
+
jsii.set(self, "includeLinkedAccounts", value)
|
|
308
|
+
|
|
284
309
|
@builtins.property
|
|
285
310
|
@jsii.member(jsii_name="internetMeasurementsLogDelivery")
|
|
286
311
|
def internet_measurements_log_delivery(
|
|
@@ -299,6 +324,18 @@ class CfnMonitor(
|
|
|
299
324
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
300
325
|
jsii.set(self, "internetMeasurementsLogDelivery", value)
|
|
301
326
|
|
|
327
|
+
@builtins.property
|
|
328
|
+
@jsii.member(jsii_name="linkedAccountId")
|
|
329
|
+
def linked_account_id(self) -> typing.Optional[builtins.str]:
|
|
330
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "linkedAccountId"))
|
|
331
|
+
|
|
332
|
+
@linked_account_id.setter
|
|
333
|
+
def linked_account_id(self, value: typing.Optional[builtins.str]) -> None:
|
|
334
|
+
if __debug__:
|
|
335
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d352b84b30decfade63d633da845bdcbfabe043a48b4897bbe891f6584cf0e2b)
|
|
336
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
337
|
+
jsii.set(self, "linkedAccountId", value)
|
|
338
|
+
|
|
302
339
|
@builtins.property
|
|
303
340
|
@jsii.member(jsii_name="maxCityNetworksToMonitor")
|
|
304
341
|
def max_city_networks_to_monitor(self) -> typing.Optional[jsii.Number]:
|
|
@@ -786,7 +823,9 @@ class CfnMonitor(
|
|
|
786
823
|
name_mapping={
|
|
787
824
|
"monitor_name": "monitorName",
|
|
788
825
|
"health_events_config": "healthEventsConfig",
|
|
826
|
+
"include_linked_accounts": "includeLinkedAccounts",
|
|
789
827
|
"internet_measurements_log_delivery": "internetMeasurementsLogDelivery",
|
|
828
|
+
"linked_account_id": "linkedAccountId",
|
|
790
829
|
"max_city_networks_to_monitor": "maxCityNetworksToMonitor",
|
|
791
830
|
"resources": "resources",
|
|
792
831
|
"resources_to_add": "resourcesToAdd",
|
|
@@ -802,7 +841,9 @@ class CfnMonitorProps:
|
|
|
802
841
|
*,
|
|
803
842
|
monitor_name: builtins.str,
|
|
804
843
|
health_events_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMonitor.HealthEventsConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
844
|
+
include_linked_accounts: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
805
845
|
internet_measurements_log_delivery: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMonitor.InternetMeasurementsLogDeliveryProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
846
|
+
linked_account_id: typing.Optional[builtins.str] = None,
|
|
806
847
|
max_city_networks_to_monitor: typing.Optional[jsii.Number] = None,
|
|
807
848
|
resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
808
849
|
resources_to_add: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -815,7 +856,9 @@ class CfnMonitorProps:
|
|
|
815
856
|
|
|
816
857
|
:param monitor_name: The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
|
|
817
858
|
:param health_events_config: A complex type with the configuration information that determines the threshold and other conditions for when Internet Monitor creates a health event for an overall performance or availability issue, across an application's geographies. Defines the percentages, for overall performance scores and availability scores for an application, that are the thresholds for when Amazon CloudWatch Internet Monitor creates a health event. You can override the defaults to set a custom threshold for overall performance or availability scores, or both. You can also set thresholds for local health scores,, where Internet Monitor creates a health event when scores cross a threshold for one or more city-networks, in addition to creating an event when an overall score crosses a threshold. If you don't set a health event threshold, the default value is 95%. For local thresholds, you also set a minimum percentage of overall traffic that is impacted by an issue before Internet Monitor creates an event. In addition, you can disable local thresholds, for performance scores, availability scores, or both. For more information, see `Change health event thresholds <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-IM-overview.html#IMUpdateThresholdFromOverview>`_ in the Internet Monitor section of the *CloudWatch User Guide* .
|
|
859
|
+
:param include_linked_accounts:
|
|
818
860
|
:param internet_measurements_log_delivery: Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket. Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
|
|
861
|
+
:param linked_account_id:
|
|
819
862
|
:param max_city_networks_to_monitor: The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the network, such as an internet service provider, that clients access the resources through. For more information, see `Choosing a city-network maximum value <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html>`_ in *Using Amazon CloudWatch Internet Monitor* .
|
|
820
863
|
:param resources: The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs). Use this option to add or remove resources when making an update. .. epigraph:: Be aware that if you include content in the ``Resources`` field when you update a monitor, the ``ResourcesToAdd`` and ``ResourcesToRemove`` fields must be empty.
|
|
821
864
|
:param resources_to_add: The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can be Amazon Virtual Private Cloud VPCs, Network Load Balancers (NLBs), Amazon CloudFront distributions, or Amazon WorkSpaces directories. You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources. If you add only VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity. .. epigraph:: You can specify this field for a monitor update only if the ``Resources`` field is empty.
|
|
@@ -851,6 +894,7 @@ class CfnMonitorProps:
|
|
|
851
894
|
),
|
|
852
895
|
performance_score_threshold=123
|
|
853
896
|
),
|
|
897
|
+
include_linked_accounts=False,
|
|
854
898
|
internet_measurements_log_delivery=internetmonitor.CfnMonitor.InternetMeasurementsLogDeliveryProperty(
|
|
855
899
|
s3_config=internetmonitor.CfnMonitor.S3ConfigProperty(
|
|
856
900
|
bucket_name="bucketName",
|
|
@@ -858,6 +902,7 @@ class CfnMonitorProps:
|
|
|
858
902
|
log_delivery_status="logDeliveryStatus"
|
|
859
903
|
)
|
|
860
904
|
),
|
|
905
|
+
linked_account_id="linkedAccountId",
|
|
861
906
|
max_city_networks_to_monitor=123,
|
|
862
907
|
resources=["resources"],
|
|
863
908
|
resources_to_add=["resourcesToAdd"],
|
|
@@ -874,7 +919,9 @@ class CfnMonitorProps:
|
|
|
874
919
|
type_hints = typing.get_type_hints(_typecheckingstub__a592873878a3205128bdbf7757cbce3b6e97783b1a68d0a1b5510ffc9f9f1fd8)
|
|
875
920
|
check_type(argname="argument monitor_name", value=monitor_name, expected_type=type_hints["monitor_name"])
|
|
876
921
|
check_type(argname="argument health_events_config", value=health_events_config, expected_type=type_hints["health_events_config"])
|
|
922
|
+
check_type(argname="argument include_linked_accounts", value=include_linked_accounts, expected_type=type_hints["include_linked_accounts"])
|
|
877
923
|
check_type(argname="argument internet_measurements_log_delivery", value=internet_measurements_log_delivery, expected_type=type_hints["internet_measurements_log_delivery"])
|
|
924
|
+
check_type(argname="argument linked_account_id", value=linked_account_id, expected_type=type_hints["linked_account_id"])
|
|
878
925
|
check_type(argname="argument max_city_networks_to_monitor", value=max_city_networks_to_monitor, expected_type=type_hints["max_city_networks_to_monitor"])
|
|
879
926
|
check_type(argname="argument resources", value=resources, expected_type=type_hints["resources"])
|
|
880
927
|
check_type(argname="argument resources_to_add", value=resources_to_add, expected_type=type_hints["resources_to_add"])
|
|
@@ -887,8 +934,12 @@ class CfnMonitorProps:
|
|
|
887
934
|
}
|
|
888
935
|
if health_events_config is not None:
|
|
889
936
|
self._values["health_events_config"] = health_events_config
|
|
937
|
+
if include_linked_accounts is not None:
|
|
938
|
+
self._values["include_linked_accounts"] = include_linked_accounts
|
|
890
939
|
if internet_measurements_log_delivery is not None:
|
|
891
940
|
self._values["internet_measurements_log_delivery"] = internet_measurements_log_delivery
|
|
941
|
+
if linked_account_id is not None:
|
|
942
|
+
self._values["linked_account_id"] = linked_account_id
|
|
892
943
|
if max_city_networks_to_monitor is not None:
|
|
893
944
|
self._values["max_city_networks_to_monitor"] = max_city_networks_to_monitor
|
|
894
945
|
if resources is not None:
|
|
@@ -937,6 +988,16 @@ class CfnMonitorProps:
|
|
|
937
988
|
result = self._values.get("health_events_config")
|
|
938
989
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnMonitor.HealthEventsConfigProperty]], result)
|
|
939
990
|
|
|
991
|
+
@builtins.property
|
|
992
|
+
def include_linked_accounts(
|
|
993
|
+
self,
|
|
994
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
995
|
+
'''
|
|
996
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-includelinkedaccounts
|
|
997
|
+
'''
|
|
998
|
+
result = self._values.get("include_linked_accounts")
|
|
999
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
1000
|
+
|
|
940
1001
|
@builtins.property
|
|
941
1002
|
def internet_measurements_log_delivery(
|
|
942
1003
|
self,
|
|
@@ -950,6 +1011,14 @@ class CfnMonitorProps:
|
|
|
950
1011
|
result = self._values.get("internet_measurements_log_delivery")
|
|
951
1012
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnMonitor.InternetMeasurementsLogDeliveryProperty]], result)
|
|
952
1013
|
|
|
1014
|
+
@builtins.property
|
|
1015
|
+
def linked_account_id(self) -> typing.Optional[builtins.str]:
|
|
1016
|
+
'''
|
|
1017
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-linkedaccountid
|
|
1018
|
+
'''
|
|
1019
|
+
result = self._values.get("linked_account_id")
|
|
1020
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1021
|
+
|
|
953
1022
|
@builtins.property
|
|
954
1023
|
def max_city_networks_to_monitor(self) -> typing.Optional[jsii.Number]:
|
|
955
1024
|
'''The maximum number of city-networks to monitor for your resources.
|
|
@@ -1064,7 +1133,9 @@ def _typecheckingstub__b49625d902a7236b204a8a96b68b35647ded5da14fa0241503fe8aed7
|
|
|
1064
1133
|
*,
|
|
1065
1134
|
monitor_name: builtins.str,
|
|
1066
1135
|
health_events_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMonitor.HealthEventsConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1136
|
+
include_linked_accounts: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1067
1137
|
internet_measurements_log_delivery: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMonitor.InternetMeasurementsLogDeliveryProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1138
|
+
linked_account_id: typing.Optional[builtins.str] = None,
|
|
1068
1139
|
max_city_networks_to_monitor: typing.Optional[jsii.Number] = None,
|
|
1069
1140
|
resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1070
1141
|
resources_to_add: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -1100,12 +1171,24 @@ def _typecheckingstub__1fcad87a381a34c71141a2be73ac8e81c442bd9d4616b8a8a55279c77
|
|
|
1100
1171
|
"""Type checking stubs"""
|
|
1101
1172
|
pass
|
|
1102
1173
|
|
|
1174
|
+
def _typecheckingstub__80a74cd4b87837dd8170028ab147883219b1546ce841f056d4ef2aa4f1fd501b(
|
|
1175
|
+
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
1176
|
+
) -> None:
|
|
1177
|
+
"""Type checking stubs"""
|
|
1178
|
+
pass
|
|
1179
|
+
|
|
1103
1180
|
def _typecheckingstub__edd584d7d64cd02983ca8858b15c31728e9294c416931001fc1a9ce5732ebad9(
|
|
1104
1181
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnMonitor.InternetMeasurementsLogDeliveryProperty]],
|
|
1105
1182
|
) -> None:
|
|
1106
1183
|
"""Type checking stubs"""
|
|
1107
1184
|
pass
|
|
1108
1185
|
|
|
1186
|
+
def _typecheckingstub__d352b84b30decfade63d633da845bdcbfabe043a48b4897bbe891f6584cf0e2b(
|
|
1187
|
+
value: typing.Optional[builtins.str],
|
|
1188
|
+
) -> None:
|
|
1189
|
+
"""Type checking stubs"""
|
|
1190
|
+
pass
|
|
1191
|
+
|
|
1109
1192
|
def _typecheckingstub__44b26920fe092fdfabe5783619b4c150b5a44928ea63b71966ac31bfc9220c93(
|
|
1110
1193
|
value: typing.Optional[jsii.Number],
|
|
1111
1194
|
) -> None:
|
|
@@ -1187,7 +1270,9 @@ def _typecheckingstub__a592873878a3205128bdbf7757cbce3b6e97783b1a68d0a1b5510ffc9
|
|
|
1187
1270
|
*,
|
|
1188
1271
|
monitor_name: builtins.str,
|
|
1189
1272
|
health_events_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMonitor.HealthEventsConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1273
|
+
include_linked_accounts: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1190
1274
|
internet_measurements_log_delivery: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMonitor.InternetMeasurementsLogDeliveryProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1275
|
+
linked_account_id: typing.Optional[builtins.str] = None,
|
|
1191
1276
|
max_city_networks_to_monitor: typing.Optional[jsii.Number] = None,
|
|
1192
1277
|
resources: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1193
1278
|
resources_to_add: typing.Optional[typing.Sequence[builtins.str]] = None,
|