aws-cdk-lib 2.211.0__py3-none-any.whl → 2.212.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.

Files changed (46) hide show
  1. aws_cdk/__init__.py +398 -43
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.211.0.jsii.tgz → aws-cdk-lib@2.212.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigateway/__init__.py +2 -0
  5. aws_cdk/aws_apigatewayv2/__init__.py +1798 -74
  6. aws_cdk/aws_appintegrations/__init__.py +395 -0
  7. aws_cdk/aws_arcregionswitch/__init__.py +118 -0
  8. aws_cdk/aws_batch/__init__.py +4 -4
  9. aws_cdk/aws_bedrock/__init__.py +18 -0
  10. aws_cdk/aws_billingconductor/__init__.py +3 -3
  11. aws_cdk/aws_cloudfront/__init__.py +19 -0
  12. aws_cdk/aws_codebuild/__init__.py +122 -0
  13. aws_cdk/aws_codepipeline/__init__.py +51 -50
  14. aws_cdk/aws_connect/__init__.py +40 -15
  15. aws_cdk/aws_deadline/__init__.py +16 -5
  16. aws_cdk/aws_dynamodb/__init__.py +86 -16
  17. aws_cdk/aws_ec2/__init__.py +266 -55
  18. aws_cdk/aws_ecs/__init__.py +7 -9
  19. aws_cdk/aws_eks/__init__.py +6 -4
  20. aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
  21. aws_cdk/aws_gameliftstreams/__init__.py +7 -6
  22. aws_cdk/aws_glue/__init__.py +18 -9
  23. aws_cdk/aws_guardduty/__init__.py +1233 -113
  24. aws_cdk/aws_imagebuilder/__init__.py +34 -20
  25. aws_cdk/aws_inspectorv2/__init__.py +1516 -0
  26. aws_cdk/aws_ivs/__init__.py +1 -1
  27. aws_cdk/aws_lakeformation/__init__.py +1 -1
  28. aws_cdk/aws_lambda/__init__.py +6 -6
  29. aws_cdk/aws_omics/__init__.py +1 -1
  30. aws_cdk/aws_opensearchservice/__init__.py +128 -0
  31. aws_cdk/aws_pcs/__init__.py +16 -8
  32. aws_cdk/aws_quicksight/__init__.py +81 -83
  33. aws_cdk/aws_rds/__init__.py +31 -163
  34. aws_cdk/aws_s3express/__init__.py +7 -3
  35. aws_cdk/aws_s3tables/__init__.py +2 -2
  36. aws_cdk/aws_sagemaker/__init__.py +62 -20
  37. aws_cdk/aws_sqs/__init__.py +4 -3
  38. aws_cdk/aws_stepfunctions_tasks/__init__.py +16 -9
  39. aws_cdk/aws_synthetics/__init__.py +116 -0
  40. aws_cdk/cx_api/__init__.py +22 -0
  41. {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/METADATA +329 -9
  42. {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/RECORD +46 -46
  43. {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/LICENSE +0 -0
  44. {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/NOTICE +0 -0
  45. {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/WHEEL +0 -0
  46. {aws_cdk_lib-2.211.0.dist-info → aws_cdk_lib-2.212.0.dist-info}/top_level.txt +0 -0
@@ -4104,18 +4104,878 @@ class CfnPublishingDestinationProps:
4104
4104
  )
4105
4105
 
4106
4106
 
4107
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
4108
+ class CfnThreatEntitySet(
4109
+ _CfnResource_9df397a6,
4110
+ metaclass=jsii.JSIIMeta,
4111
+ jsii_type="aws-cdk-lib.aws_guardduty.CfnThreatEntitySet",
4112
+ ):
4113
+ '''Resource Type definition for AWS::GuardDuty::ThreatEntitySet.
4114
+
4115
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html
4116
+ :cloudformationResource: AWS::GuardDuty::ThreatEntitySet
4117
+ :exampleMetadata: fixture=_generated
4118
+
4119
+ Example::
4120
+
4121
+ # The code below shows an example of how to instantiate this type.
4122
+ # The values are placeholders you should change.
4123
+ from aws_cdk import aws_guardduty as guardduty
4124
+
4125
+ cfn_threat_entity_set = guardduty.CfnThreatEntitySet(self, "MyCfnThreatEntitySet",
4126
+ format="format",
4127
+ location="location",
4128
+
4129
+ # the properties below are optional
4130
+ activate=False,
4131
+ detector_id="detectorId",
4132
+ expected_bucket_owner="expectedBucketOwner",
4133
+ name="name",
4134
+ tags=[guardduty.CfnThreatEntitySet.TagItemProperty(
4135
+ key="key",
4136
+ value="value"
4137
+ )]
4138
+ )
4139
+ '''
4140
+
4141
+ def __init__(
4142
+ self,
4143
+ scope: _constructs_77d1e7e8.Construct,
4144
+ id: builtins.str,
4145
+ *,
4146
+ format: builtins.str,
4147
+ location: builtins.str,
4148
+ activate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
4149
+ detector_id: typing.Optional[builtins.str] = None,
4150
+ expected_bucket_owner: typing.Optional[builtins.str] = None,
4151
+ name: typing.Optional[builtins.str] = None,
4152
+ tags: typing.Optional[typing.Sequence[typing.Union["CfnThreatEntitySet.TagItemProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
4153
+ ) -> None:
4154
+ '''
4155
+ :param scope: Scope in which this resource is defined.
4156
+ :param id: Construct identifier for this resource (unique in its scope).
4157
+ :param format:
4158
+ :param location:
4159
+ :param activate:
4160
+ :param detector_id:
4161
+ :param expected_bucket_owner:
4162
+ :param name:
4163
+ :param tags:
4164
+ '''
4165
+ if __debug__:
4166
+ type_hints = typing.get_type_hints(_typecheckingstub__a633dbf3a335a1c89a81e2b20e0804a2398855b80b7f90aefcab3fcffd594ae2)
4167
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
4168
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
4169
+ props = CfnThreatEntitySetProps(
4170
+ format=format,
4171
+ location=location,
4172
+ activate=activate,
4173
+ detector_id=detector_id,
4174
+ expected_bucket_owner=expected_bucket_owner,
4175
+ name=name,
4176
+ tags=tags,
4177
+ )
4178
+
4179
+ jsii.create(self.__class__, self, [scope, id, props])
4180
+
4181
+ @jsii.member(jsii_name="inspect")
4182
+ def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
4183
+ '''Examines the CloudFormation resource and discloses attributes.
4184
+
4185
+ :param inspector: tree inspector to collect and process attributes.
4186
+ '''
4187
+ if __debug__:
4188
+ type_hints = typing.get_type_hints(_typecheckingstub__1c32d5cebe463fb394e1de7987cf95ac14ed2d64bfb94244b7f53a5ae01e86fc)
4189
+ check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
4190
+ return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
4191
+
4192
+ @jsii.member(jsii_name="renderProperties")
4193
+ def _render_properties(
4194
+ self,
4195
+ props: typing.Mapping[builtins.str, typing.Any],
4196
+ ) -> typing.Mapping[builtins.str, typing.Any]:
4197
+ '''
4198
+ :param props: -
4199
+ '''
4200
+ if __debug__:
4201
+ type_hints = typing.get_type_hints(_typecheckingstub__4b473ab42cb6b4e41fbd30cc43368c741a796600957b905b8bd33b94ed1d9b19)
4202
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
4203
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
4204
+
4205
+ @jsii.python.classproperty
4206
+ @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
4207
+ def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
4208
+ '''The CloudFormation resource type name for this resource class.'''
4209
+ return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
4210
+
4211
+ @builtins.property
4212
+ @jsii.member(jsii_name="attrCreatedAt")
4213
+ def attr_created_at(self) -> builtins.str:
4214
+ '''
4215
+ :cloudformationAttribute: CreatedAt
4216
+ '''
4217
+ return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
4218
+
4219
+ @builtins.property
4220
+ @jsii.member(jsii_name="attrErrorDetails")
4221
+ def attr_error_details(self) -> builtins.str:
4222
+ '''
4223
+ :cloudformationAttribute: ErrorDetails
4224
+ '''
4225
+ return typing.cast(builtins.str, jsii.get(self, "attrErrorDetails"))
4226
+
4227
+ @builtins.property
4228
+ @jsii.member(jsii_name="attrId")
4229
+ def attr_id(self) -> builtins.str:
4230
+ '''
4231
+ :cloudformationAttribute: Id
4232
+ '''
4233
+ return typing.cast(builtins.str, jsii.get(self, "attrId"))
4234
+
4235
+ @builtins.property
4236
+ @jsii.member(jsii_name="attrStatus")
4237
+ def attr_status(self) -> builtins.str:
4238
+ '''
4239
+ :cloudformationAttribute: Status
4240
+ '''
4241
+ return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
4242
+
4243
+ @builtins.property
4244
+ @jsii.member(jsii_name="attrUpdatedAt")
4245
+ def attr_updated_at(self) -> builtins.str:
4246
+ '''
4247
+ :cloudformationAttribute: UpdatedAt
4248
+ '''
4249
+ return typing.cast(builtins.str, jsii.get(self, "attrUpdatedAt"))
4250
+
4251
+ @builtins.property
4252
+ @jsii.member(jsii_name="cdkTagManager")
4253
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
4254
+ '''Tag Manager which manages the tags for this resource.'''
4255
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
4256
+
4257
+ @builtins.property
4258
+ @jsii.member(jsii_name="cfnProperties")
4259
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
4260
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
4261
+
4262
+ @builtins.property
4263
+ @jsii.member(jsii_name="format")
4264
+ def format(self) -> builtins.str:
4265
+ return typing.cast(builtins.str, jsii.get(self, "format"))
4266
+
4267
+ @format.setter
4268
+ def format(self, value: builtins.str) -> None:
4269
+ if __debug__:
4270
+ type_hints = typing.get_type_hints(_typecheckingstub__9bd1bb00f84d311b715627a92fb637272bd50eba86c2d16fa67691c6cc13b40b)
4271
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4272
+ jsii.set(self, "format", value) # pyright: ignore[reportArgumentType]
4273
+
4274
+ @builtins.property
4275
+ @jsii.member(jsii_name="location")
4276
+ def location(self) -> builtins.str:
4277
+ return typing.cast(builtins.str, jsii.get(self, "location"))
4278
+
4279
+ @location.setter
4280
+ def location(self, value: builtins.str) -> None:
4281
+ if __debug__:
4282
+ type_hints = typing.get_type_hints(_typecheckingstub__2309bb8657b4758bd1d620033861fc01383373882f360a452fe19c1513ef44e3)
4283
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4284
+ jsii.set(self, "location", value) # pyright: ignore[reportArgumentType]
4285
+
4286
+ @builtins.property
4287
+ @jsii.member(jsii_name="activate")
4288
+ def activate(
4289
+ self,
4290
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
4291
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "activate"))
4292
+
4293
+ @activate.setter
4294
+ def activate(
4295
+ self,
4296
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
4297
+ ) -> None:
4298
+ if __debug__:
4299
+ type_hints = typing.get_type_hints(_typecheckingstub__bdf2f505562fc426590d0aff2e1eca3a53df58abfd1e69b8495ac49ff3b42763)
4300
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4301
+ jsii.set(self, "activate", value) # pyright: ignore[reportArgumentType]
4302
+
4303
+ @builtins.property
4304
+ @jsii.member(jsii_name="detectorId")
4305
+ def detector_id(self) -> typing.Optional[builtins.str]:
4306
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "detectorId"))
4307
+
4308
+ @detector_id.setter
4309
+ def detector_id(self, value: typing.Optional[builtins.str]) -> None:
4310
+ if __debug__:
4311
+ type_hints = typing.get_type_hints(_typecheckingstub__a97f7e1867e5a54a3b03a0d24bd5ec7ca8d6200145e83b0f34c562f5e83448ba)
4312
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4313
+ jsii.set(self, "detectorId", value) # pyright: ignore[reportArgumentType]
4314
+
4315
+ @builtins.property
4316
+ @jsii.member(jsii_name="expectedBucketOwner")
4317
+ def expected_bucket_owner(self) -> typing.Optional[builtins.str]:
4318
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "expectedBucketOwner"))
4319
+
4320
+ @expected_bucket_owner.setter
4321
+ def expected_bucket_owner(self, value: typing.Optional[builtins.str]) -> None:
4322
+ if __debug__:
4323
+ type_hints = typing.get_type_hints(_typecheckingstub__a7bd200e9cd51319cdc4298d4401a8a961a6af90f3ea47a9200a8820086e4278)
4324
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4325
+ jsii.set(self, "expectedBucketOwner", value) # pyright: ignore[reportArgumentType]
4326
+
4327
+ @builtins.property
4328
+ @jsii.member(jsii_name="name")
4329
+ def name(self) -> typing.Optional[builtins.str]:
4330
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
4331
+
4332
+ @name.setter
4333
+ def name(self, value: typing.Optional[builtins.str]) -> None:
4334
+ if __debug__:
4335
+ type_hints = typing.get_type_hints(_typecheckingstub__03df3be27a55c9923526c9497963c6527d389f1bb8ffed035526cc303afb8bd2)
4336
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4337
+ jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
4338
+
4339
+ @builtins.property
4340
+ @jsii.member(jsii_name="tags")
4341
+ def tags(
4342
+ self,
4343
+ ) -> typing.Optional[typing.List["CfnThreatEntitySet.TagItemProperty"]]:
4344
+ return typing.cast(typing.Optional[typing.List["CfnThreatEntitySet.TagItemProperty"]], jsii.get(self, "tags"))
4345
+
4346
+ @tags.setter
4347
+ def tags(
4348
+ self,
4349
+ value: typing.Optional[typing.List["CfnThreatEntitySet.TagItemProperty"]],
4350
+ ) -> None:
4351
+ if __debug__:
4352
+ type_hints = typing.get_type_hints(_typecheckingstub__fbaece4f1c2fc125ec3923bb0a3b4537f6091ab7f66da3db41faf4839aeb3931)
4353
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4354
+ jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
4355
+
4356
+ @jsii.data_type(
4357
+ jsii_type="aws-cdk-lib.aws_guardduty.CfnThreatEntitySet.TagItemProperty",
4358
+ jsii_struct_bases=[],
4359
+ name_mapping={"key": "key", "value": "value"},
4360
+ )
4361
+ class TagItemProperty:
4362
+ def __init__(self, *, key: builtins.str, value: builtins.str) -> None:
4363
+ '''
4364
+ :param key:
4365
+ :param value:
4366
+
4367
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-threatentityset-tagitem.html
4368
+ :exampleMetadata: fixture=_generated
4369
+
4370
+ Example::
4371
+
4372
+ # The code below shows an example of how to instantiate this type.
4373
+ # The values are placeholders you should change.
4374
+ from aws_cdk import aws_guardduty as guardduty
4375
+
4376
+ tag_item_property = guardduty.CfnThreatEntitySet.TagItemProperty(
4377
+ key="key",
4378
+ value="value"
4379
+ )
4380
+ '''
4381
+ if __debug__:
4382
+ type_hints = typing.get_type_hints(_typecheckingstub__9bcb8d0f67c3b20709378a933f90454d6394d6f4608b78865e524eaaae71a082)
4383
+ check_type(argname="argument key", value=key, expected_type=type_hints["key"])
4384
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4385
+ self._values: typing.Dict[builtins.str, typing.Any] = {
4386
+ "key": key,
4387
+ "value": value,
4388
+ }
4389
+
4390
+ @builtins.property
4391
+ def key(self) -> builtins.str:
4392
+ '''
4393
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-threatentityset-tagitem.html#cfn-guardduty-threatentityset-tagitem-key
4394
+ '''
4395
+ result = self._values.get("key")
4396
+ assert result is not None, "Required property 'key' is missing"
4397
+ return typing.cast(builtins.str, result)
4398
+
4399
+ @builtins.property
4400
+ def value(self) -> builtins.str:
4401
+ '''
4402
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-threatentityset-tagitem.html#cfn-guardduty-threatentityset-tagitem-value
4403
+ '''
4404
+ result = self._values.get("value")
4405
+ assert result is not None, "Required property 'value' is missing"
4406
+ return typing.cast(builtins.str, result)
4407
+
4408
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
4409
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
4410
+
4411
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
4412
+ return not (rhs == self)
4413
+
4414
+ def __repr__(self) -> str:
4415
+ return "TagItemProperty(%s)" % ", ".join(
4416
+ k + "=" + repr(v) for k, v in self._values.items()
4417
+ )
4418
+
4419
+
4420
+ @jsii.data_type(
4421
+ jsii_type="aws-cdk-lib.aws_guardduty.CfnThreatEntitySetProps",
4422
+ jsii_struct_bases=[],
4423
+ name_mapping={
4424
+ "format": "format",
4425
+ "location": "location",
4426
+ "activate": "activate",
4427
+ "detector_id": "detectorId",
4428
+ "expected_bucket_owner": "expectedBucketOwner",
4429
+ "name": "name",
4430
+ "tags": "tags",
4431
+ },
4432
+ )
4433
+ class CfnThreatEntitySetProps:
4434
+ def __init__(
4435
+ self,
4436
+ *,
4437
+ format: builtins.str,
4438
+ location: builtins.str,
4439
+ activate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
4440
+ detector_id: typing.Optional[builtins.str] = None,
4441
+ expected_bucket_owner: typing.Optional[builtins.str] = None,
4442
+ name: typing.Optional[builtins.str] = None,
4443
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnThreatEntitySet.TagItemProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
4444
+ ) -> None:
4445
+ '''Properties for defining a ``CfnThreatEntitySet``.
4446
+
4447
+ :param format:
4448
+ :param location:
4449
+ :param activate:
4450
+ :param detector_id:
4451
+ :param expected_bucket_owner:
4452
+ :param name:
4453
+ :param tags:
4454
+
4455
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html
4456
+ :exampleMetadata: fixture=_generated
4457
+
4458
+ Example::
4459
+
4460
+ # The code below shows an example of how to instantiate this type.
4461
+ # The values are placeholders you should change.
4462
+ from aws_cdk import aws_guardduty as guardduty
4463
+
4464
+ cfn_threat_entity_set_props = guardduty.CfnThreatEntitySetProps(
4465
+ format="format",
4466
+ location="location",
4467
+
4468
+ # the properties below are optional
4469
+ activate=False,
4470
+ detector_id="detectorId",
4471
+ expected_bucket_owner="expectedBucketOwner",
4472
+ name="name",
4473
+ tags=[guardduty.CfnThreatEntitySet.TagItemProperty(
4474
+ key="key",
4475
+ value="value"
4476
+ )]
4477
+ )
4478
+ '''
4479
+ if __debug__:
4480
+ type_hints = typing.get_type_hints(_typecheckingstub__adc8d4ad73863c00637d46455ebd458e48d6cb964a55dada4ed53522b2f348d3)
4481
+ check_type(argname="argument format", value=format, expected_type=type_hints["format"])
4482
+ check_type(argname="argument location", value=location, expected_type=type_hints["location"])
4483
+ check_type(argname="argument activate", value=activate, expected_type=type_hints["activate"])
4484
+ check_type(argname="argument detector_id", value=detector_id, expected_type=type_hints["detector_id"])
4485
+ check_type(argname="argument expected_bucket_owner", value=expected_bucket_owner, expected_type=type_hints["expected_bucket_owner"])
4486
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
4487
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
4488
+ self._values: typing.Dict[builtins.str, typing.Any] = {
4489
+ "format": format,
4490
+ "location": location,
4491
+ }
4492
+ if activate is not None:
4493
+ self._values["activate"] = activate
4494
+ if detector_id is not None:
4495
+ self._values["detector_id"] = detector_id
4496
+ if expected_bucket_owner is not None:
4497
+ self._values["expected_bucket_owner"] = expected_bucket_owner
4498
+ if name is not None:
4499
+ self._values["name"] = name
4500
+ if tags is not None:
4501
+ self._values["tags"] = tags
4502
+
4503
+ @builtins.property
4504
+ def format(self) -> builtins.str:
4505
+ '''
4506
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html#cfn-guardduty-threatentityset-format
4507
+ '''
4508
+ result = self._values.get("format")
4509
+ assert result is not None, "Required property 'format' is missing"
4510
+ return typing.cast(builtins.str, result)
4511
+
4512
+ @builtins.property
4513
+ def location(self) -> builtins.str:
4514
+ '''
4515
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html#cfn-guardduty-threatentityset-location
4516
+ '''
4517
+ result = self._values.get("location")
4518
+ assert result is not None, "Required property 'location' is missing"
4519
+ return typing.cast(builtins.str, result)
4520
+
4521
+ @builtins.property
4522
+ def activate(
4523
+ self,
4524
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
4525
+ '''
4526
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html#cfn-guardduty-threatentityset-activate
4527
+ '''
4528
+ result = self._values.get("activate")
4529
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
4530
+
4531
+ @builtins.property
4532
+ def detector_id(self) -> typing.Optional[builtins.str]:
4533
+ '''
4534
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html#cfn-guardduty-threatentityset-detectorid
4535
+ '''
4536
+ result = self._values.get("detector_id")
4537
+ return typing.cast(typing.Optional[builtins.str], result)
4538
+
4539
+ @builtins.property
4540
+ def expected_bucket_owner(self) -> typing.Optional[builtins.str]:
4541
+ '''
4542
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html#cfn-guardduty-threatentityset-expectedbucketowner
4543
+ '''
4544
+ result = self._values.get("expected_bucket_owner")
4545
+ return typing.cast(typing.Optional[builtins.str], result)
4546
+
4547
+ @builtins.property
4548
+ def name(self) -> typing.Optional[builtins.str]:
4549
+ '''
4550
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html#cfn-guardduty-threatentityset-name
4551
+ '''
4552
+ result = self._values.get("name")
4553
+ return typing.cast(typing.Optional[builtins.str], result)
4554
+
4555
+ @builtins.property
4556
+ def tags(self) -> typing.Optional[typing.List[CfnThreatEntitySet.TagItemProperty]]:
4557
+ '''
4558
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatentityset.html#cfn-guardduty-threatentityset-tags
4559
+ '''
4560
+ result = self._values.get("tags")
4561
+ return typing.cast(typing.Optional[typing.List[CfnThreatEntitySet.TagItemProperty]], result)
4562
+
4563
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
4564
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
4565
+
4566
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
4567
+ return not (rhs == self)
4568
+
4569
+ def __repr__(self) -> str:
4570
+ return "CfnThreatEntitySetProps(%s)" % ", ".join(
4571
+ k + "=" + repr(v) for k, v in self._values.items()
4572
+ )
4573
+
4574
+
4107
4575
  @jsii.implements(_IInspectable_c2943556, _ITaggable_36806126)
4108
4576
  class CfnThreatIntelSet(
4109
4577
  _CfnResource_9df397a6,
4110
4578
  metaclass=jsii.JSIIMeta,
4111
- jsii_type="aws-cdk-lib.aws_guardduty.CfnThreatIntelSet",
4579
+ jsii_type="aws-cdk-lib.aws_guardduty.CfnThreatIntelSet",
4580
+ ):
4581
+ '''The ``AWS::GuardDuty::ThreatIntelSet`` resource specifies a new ``ThreatIntelSet`` .
4582
+
4583
+ A ``ThreatIntelSet`` consists of known malicious IP addresses. GuardDuty generates findings based on the ``ThreatIntelSet`` after it is activated.
4584
+
4585
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html
4586
+ :cloudformationResource: AWS::GuardDuty::ThreatIntelSet
4587
+ :exampleMetadata: fixture=_generated
4588
+
4589
+ Example::
4590
+
4591
+ # The code below shows an example of how to instantiate this type.
4592
+ # The values are placeholders you should change.
4593
+ from aws_cdk import aws_guardduty as guardduty
4594
+
4595
+ cfn_threat_intel_set = guardduty.CfnThreatIntelSet(self, "MyCfnThreatIntelSet",
4596
+ format="format",
4597
+ location="location",
4598
+
4599
+ # the properties below are optional
4600
+ activate=False,
4601
+ detector_id="detectorId",
4602
+ expected_bucket_owner="expectedBucketOwner",
4603
+ name="name",
4604
+ tags=[CfnTag(
4605
+ key="key",
4606
+ value="value"
4607
+ )]
4608
+ )
4609
+ '''
4610
+
4611
+ def __init__(
4612
+ self,
4613
+ scope: _constructs_77d1e7e8.Construct,
4614
+ id: builtins.str,
4615
+ *,
4616
+ format: builtins.str,
4617
+ location: builtins.str,
4618
+ activate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
4619
+ detector_id: typing.Optional[builtins.str] = None,
4620
+ expected_bucket_owner: typing.Optional[builtins.str] = None,
4621
+ name: typing.Optional[builtins.str] = None,
4622
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
4623
+ ) -> None:
4624
+ '''
4625
+ :param scope: Scope in which this resource is defined.
4626
+ :param id: Construct identifier for this resource (unique in its scope).
4627
+ :param format: The format of the file that contains the ThreatIntelSet.
4628
+ :param location: The URI of the file that contains the ThreatIntelSet.
4629
+ :param activate: A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
4630
+ :param detector_id: The unique ID of the detector of the GuardDuty account for which you want to create a ``ThreatIntelSet`` . To find the ``detectorId`` in the current Region, see the Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`_ API.
4631
+ :param expected_bucket_owner: The AWS account ID that owns the Amazon S3 bucket specified in the *Location* field. When you provide this account ID, GuardDuty will validate that the S3 bucket belongs to this account. If you don't specify an account ID owner, GuardDuty doesn't perform any validation.
4632
+ :param name: A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
4633
+ :param tags: The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
4634
+ '''
4635
+ if __debug__:
4636
+ type_hints = typing.get_type_hints(_typecheckingstub__e60035c0bc955afb794ee89f0439deae280bfec665014cbbd161f08566de73a7)
4637
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
4638
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
4639
+ props = CfnThreatIntelSetProps(
4640
+ format=format,
4641
+ location=location,
4642
+ activate=activate,
4643
+ detector_id=detector_id,
4644
+ expected_bucket_owner=expected_bucket_owner,
4645
+ name=name,
4646
+ tags=tags,
4647
+ )
4648
+
4649
+ jsii.create(self.__class__, self, [scope, id, props])
4650
+
4651
+ @jsii.member(jsii_name="inspect")
4652
+ def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
4653
+ '''Examines the CloudFormation resource and discloses attributes.
4654
+
4655
+ :param inspector: tree inspector to collect and process attributes.
4656
+ '''
4657
+ if __debug__:
4658
+ type_hints = typing.get_type_hints(_typecheckingstub__5d9a7dab9bf19d452d61d5fb4b5e80f876633f39a0cf5051e3a47e94c815073d)
4659
+ check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
4660
+ return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
4661
+
4662
+ @jsii.member(jsii_name="renderProperties")
4663
+ def _render_properties(
4664
+ self,
4665
+ props: typing.Mapping[builtins.str, typing.Any],
4666
+ ) -> typing.Mapping[builtins.str, typing.Any]:
4667
+ '''
4668
+ :param props: -
4669
+ '''
4670
+ if __debug__:
4671
+ type_hints = typing.get_type_hints(_typecheckingstub__fa2f2572c41477f9f21703ec5b985dde17df361473f4b639cf51e738006da367)
4672
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
4673
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
4674
+
4675
+ @jsii.python.classproperty
4676
+ @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
4677
+ def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
4678
+ '''The CloudFormation resource type name for this resource class.'''
4679
+ return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
4680
+
4681
+ @builtins.property
4682
+ @jsii.member(jsii_name="attrId")
4683
+ def attr_id(self) -> builtins.str:
4684
+ '''The unique ID of the ``threatIntelSet`` .
4685
+
4686
+ :cloudformationAttribute: Id
4687
+ '''
4688
+ return typing.cast(builtins.str, jsii.get(self, "attrId"))
4689
+
4690
+ @builtins.property
4691
+ @jsii.member(jsii_name="cfnProperties")
4692
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
4693
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
4694
+
4695
+ @builtins.property
4696
+ @jsii.member(jsii_name="tags")
4697
+ def tags(self) -> _TagManager_0a598cb3:
4698
+ '''Tag Manager which manages the tags for this resource.'''
4699
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "tags"))
4700
+
4701
+ @builtins.property
4702
+ @jsii.member(jsii_name="format")
4703
+ def format(self) -> builtins.str:
4704
+ '''The format of the file that contains the ThreatIntelSet.'''
4705
+ return typing.cast(builtins.str, jsii.get(self, "format"))
4706
+
4707
+ @format.setter
4708
+ def format(self, value: builtins.str) -> None:
4709
+ if __debug__:
4710
+ type_hints = typing.get_type_hints(_typecheckingstub__df3e4ea6d2ecdcdcfdf57f71eb38574c54d5e2340fc6b41e3c5752d81380474b)
4711
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4712
+ jsii.set(self, "format", value) # pyright: ignore[reportArgumentType]
4713
+
4714
+ @builtins.property
4715
+ @jsii.member(jsii_name="location")
4716
+ def location(self) -> builtins.str:
4717
+ '''The URI of the file that contains the ThreatIntelSet.'''
4718
+ return typing.cast(builtins.str, jsii.get(self, "location"))
4719
+
4720
+ @location.setter
4721
+ def location(self, value: builtins.str) -> None:
4722
+ if __debug__:
4723
+ type_hints = typing.get_type_hints(_typecheckingstub__01b8f1e578ee008d23f829009bf45a0717efeb23dd3f85345a6c6203e181177a)
4724
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4725
+ jsii.set(self, "location", value) # pyright: ignore[reportArgumentType]
4726
+
4727
+ @builtins.property
4728
+ @jsii.member(jsii_name="activate")
4729
+ def activate(
4730
+ self,
4731
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
4732
+ '''A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.'''
4733
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "activate"))
4734
+
4735
+ @activate.setter
4736
+ def activate(
4737
+ self,
4738
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
4739
+ ) -> None:
4740
+ if __debug__:
4741
+ type_hints = typing.get_type_hints(_typecheckingstub__3660f9080839cb6141a3aaf57ad04008ebbf5e29b4ee2cf7c3bcbdb94c082285)
4742
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4743
+ jsii.set(self, "activate", value) # pyright: ignore[reportArgumentType]
4744
+
4745
+ @builtins.property
4746
+ @jsii.member(jsii_name="detectorId")
4747
+ def detector_id(self) -> typing.Optional[builtins.str]:
4748
+ '''The unique ID of the detector of the GuardDuty account for which you want to create a ``ThreatIntelSet`` .'''
4749
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "detectorId"))
4750
+
4751
+ @detector_id.setter
4752
+ def detector_id(self, value: typing.Optional[builtins.str]) -> None:
4753
+ if __debug__:
4754
+ type_hints = typing.get_type_hints(_typecheckingstub__6198953302f0959c3d25abb6f0063fb638c6abf44a125235eafb4937065091bb)
4755
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4756
+ jsii.set(self, "detectorId", value) # pyright: ignore[reportArgumentType]
4757
+
4758
+ @builtins.property
4759
+ @jsii.member(jsii_name="expectedBucketOwner")
4760
+ def expected_bucket_owner(self) -> typing.Optional[builtins.str]:
4761
+ '''The AWS account ID that owns the Amazon S3 bucket specified in the *Location* field.'''
4762
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "expectedBucketOwner"))
4763
+
4764
+ @expected_bucket_owner.setter
4765
+ def expected_bucket_owner(self, value: typing.Optional[builtins.str]) -> None:
4766
+ if __debug__:
4767
+ type_hints = typing.get_type_hints(_typecheckingstub__45c0733c6c75c09ff089a9606f91e845cf362445012b247e68e83208c0a5aaee)
4768
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4769
+ jsii.set(self, "expectedBucketOwner", value) # pyright: ignore[reportArgumentType]
4770
+
4771
+ @builtins.property
4772
+ @jsii.member(jsii_name="name")
4773
+ def name(self) -> typing.Optional[builtins.str]:
4774
+ '''A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.'''
4775
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
4776
+
4777
+ @name.setter
4778
+ def name(self, value: typing.Optional[builtins.str]) -> None:
4779
+ if __debug__:
4780
+ type_hints = typing.get_type_hints(_typecheckingstub__78860e52ab0e0d6681a85585054b7ed92f84696ec2b6a43bb90c609188bf36e6)
4781
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4782
+ jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
4783
+
4784
+ @builtins.property
4785
+ @jsii.member(jsii_name="tagsRaw")
4786
+ def tags_raw(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
4787
+ '''The tags to be added to a new threat list resource.'''
4788
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tagsRaw"))
4789
+
4790
+ @tags_raw.setter
4791
+ def tags_raw(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
4792
+ if __debug__:
4793
+ type_hints = typing.get_type_hints(_typecheckingstub__213606bb8c2a17afd6b75e6224d08fd34ab33f0ef606dcd3df99402aa81754e0)
4794
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4795
+ jsii.set(self, "tagsRaw", value) # pyright: ignore[reportArgumentType]
4796
+
4797
+
4798
+ @jsii.data_type(
4799
+ jsii_type="aws-cdk-lib.aws_guardduty.CfnThreatIntelSetProps",
4800
+ jsii_struct_bases=[],
4801
+ name_mapping={
4802
+ "format": "format",
4803
+ "location": "location",
4804
+ "activate": "activate",
4805
+ "detector_id": "detectorId",
4806
+ "expected_bucket_owner": "expectedBucketOwner",
4807
+ "name": "name",
4808
+ "tags": "tags",
4809
+ },
4810
+ )
4811
+ class CfnThreatIntelSetProps:
4812
+ def __init__(
4813
+ self,
4814
+ *,
4815
+ format: builtins.str,
4816
+ location: builtins.str,
4817
+ activate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
4818
+ detector_id: typing.Optional[builtins.str] = None,
4819
+ expected_bucket_owner: typing.Optional[builtins.str] = None,
4820
+ name: typing.Optional[builtins.str] = None,
4821
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
4822
+ ) -> None:
4823
+ '''Properties for defining a ``CfnThreatIntelSet``.
4824
+
4825
+ :param format: The format of the file that contains the ThreatIntelSet.
4826
+ :param location: The URI of the file that contains the ThreatIntelSet.
4827
+ :param activate: A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
4828
+ :param detector_id: The unique ID of the detector of the GuardDuty account for which you want to create a ``ThreatIntelSet`` . To find the ``detectorId`` in the current Region, see the Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`_ API.
4829
+ :param expected_bucket_owner: The AWS account ID that owns the Amazon S3 bucket specified in the *Location* field. When you provide this account ID, GuardDuty will validate that the S3 bucket belongs to this account. If you don't specify an account ID owner, GuardDuty doesn't perform any validation.
4830
+ :param name: A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
4831
+ :param tags: The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
4832
+
4833
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html
4834
+ :exampleMetadata: fixture=_generated
4835
+
4836
+ Example::
4837
+
4838
+ # The code below shows an example of how to instantiate this type.
4839
+ # The values are placeholders you should change.
4840
+ from aws_cdk import aws_guardduty as guardduty
4841
+
4842
+ cfn_threat_intel_set_props = guardduty.CfnThreatIntelSetProps(
4843
+ format="format",
4844
+ location="location",
4845
+
4846
+ # the properties below are optional
4847
+ activate=False,
4848
+ detector_id="detectorId",
4849
+ expected_bucket_owner="expectedBucketOwner",
4850
+ name="name",
4851
+ tags=[CfnTag(
4852
+ key="key",
4853
+ value="value"
4854
+ )]
4855
+ )
4856
+ '''
4857
+ if __debug__:
4858
+ type_hints = typing.get_type_hints(_typecheckingstub__0a5d0bedab8c4fad4ab288ce5a467dbe6a4d07ef2947521b14162f1e7ac218a1)
4859
+ check_type(argname="argument format", value=format, expected_type=type_hints["format"])
4860
+ check_type(argname="argument location", value=location, expected_type=type_hints["location"])
4861
+ check_type(argname="argument activate", value=activate, expected_type=type_hints["activate"])
4862
+ check_type(argname="argument detector_id", value=detector_id, expected_type=type_hints["detector_id"])
4863
+ check_type(argname="argument expected_bucket_owner", value=expected_bucket_owner, expected_type=type_hints["expected_bucket_owner"])
4864
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
4865
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
4866
+ self._values: typing.Dict[builtins.str, typing.Any] = {
4867
+ "format": format,
4868
+ "location": location,
4869
+ }
4870
+ if activate is not None:
4871
+ self._values["activate"] = activate
4872
+ if detector_id is not None:
4873
+ self._values["detector_id"] = detector_id
4874
+ if expected_bucket_owner is not None:
4875
+ self._values["expected_bucket_owner"] = expected_bucket_owner
4876
+ if name is not None:
4877
+ self._values["name"] = name
4878
+ if tags is not None:
4879
+ self._values["tags"] = tags
4880
+
4881
+ @builtins.property
4882
+ def format(self) -> builtins.str:
4883
+ '''The format of the file that contains the ThreatIntelSet.
4884
+
4885
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-format
4886
+ '''
4887
+ result = self._values.get("format")
4888
+ assert result is not None, "Required property 'format' is missing"
4889
+ return typing.cast(builtins.str, result)
4890
+
4891
+ @builtins.property
4892
+ def location(self) -> builtins.str:
4893
+ '''The URI of the file that contains the ThreatIntelSet.
4894
+
4895
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-location
4896
+ '''
4897
+ result = self._values.get("location")
4898
+ assert result is not None, "Required property 'location' is missing"
4899
+ return typing.cast(builtins.str, result)
4900
+
4901
+ @builtins.property
4902
+ def activate(
4903
+ self,
4904
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
4905
+ '''A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
4906
+
4907
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-activate
4908
+ '''
4909
+ result = self._values.get("activate")
4910
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
4911
+
4912
+ @builtins.property
4913
+ def detector_id(self) -> typing.Optional[builtins.str]:
4914
+ '''The unique ID of the detector of the GuardDuty account for which you want to create a ``ThreatIntelSet`` .
4915
+
4916
+ To find the ``detectorId`` in the current Region, see the
4917
+ Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`_ API.
4918
+
4919
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-detectorid
4920
+ '''
4921
+ result = self._values.get("detector_id")
4922
+ return typing.cast(typing.Optional[builtins.str], result)
4923
+
4924
+ @builtins.property
4925
+ def expected_bucket_owner(self) -> typing.Optional[builtins.str]:
4926
+ '''The AWS account ID that owns the Amazon S3 bucket specified in the *Location* field.
4927
+
4928
+ When you provide this account ID, GuardDuty will validate that the S3 bucket belongs to this account. If you don't specify an account ID owner, GuardDuty doesn't perform any validation.
4929
+
4930
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-expectedbucketowner
4931
+ '''
4932
+ result = self._values.get("expected_bucket_owner")
4933
+ return typing.cast(typing.Optional[builtins.str], result)
4934
+
4935
+ @builtins.property
4936
+ def name(self) -> typing.Optional[builtins.str]:
4937
+ '''A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
4938
+
4939
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-name
4940
+ '''
4941
+ result = self._values.get("name")
4942
+ return typing.cast(typing.Optional[builtins.str], result)
4943
+
4944
+ @builtins.property
4945
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
4946
+ '''The tags to be added to a new threat list resource.
4947
+
4948
+ Each tag consists of a key and an optional value, both of which you define.
4949
+
4950
+ For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
4951
+
4952
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-tags
4953
+ '''
4954
+ result = self._values.get("tags")
4955
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
4956
+
4957
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
4958
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
4959
+
4960
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
4961
+ return not (rhs == self)
4962
+
4963
+ def __repr__(self) -> str:
4964
+ return "CfnThreatIntelSetProps(%s)" % ", ".join(
4965
+ k + "=" + repr(v) for k, v in self._values.items()
4966
+ )
4967
+
4968
+
4969
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
4970
+ class CfnTrustedEntitySet(
4971
+ _CfnResource_9df397a6,
4972
+ metaclass=jsii.JSIIMeta,
4973
+ jsii_type="aws-cdk-lib.aws_guardduty.CfnTrustedEntitySet",
4112
4974
  ):
4113
- '''The ``AWS::GuardDuty::ThreatIntelSet`` resource specifies a new ``ThreatIntelSet`` .
4114
-
4115
- A ``ThreatIntelSet`` consists of known malicious IP addresses. GuardDuty generates findings based on the ``ThreatIntelSet`` after it is activated.
4975
+ '''Resource Type definition for AWS::GuardDuty::TrustedEntitySet.
4116
4976
 
4117
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html
4118
- :cloudformationResource: AWS::GuardDuty::ThreatIntelSet
4977
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html
4978
+ :cloudformationResource: AWS::GuardDuty::TrustedEntitySet
4119
4979
  :exampleMetadata: fixture=_generated
4120
4980
 
4121
4981
  Example::
@@ -4124,7 +4984,7 @@ class CfnThreatIntelSet(
4124
4984
  # The values are placeholders you should change.
4125
4985
  from aws_cdk import aws_guardduty as guardduty
4126
4986
 
4127
- cfn_threat_intel_set = guardduty.CfnThreatIntelSet(self, "MyCfnThreatIntelSet",
4987
+ cfn_trusted_entity_set = guardduty.CfnTrustedEntitySet(self, "MyCfnTrustedEntitySet",
4128
4988
  format="format",
4129
4989
  location="location",
4130
4990
 
@@ -4133,7 +4993,7 @@ class CfnThreatIntelSet(
4133
4993
  detector_id="detectorId",
4134
4994
  expected_bucket_owner="expectedBucketOwner",
4135
4995
  name="name",
4136
- tags=[CfnTag(
4996
+ tags=[guardduty.CfnTrustedEntitySet.TagItemProperty(
4137
4997
  key="key",
4138
4998
  value="value"
4139
4999
  )]
@@ -4151,24 +5011,24 @@ class CfnThreatIntelSet(
4151
5011
  detector_id: typing.Optional[builtins.str] = None,
4152
5012
  expected_bucket_owner: typing.Optional[builtins.str] = None,
4153
5013
  name: typing.Optional[builtins.str] = None,
4154
- tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
5014
+ tags: typing.Optional[typing.Sequence[typing.Union["CfnTrustedEntitySet.TagItemProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
4155
5015
  ) -> None:
4156
5016
  '''
4157
5017
  :param scope: Scope in which this resource is defined.
4158
5018
  :param id: Construct identifier for this resource (unique in its scope).
4159
- :param format: The format of the file that contains the ThreatIntelSet.
4160
- :param location: The URI of the file that contains the ThreatIntelSet.
4161
- :param activate: A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
4162
- :param detector_id: The unique ID of the detector of the GuardDuty account for which you want to create a ``ThreatIntelSet`` . To find the ``detectorId`` in the current Region, see the Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`_ API.
4163
- :param expected_bucket_owner: The AWS account ID that owns the Amazon S3 bucket specified in the *Location* field. When you provide this account ID, GuardDuty will validate that the S3 bucket belongs to this account. If you don't specify an account ID owner, GuardDuty doesn't perform any validation.
4164
- :param name: A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
4165
- :param tags: The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
5019
+ :param format:
5020
+ :param location:
5021
+ :param activate:
5022
+ :param detector_id:
5023
+ :param expected_bucket_owner:
5024
+ :param name:
5025
+ :param tags:
4166
5026
  '''
4167
5027
  if __debug__:
4168
- type_hints = typing.get_type_hints(_typecheckingstub__e60035c0bc955afb794ee89f0439deae280bfec665014cbbd161f08566de73a7)
5028
+ type_hints = typing.get_type_hints(_typecheckingstub__f97ca040c13911b4ef646900134e880ef92baa555cc7ae3a3f589a5b783d6bdd)
4169
5029
  check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
4170
5030
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
4171
- props = CfnThreatIntelSetProps(
5031
+ props = CfnTrustedEntitySetProps(
4172
5032
  format=format,
4173
5033
  location=location,
4174
5034
  activate=activate,
@@ -4187,7 +5047,7 @@ class CfnThreatIntelSet(
4187
5047
  :param inspector: tree inspector to collect and process attributes.
4188
5048
  '''
4189
5049
  if __debug__:
4190
- type_hints = typing.get_type_hints(_typecheckingstub__5d9a7dab9bf19d452d61d5fb4b5e80f876633f39a0cf5051e3a47e94c815073d)
5050
+ type_hints = typing.get_type_hints(_typecheckingstub__f85867f300862bdc19c810d7170de8926f6bfa348b3b9b7637ca7d82c91ca639)
4191
5051
  check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
4192
5052
  return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
4193
5053
 
@@ -4200,7 +5060,7 @@ class CfnThreatIntelSet(
4200
5060
  :param props: -
4201
5061
  '''
4202
5062
  if __debug__:
4203
- type_hints = typing.get_type_hints(_typecheckingstub__fa2f2572c41477f9f21703ec5b985dde17df361473f4b639cf51e738006da367)
5063
+ type_hints = typing.get_type_hints(_typecheckingstub__0655ff4592955f2b692a51501ca73340533b66fea6a2af184a48abc64610afdc)
4204
5064
  check_type(argname="argument props", value=props, expected_type=type_hints["props"])
4205
5065
  return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
4206
5066
 
@@ -4210,49 +5070,78 @@ class CfnThreatIntelSet(
4210
5070
  '''The CloudFormation resource type name for this resource class.'''
4211
5071
  return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
4212
5072
 
5073
+ @builtins.property
5074
+ @jsii.member(jsii_name="attrCreatedAt")
5075
+ def attr_created_at(self) -> builtins.str:
5076
+ '''
5077
+ :cloudformationAttribute: CreatedAt
5078
+ '''
5079
+ return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
5080
+
5081
+ @builtins.property
5082
+ @jsii.member(jsii_name="attrErrorDetails")
5083
+ def attr_error_details(self) -> builtins.str:
5084
+ '''
5085
+ :cloudformationAttribute: ErrorDetails
5086
+ '''
5087
+ return typing.cast(builtins.str, jsii.get(self, "attrErrorDetails"))
5088
+
4213
5089
  @builtins.property
4214
5090
  @jsii.member(jsii_name="attrId")
4215
5091
  def attr_id(self) -> builtins.str:
4216
- '''The unique ID of the ``threatIntelSet`` .
4217
-
5092
+ '''
4218
5093
  :cloudformationAttribute: Id
4219
5094
  '''
4220
5095
  return typing.cast(builtins.str, jsii.get(self, "attrId"))
4221
5096
 
4222
5097
  @builtins.property
4223
- @jsii.member(jsii_name="cfnProperties")
4224
- def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
4225
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
5098
+ @jsii.member(jsii_name="attrStatus")
5099
+ def attr_status(self) -> builtins.str:
5100
+ '''
5101
+ :cloudformationAttribute: Status
5102
+ '''
5103
+ return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
4226
5104
 
4227
5105
  @builtins.property
4228
- @jsii.member(jsii_name="tags")
4229
- def tags(self) -> _TagManager_0a598cb3:
5106
+ @jsii.member(jsii_name="attrUpdatedAt")
5107
+ def attr_updated_at(self) -> builtins.str:
5108
+ '''
5109
+ :cloudformationAttribute: UpdatedAt
5110
+ '''
5111
+ return typing.cast(builtins.str, jsii.get(self, "attrUpdatedAt"))
5112
+
5113
+ @builtins.property
5114
+ @jsii.member(jsii_name="cdkTagManager")
5115
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
4230
5116
  '''Tag Manager which manages the tags for this resource.'''
4231
- return typing.cast(_TagManager_0a598cb3, jsii.get(self, "tags"))
5117
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
5118
+
5119
+ @builtins.property
5120
+ @jsii.member(jsii_name="cfnProperties")
5121
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
5122
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
4232
5123
 
4233
5124
  @builtins.property
4234
5125
  @jsii.member(jsii_name="format")
4235
5126
  def format(self) -> builtins.str:
4236
- '''The format of the file that contains the ThreatIntelSet.'''
4237
5127
  return typing.cast(builtins.str, jsii.get(self, "format"))
4238
5128
 
4239
5129
  @format.setter
4240
5130
  def format(self, value: builtins.str) -> None:
4241
5131
  if __debug__:
4242
- type_hints = typing.get_type_hints(_typecheckingstub__df3e4ea6d2ecdcdcfdf57f71eb38574c54d5e2340fc6b41e3c5752d81380474b)
5132
+ type_hints = typing.get_type_hints(_typecheckingstub__3f59ae26c1cd9cfdc43b89ee8cb5d6b984a93181052f1593fd7aec0dc07a1f2a)
4243
5133
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4244
5134
  jsii.set(self, "format", value) # pyright: ignore[reportArgumentType]
4245
5135
 
4246
5136
  @builtins.property
4247
5137
  @jsii.member(jsii_name="location")
4248
5138
  def location(self) -> builtins.str:
4249
- '''The URI of the file that contains the ThreatIntelSet.'''
4250
5139
  return typing.cast(builtins.str, jsii.get(self, "location"))
4251
5140
 
4252
5141
  @location.setter
4253
5142
  def location(self, value: builtins.str) -> None:
4254
5143
  if __debug__:
4255
- type_hints = typing.get_type_hints(_typecheckingstub__01b8f1e578ee008d23f829009bf45a0717efeb23dd3f85345a6c6203e181177a)
5144
+ type_hints = typing.get_type_hints(_typecheckingstub__bcd25b55717469a06d21cea3ebb5a2ebf71c8c12f4cbe767468b1229bc75b1d6)
4256
5145
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4257
5146
  jsii.set(self, "location", value) # pyright: ignore[reportArgumentType]
4258
5147
 
@@ -4261,7 +5150,6 @@ class CfnThreatIntelSet(
4261
5150
  def activate(
4262
5151
  self,
4263
5152
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
4264
- '''A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.'''
4265
5153
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "activate"))
4266
5154
 
4267
5155
  @activate.setter
@@ -4270,65 +5158,129 @@ class CfnThreatIntelSet(
4270
5158
  value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
4271
5159
  ) -> None:
4272
5160
  if __debug__:
4273
- type_hints = typing.get_type_hints(_typecheckingstub__3660f9080839cb6141a3aaf57ad04008ebbf5e29b4ee2cf7c3bcbdb94c082285)
5161
+ type_hints = typing.get_type_hints(_typecheckingstub__fcb17f7765a352c56401cef5289d093d9eeec88b494b555090ed231a335472a8)
4274
5162
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4275
5163
  jsii.set(self, "activate", value) # pyright: ignore[reportArgumentType]
4276
5164
 
4277
5165
  @builtins.property
4278
5166
  @jsii.member(jsii_name="detectorId")
4279
5167
  def detector_id(self) -> typing.Optional[builtins.str]:
4280
- '''The unique ID of the detector of the GuardDuty account for which you want to create a ``ThreatIntelSet`` .'''
4281
5168
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "detectorId"))
4282
5169
 
4283
5170
  @detector_id.setter
4284
5171
  def detector_id(self, value: typing.Optional[builtins.str]) -> None:
4285
5172
  if __debug__:
4286
- type_hints = typing.get_type_hints(_typecheckingstub__6198953302f0959c3d25abb6f0063fb638c6abf44a125235eafb4937065091bb)
5173
+ type_hints = typing.get_type_hints(_typecheckingstub__636e61a3a1c928a11a4066ee35f6bd92c4e7d47c477e0cd77a1425f7de881ecf)
4287
5174
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4288
5175
  jsii.set(self, "detectorId", value) # pyright: ignore[reportArgumentType]
4289
5176
 
4290
5177
  @builtins.property
4291
5178
  @jsii.member(jsii_name="expectedBucketOwner")
4292
5179
  def expected_bucket_owner(self) -> typing.Optional[builtins.str]:
4293
- '''The AWS account ID that owns the Amazon S3 bucket specified in the *Location* field.'''
4294
5180
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "expectedBucketOwner"))
4295
5181
 
4296
- @expected_bucket_owner.setter
4297
- def expected_bucket_owner(self, value: typing.Optional[builtins.str]) -> None:
4298
- if __debug__:
4299
- type_hints = typing.get_type_hints(_typecheckingstub__45c0733c6c75c09ff089a9606f91e845cf362445012b247e68e83208c0a5aaee)
4300
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4301
- jsii.set(self, "expectedBucketOwner", value) # pyright: ignore[reportArgumentType]
5182
+ @expected_bucket_owner.setter
5183
+ def expected_bucket_owner(self, value: typing.Optional[builtins.str]) -> None:
5184
+ if __debug__:
5185
+ type_hints = typing.get_type_hints(_typecheckingstub__2a30865cdc288b85a7993b1a2560d8b3fc83c414826a40802fd4657ae5addfe4)
5186
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
5187
+ jsii.set(self, "expectedBucketOwner", value) # pyright: ignore[reportArgumentType]
5188
+
5189
+ @builtins.property
5190
+ @jsii.member(jsii_name="name")
5191
+ def name(self) -> typing.Optional[builtins.str]:
5192
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
5193
+
5194
+ @name.setter
5195
+ def name(self, value: typing.Optional[builtins.str]) -> None:
5196
+ if __debug__:
5197
+ type_hints = typing.get_type_hints(_typecheckingstub__52b7aaed8e52f7e5b8652ad3132eee56ee0c858468ce1c9df82ddffa47a56714)
5198
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
5199
+ jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
5200
+
5201
+ @builtins.property
5202
+ @jsii.member(jsii_name="tags")
5203
+ def tags(
5204
+ self,
5205
+ ) -> typing.Optional[typing.List["CfnTrustedEntitySet.TagItemProperty"]]:
5206
+ return typing.cast(typing.Optional[typing.List["CfnTrustedEntitySet.TagItemProperty"]], jsii.get(self, "tags"))
5207
+
5208
+ @tags.setter
5209
+ def tags(
5210
+ self,
5211
+ value: typing.Optional[typing.List["CfnTrustedEntitySet.TagItemProperty"]],
5212
+ ) -> None:
5213
+ if __debug__:
5214
+ type_hints = typing.get_type_hints(_typecheckingstub__99d5ac870e6a4e9a44e3854050f1d9a604df1353c4102d42a55b690097b0396c)
5215
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
5216
+ jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
5217
+
5218
+ @jsii.data_type(
5219
+ jsii_type="aws-cdk-lib.aws_guardduty.CfnTrustedEntitySet.TagItemProperty",
5220
+ jsii_struct_bases=[],
5221
+ name_mapping={"key": "key", "value": "value"},
5222
+ )
5223
+ class TagItemProperty:
5224
+ def __init__(self, *, key: builtins.str, value: builtins.str) -> None:
5225
+ '''
5226
+ :param key:
5227
+ :param value:
5228
+
5229
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-trustedentityset-tagitem.html
5230
+ :exampleMetadata: fixture=_generated
5231
+
5232
+ Example::
5233
+
5234
+ # The code below shows an example of how to instantiate this type.
5235
+ # The values are placeholders you should change.
5236
+ from aws_cdk import aws_guardduty as guardduty
5237
+
5238
+ tag_item_property = guardduty.CfnTrustedEntitySet.TagItemProperty(
5239
+ key="key",
5240
+ value="value"
5241
+ )
5242
+ '''
5243
+ if __debug__:
5244
+ type_hints = typing.get_type_hints(_typecheckingstub__a1c81f11cd29394c009789b30463ba1931458f7dde6533e82b4d108b5890ccb6)
5245
+ check_type(argname="argument key", value=key, expected_type=type_hints["key"])
5246
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
5247
+ self._values: typing.Dict[builtins.str, typing.Any] = {
5248
+ "key": key,
5249
+ "value": value,
5250
+ }
5251
+
5252
+ @builtins.property
5253
+ def key(self) -> builtins.str:
5254
+ '''
5255
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-trustedentityset-tagitem.html#cfn-guardduty-trustedentityset-tagitem-key
5256
+ '''
5257
+ result = self._values.get("key")
5258
+ assert result is not None, "Required property 'key' is missing"
5259
+ return typing.cast(builtins.str, result)
4302
5260
 
4303
- @builtins.property
4304
- @jsii.member(jsii_name="name")
4305
- def name(self) -> typing.Optional[builtins.str]:
4306
- '''A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.'''
4307
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "name"))
5261
+ @builtins.property
5262
+ def value(self) -> builtins.str:
5263
+ '''
5264
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-guardduty-trustedentityset-tagitem.html#cfn-guardduty-trustedentityset-tagitem-value
5265
+ '''
5266
+ result = self._values.get("value")
5267
+ assert result is not None, "Required property 'value' is missing"
5268
+ return typing.cast(builtins.str, result)
4308
5269
 
4309
- @name.setter
4310
- def name(self, value: typing.Optional[builtins.str]) -> None:
4311
- if __debug__:
4312
- type_hints = typing.get_type_hints(_typecheckingstub__78860e52ab0e0d6681a85585054b7ed92f84696ec2b6a43bb90c609188bf36e6)
4313
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4314
- jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
5270
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
5271
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
4315
5272
 
4316
- @builtins.property
4317
- @jsii.member(jsii_name="tagsRaw")
4318
- def tags_raw(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
4319
- '''The tags to be added to a new threat list resource.'''
4320
- return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tagsRaw"))
5273
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
5274
+ return not (rhs == self)
4321
5275
 
4322
- @tags_raw.setter
4323
- def tags_raw(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
4324
- if __debug__:
4325
- type_hints = typing.get_type_hints(_typecheckingstub__213606bb8c2a17afd6b75e6224d08fd34ab33f0ef606dcd3df99402aa81754e0)
4326
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4327
- jsii.set(self, "tagsRaw", value) # pyright: ignore[reportArgumentType]
5276
+ def __repr__(self) -> str:
5277
+ return "TagItemProperty(%s)" % ", ".join(
5278
+ k + "=" + repr(v) for k, v in self._values.items()
5279
+ )
4328
5280
 
4329
5281
 
4330
5282
  @jsii.data_type(
4331
- jsii_type="aws-cdk-lib.aws_guardduty.CfnThreatIntelSetProps",
5283
+ jsii_type="aws-cdk-lib.aws_guardduty.CfnTrustedEntitySetProps",
4332
5284
  jsii_struct_bases=[],
4333
5285
  name_mapping={
4334
5286
  "format": "format",
@@ -4340,7 +5292,7 @@ class CfnThreatIntelSet(
4340
5292
  "tags": "tags",
4341
5293
  },
4342
5294
  )
4343
- class CfnThreatIntelSetProps:
5295
+ class CfnTrustedEntitySetProps:
4344
5296
  def __init__(
4345
5297
  self,
4346
5298
  *,
@@ -4350,19 +5302,19 @@ class CfnThreatIntelSetProps:
4350
5302
  detector_id: typing.Optional[builtins.str] = None,
4351
5303
  expected_bucket_owner: typing.Optional[builtins.str] = None,
4352
5304
  name: typing.Optional[builtins.str] = None,
4353
- tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
5305
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnTrustedEntitySet.TagItemProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
4354
5306
  ) -> None:
4355
- '''Properties for defining a ``CfnThreatIntelSet``.
5307
+ '''Properties for defining a ``CfnTrustedEntitySet``.
4356
5308
 
4357
- :param format: The format of the file that contains the ThreatIntelSet.
4358
- :param location: The URI of the file that contains the ThreatIntelSet.
4359
- :param activate: A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
4360
- :param detector_id: The unique ID of the detector of the GuardDuty account for which you want to create a ``ThreatIntelSet`` . To find the ``detectorId`` in the current Region, see the Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`_ API.
4361
- :param expected_bucket_owner: The AWS account ID that owns the Amazon S3 bucket specified in the *Location* field. When you provide this account ID, GuardDuty will validate that the S3 bucket belongs to this account. If you don't specify an account ID owner, GuardDuty doesn't perform any validation.
4362
- :param name: A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
4363
- :param tags: The tags to be added to a new threat list resource. Each tag consists of a key and an optional value, both of which you define. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
5309
+ :param format:
5310
+ :param location:
5311
+ :param activate:
5312
+ :param detector_id:
5313
+ :param expected_bucket_owner:
5314
+ :param name:
5315
+ :param tags:
4364
5316
 
4365
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html
5317
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html
4366
5318
  :exampleMetadata: fixture=_generated
4367
5319
 
4368
5320
  Example::
@@ -4371,7 +5323,7 @@ class CfnThreatIntelSetProps:
4371
5323
  # The values are placeholders you should change.
4372
5324
  from aws_cdk import aws_guardduty as guardduty
4373
5325
 
4374
- cfn_threat_intel_set_props = guardduty.CfnThreatIntelSetProps(
5326
+ cfn_trusted_entity_set_props = guardduty.CfnTrustedEntitySetProps(
4375
5327
  format="format",
4376
5328
  location="location",
4377
5329
 
@@ -4380,14 +5332,14 @@ class CfnThreatIntelSetProps:
4380
5332
  detector_id="detectorId",
4381
5333
  expected_bucket_owner="expectedBucketOwner",
4382
5334
  name="name",
4383
- tags=[CfnTag(
5335
+ tags=[guardduty.CfnTrustedEntitySet.TagItemProperty(
4384
5336
  key="key",
4385
5337
  value="value"
4386
5338
  )]
4387
5339
  )
4388
5340
  '''
4389
5341
  if __debug__:
4390
- type_hints = typing.get_type_hints(_typecheckingstub__0a5d0bedab8c4fad4ab288ce5a467dbe6a4d07ef2947521b14162f1e7ac218a1)
5342
+ type_hints = typing.get_type_hints(_typecheckingstub__00765e3940374511fc72a70d3a0ae2969dd9c1bda5e42af5ac72c84b1ecc9735)
4391
5343
  check_type(argname="argument format", value=format, expected_type=type_hints["format"])
4392
5344
  check_type(argname="argument location", value=location, expected_type=type_hints["location"])
4393
5345
  check_type(argname="argument activate", value=activate, expected_type=type_hints["activate"])
@@ -4412,9 +5364,8 @@ class CfnThreatIntelSetProps:
4412
5364
 
4413
5365
  @builtins.property
4414
5366
  def format(self) -> builtins.str:
4415
- '''The format of the file that contains the ThreatIntelSet.
4416
-
4417
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-format
5367
+ '''
5368
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html#cfn-guardduty-trustedentityset-format
4418
5369
  '''
4419
5370
  result = self._values.get("format")
4420
5371
  assert result is not None, "Required property 'format' is missing"
@@ -4422,9 +5373,8 @@ class CfnThreatIntelSetProps:
4422
5373
 
4423
5374
  @builtins.property
4424
5375
  def location(self) -> builtins.str:
4425
- '''The URI of the file that contains the ThreatIntelSet.
4426
-
4427
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-location
5376
+ '''
5377
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html#cfn-guardduty-trustedentityset-location
4428
5378
  '''
4429
5379
  result = self._values.get("location")
4430
5380
  assert result is not None, "Required property 'location' is missing"
@@ -4434,57 +5384,43 @@ class CfnThreatIntelSetProps:
4434
5384
  def activate(
4435
5385
  self,
4436
5386
  ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
4437
- '''A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.
4438
-
4439
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-activate
5387
+ '''
5388
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html#cfn-guardduty-trustedentityset-activate
4440
5389
  '''
4441
5390
  result = self._values.get("activate")
4442
5391
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
4443
5392
 
4444
5393
  @builtins.property
4445
5394
  def detector_id(self) -> typing.Optional[builtins.str]:
4446
- '''The unique ID of the detector of the GuardDuty account for which you want to create a ``ThreatIntelSet`` .
4447
-
4448
- To find the ``detectorId`` in the current Region, see the
4449
- Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`_ API.
4450
-
4451
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-detectorid
5395
+ '''
5396
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html#cfn-guardduty-trustedentityset-detectorid
4452
5397
  '''
4453
5398
  result = self._values.get("detector_id")
4454
5399
  return typing.cast(typing.Optional[builtins.str], result)
4455
5400
 
4456
5401
  @builtins.property
4457
5402
  def expected_bucket_owner(self) -> typing.Optional[builtins.str]:
4458
- '''The AWS account ID that owns the Amazon S3 bucket specified in the *Location* field.
4459
-
4460
- When you provide this account ID, GuardDuty will validate that the S3 bucket belongs to this account. If you don't specify an account ID owner, GuardDuty doesn't perform any validation.
4461
-
4462
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-expectedbucketowner
5403
+ '''
5404
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html#cfn-guardduty-trustedentityset-expectedbucketowner
4463
5405
  '''
4464
5406
  result = self._values.get("expected_bucket_owner")
4465
5407
  return typing.cast(typing.Optional[builtins.str], result)
4466
5408
 
4467
5409
  @builtins.property
4468
5410
  def name(self) -> typing.Optional[builtins.str]:
4469
- '''A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.
4470
-
4471
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-name
5411
+ '''
5412
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html#cfn-guardduty-trustedentityset-name
4472
5413
  '''
4473
5414
  result = self._values.get("name")
4474
5415
  return typing.cast(typing.Optional[builtins.str], result)
4475
5416
 
4476
5417
  @builtins.property
4477
- def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
4478
- '''The tags to be added to a new threat list resource.
4479
-
4480
- Each tag consists of a key and an optional value, both of which you define.
4481
-
4482
- For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
4483
-
4484
- :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-threatintelset.html#cfn-guardduty-threatintelset-tags
5418
+ def tags(self) -> typing.Optional[typing.List[CfnTrustedEntitySet.TagItemProperty]]:
5419
+ '''
5420
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-trustedentityset.html#cfn-guardduty-trustedentityset-tags
4485
5421
  '''
4486
5422
  result = self._values.get("tags")
4487
- return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
5423
+ return typing.cast(typing.Optional[typing.List[CfnTrustedEntitySet.TagItemProperty]], result)
4488
5424
 
4489
5425
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
4490
5426
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -4493,7 +5429,7 @@ class CfnThreatIntelSetProps:
4493
5429
  return not (rhs == self)
4494
5430
 
4495
5431
  def __repr__(self) -> str:
4496
- return "CfnThreatIntelSetProps(%s)" % ", ".join(
5432
+ return "CfnTrustedEntitySetProps(%s)" % ", ".join(
4497
5433
  k + "=" + repr(v) for k, v in self._values.items()
4498
5434
  )
4499
5435
 
@@ -4513,8 +5449,12 @@ __all__ = [
4513
5449
  "CfnMemberProps",
4514
5450
  "CfnPublishingDestination",
4515
5451
  "CfnPublishingDestinationProps",
5452
+ "CfnThreatEntitySet",
5453
+ "CfnThreatEntitySetProps",
4516
5454
  "CfnThreatIntelSet",
4517
5455
  "CfnThreatIntelSetProps",
5456
+ "CfnTrustedEntitySet",
5457
+ "CfnTrustedEntitySetProps",
4518
5458
  ]
4519
5459
 
4520
5460
  publication.publish()
@@ -5145,6 +6085,96 @@ def _typecheckingstub__5035cd8908ac8fcff142733ecf98576b3480f30c7c0fd250caa41a83b
5145
6085
  """Type checking stubs"""
5146
6086
  pass
5147
6087
 
6088
+ def _typecheckingstub__a633dbf3a335a1c89a81e2b20e0804a2398855b80b7f90aefcab3fcffd594ae2(
6089
+ scope: _constructs_77d1e7e8.Construct,
6090
+ id: builtins.str,
6091
+ *,
6092
+ format: builtins.str,
6093
+ location: builtins.str,
6094
+ activate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
6095
+ detector_id: typing.Optional[builtins.str] = None,
6096
+ expected_bucket_owner: typing.Optional[builtins.str] = None,
6097
+ name: typing.Optional[builtins.str] = None,
6098
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnThreatEntitySet.TagItemProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
6099
+ ) -> None:
6100
+ """Type checking stubs"""
6101
+ pass
6102
+
6103
+ def _typecheckingstub__1c32d5cebe463fb394e1de7987cf95ac14ed2d64bfb94244b7f53a5ae01e86fc(
6104
+ inspector: _TreeInspector_488e0dd5,
6105
+ ) -> None:
6106
+ """Type checking stubs"""
6107
+ pass
6108
+
6109
+ def _typecheckingstub__4b473ab42cb6b4e41fbd30cc43368c741a796600957b905b8bd33b94ed1d9b19(
6110
+ props: typing.Mapping[builtins.str, typing.Any],
6111
+ ) -> None:
6112
+ """Type checking stubs"""
6113
+ pass
6114
+
6115
+ def _typecheckingstub__9bd1bb00f84d311b715627a92fb637272bd50eba86c2d16fa67691c6cc13b40b(
6116
+ value: builtins.str,
6117
+ ) -> None:
6118
+ """Type checking stubs"""
6119
+ pass
6120
+
6121
+ def _typecheckingstub__2309bb8657b4758bd1d620033861fc01383373882f360a452fe19c1513ef44e3(
6122
+ value: builtins.str,
6123
+ ) -> None:
6124
+ """Type checking stubs"""
6125
+ pass
6126
+
6127
+ def _typecheckingstub__bdf2f505562fc426590d0aff2e1eca3a53df58abfd1e69b8495ac49ff3b42763(
6128
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
6129
+ ) -> None:
6130
+ """Type checking stubs"""
6131
+ pass
6132
+
6133
+ def _typecheckingstub__a97f7e1867e5a54a3b03a0d24bd5ec7ca8d6200145e83b0f34c562f5e83448ba(
6134
+ value: typing.Optional[builtins.str],
6135
+ ) -> None:
6136
+ """Type checking stubs"""
6137
+ pass
6138
+
6139
+ def _typecheckingstub__a7bd200e9cd51319cdc4298d4401a8a961a6af90f3ea47a9200a8820086e4278(
6140
+ value: typing.Optional[builtins.str],
6141
+ ) -> None:
6142
+ """Type checking stubs"""
6143
+ pass
6144
+
6145
+ def _typecheckingstub__03df3be27a55c9923526c9497963c6527d389f1bb8ffed035526cc303afb8bd2(
6146
+ value: typing.Optional[builtins.str],
6147
+ ) -> None:
6148
+ """Type checking stubs"""
6149
+ pass
6150
+
6151
+ def _typecheckingstub__fbaece4f1c2fc125ec3923bb0a3b4537f6091ab7f66da3db41faf4839aeb3931(
6152
+ value: typing.Optional[typing.List[CfnThreatEntitySet.TagItemProperty]],
6153
+ ) -> None:
6154
+ """Type checking stubs"""
6155
+ pass
6156
+
6157
+ def _typecheckingstub__9bcb8d0f67c3b20709378a933f90454d6394d6f4608b78865e524eaaae71a082(
6158
+ *,
6159
+ key: builtins.str,
6160
+ value: builtins.str,
6161
+ ) -> None:
6162
+ """Type checking stubs"""
6163
+ pass
6164
+
6165
+ def _typecheckingstub__adc8d4ad73863c00637d46455ebd458e48d6cb964a55dada4ed53522b2f348d3(
6166
+ *,
6167
+ format: builtins.str,
6168
+ location: builtins.str,
6169
+ activate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
6170
+ detector_id: typing.Optional[builtins.str] = None,
6171
+ expected_bucket_owner: typing.Optional[builtins.str] = None,
6172
+ name: typing.Optional[builtins.str] = None,
6173
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnThreatEntitySet.TagItemProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
6174
+ ) -> None:
6175
+ """Type checking stubs"""
6176
+ pass
6177
+
5148
6178
  def _typecheckingstub__e60035c0bc955afb794ee89f0439deae280bfec665014cbbd161f08566de73a7(
5149
6179
  scope: _constructs_77d1e7e8.Construct,
5150
6180
  id: builtins.str,
@@ -5226,3 +6256,93 @@ def _typecheckingstub__0a5d0bedab8c4fad4ab288ce5a467dbe6a4d07ef2947521b14162f1e7
5226
6256
  ) -> None:
5227
6257
  """Type checking stubs"""
5228
6258
  pass
6259
+
6260
+ def _typecheckingstub__f97ca040c13911b4ef646900134e880ef92baa555cc7ae3a3f589a5b783d6bdd(
6261
+ scope: _constructs_77d1e7e8.Construct,
6262
+ id: builtins.str,
6263
+ *,
6264
+ format: builtins.str,
6265
+ location: builtins.str,
6266
+ activate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
6267
+ detector_id: typing.Optional[builtins.str] = None,
6268
+ expected_bucket_owner: typing.Optional[builtins.str] = None,
6269
+ name: typing.Optional[builtins.str] = None,
6270
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnTrustedEntitySet.TagItemProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
6271
+ ) -> None:
6272
+ """Type checking stubs"""
6273
+ pass
6274
+
6275
+ def _typecheckingstub__f85867f300862bdc19c810d7170de8926f6bfa348b3b9b7637ca7d82c91ca639(
6276
+ inspector: _TreeInspector_488e0dd5,
6277
+ ) -> None:
6278
+ """Type checking stubs"""
6279
+ pass
6280
+
6281
+ def _typecheckingstub__0655ff4592955f2b692a51501ca73340533b66fea6a2af184a48abc64610afdc(
6282
+ props: typing.Mapping[builtins.str, typing.Any],
6283
+ ) -> None:
6284
+ """Type checking stubs"""
6285
+ pass
6286
+
6287
+ def _typecheckingstub__3f59ae26c1cd9cfdc43b89ee8cb5d6b984a93181052f1593fd7aec0dc07a1f2a(
6288
+ value: builtins.str,
6289
+ ) -> None:
6290
+ """Type checking stubs"""
6291
+ pass
6292
+
6293
+ def _typecheckingstub__bcd25b55717469a06d21cea3ebb5a2ebf71c8c12f4cbe767468b1229bc75b1d6(
6294
+ value: builtins.str,
6295
+ ) -> None:
6296
+ """Type checking stubs"""
6297
+ pass
6298
+
6299
+ def _typecheckingstub__fcb17f7765a352c56401cef5289d093d9eeec88b494b555090ed231a335472a8(
6300
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
6301
+ ) -> None:
6302
+ """Type checking stubs"""
6303
+ pass
6304
+
6305
+ def _typecheckingstub__636e61a3a1c928a11a4066ee35f6bd92c4e7d47c477e0cd77a1425f7de881ecf(
6306
+ value: typing.Optional[builtins.str],
6307
+ ) -> None:
6308
+ """Type checking stubs"""
6309
+ pass
6310
+
6311
+ def _typecheckingstub__2a30865cdc288b85a7993b1a2560d8b3fc83c414826a40802fd4657ae5addfe4(
6312
+ value: typing.Optional[builtins.str],
6313
+ ) -> None:
6314
+ """Type checking stubs"""
6315
+ pass
6316
+
6317
+ def _typecheckingstub__52b7aaed8e52f7e5b8652ad3132eee56ee0c858468ce1c9df82ddffa47a56714(
6318
+ value: typing.Optional[builtins.str],
6319
+ ) -> None:
6320
+ """Type checking stubs"""
6321
+ pass
6322
+
6323
+ def _typecheckingstub__99d5ac870e6a4e9a44e3854050f1d9a604df1353c4102d42a55b690097b0396c(
6324
+ value: typing.Optional[typing.List[CfnTrustedEntitySet.TagItemProperty]],
6325
+ ) -> None:
6326
+ """Type checking stubs"""
6327
+ pass
6328
+
6329
+ def _typecheckingstub__a1c81f11cd29394c009789b30463ba1931458f7dde6533e82b4d108b5890ccb6(
6330
+ *,
6331
+ key: builtins.str,
6332
+ value: builtins.str,
6333
+ ) -> None:
6334
+ """Type checking stubs"""
6335
+ pass
6336
+
6337
+ def _typecheckingstub__00765e3940374511fc72a70d3a0ae2969dd9c1bda5e42af5ac72c84b1ecc9735(
6338
+ *,
6339
+ format: builtins.str,
6340
+ location: builtins.str,
6341
+ activate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
6342
+ detector_id: typing.Optional[builtins.str] = None,
6343
+ expected_bucket_owner: typing.Optional[builtins.str] = None,
6344
+ name: typing.Optional[builtins.str] = None,
6345
+ tags: typing.Optional[typing.Sequence[typing.Union[CfnTrustedEntitySet.TagItemProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
6346
+ ) -> None:
6347
+ """Type checking stubs"""
6348
+ pass