aws-cdk-lib 2.217.0__py3-none-any.whl → 2.218.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 (130) hide show
  1. aws_cdk/_jsii/__init__.py +1 -1
  2. aws_cdk/_jsii/{aws-cdk-lib@2.217.0.jsii.tgz → aws-cdk-lib@2.218.0.jsii.tgz} +0 -0
  3. aws_cdk/aws_amazonmq/__init__.py +87 -0
  4. aws_cdk/aws_apigateway/__init__.py +203 -0
  5. aws_cdk/aws_apigatewayv2/__init__.py +58 -0
  6. aws_cdk/aws_appconfig/__init__.py +145 -0
  7. aws_cdk/aws_appflow/__init__.py +116 -0
  8. aws_cdk/aws_appintegrations/__init__.py +116 -0
  9. aws_cdk/aws_appstream/__init__.py +87 -0
  10. aws_cdk/aws_appsync/__init__.py +58 -0
  11. aws_cdk/aws_apptest/__init__.py +58 -0
  12. aws_cdk/aws_athena/__init__.py +58 -0
  13. aws_cdk/aws_auditmanager/__init__.py +58 -0
  14. aws_cdk/aws_backup/__init__.py +145 -0
  15. aws_cdk/aws_batch/__init__.py +58 -0
  16. aws_cdk/aws_bedrock/__init__.py +145 -0
  17. aws_cdk/aws_cassandra/__init__.py +29 -0
  18. aws_cdk/aws_certificatemanager/__init__.py +29 -0
  19. aws_cdk/aws_cloudfront/__init__.py +57 -0
  20. aws_cdk/aws_cloudfront_origins/__init__.py +87 -7
  21. aws_cdk/aws_cloudtrail/__init__.py +58 -0
  22. aws_cdk/aws_cloudwatch/__init__.py +145 -0
  23. aws_cdk/aws_codebuild/__init__.py +115 -12
  24. aws_cdk/aws_codedeploy/__init__.py +29 -0
  25. aws_cdk/aws_codeguruprofiler/__init__.py +58 -0
  26. aws_cdk/aws_codepipeline/__init__.py +29 -0
  27. aws_cdk/aws_cognito/__init__.py +87 -0
  28. aws_cdk/aws_config/__init__.py +58 -0
  29. aws_cdk/aws_cur/__init__.py +29 -0
  30. aws_cdk/aws_customerprofiles/__init__.py +58 -0
  31. aws_cdk/aws_datapipeline/__init__.py +29 -0
  32. aws_cdk/aws_datazone/__init__.py +58 -0
  33. aws_cdk/aws_directoryservice/__init__.py +29 -0
  34. aws_cdk/aws_dms/__init__.py +58 -0
  35. aws_cdk/aws_docdb/__init__.py +153 -25
  36. aws_cdk/aws_dsql/__init__.py +29 -0
  37. aws_cdk/aws_dynamodb/__init__.py +58 -0
  38. aws_cdk/aws_ec2/__init__.py +1976 -0
  39. aws_cdk/aws_ecr/__init__.py +116 -0
  40. aws_cdk/aws_ecs/__init__.py +87 -0
  41. aws_cdk/aws_efs/__init__.py +116 -0
  42. aws_cdk/aws_eks/__init__.py +118 -0
  43. aws_cdk/aws_elasticache/__init__.py +261 -0
  44. aws_cdk/aws_elasticbeanstalk/__init__.py +29 -0
  45. aws_cdk/aws_emr/__init__.py +87 -0
  46. aws_cdk/aws_emrcontainers/__init__.py +58 -0
  47. aws_cdk/aws_emrserverless/__init__.py +58 -0
  48. aws_cdk/aws_entityresolution/__init__.py +145 -0
  49. aws_cdk/aws_events/__init__.py +290 -0
  50. aws_cdk/aws_finspace/__init__.py +58 -0
  51. aws_cdk/aws_gamelift/__init__.py +435 -0
  52. aws_cdk/aws_glue/__init__.py +145 -0
  53. aws_cdk/aws_greengrass/__init__.py +464 -0
  54. aws_cdk/aws_groundstation/__init__.py +87 -0
  55. aws_cdk/aws_guardduty/__init__.py +87 -0
  56. aws_cdk/aws_healthimaging/__init__.py +58 -0
  57. aws_cdk/aws_healthlake/__init__.py +29 -0
  58. aws_cdk/aws_internetmonitor/__init__.py +58 -0
  59. aws_cdk/aws_iot/__init__.py +957 -0
  60. aws_cdk/aws_iotanalytics/__init__.py +116 -0
  61. aws_cdk/aws_iotcoredeviceadvisor/__init__.py +58 -0
  62. aws_cdk/aws_iotevents/__init__.py +87 -0
  63. aws_cdk/aws_iotfleethub/__init__.py +58 -0
  64. aws_cdk/aws_iotfleetwise/__init__.py +116 -0
  65. aws_cdk/aws_iotsitewise/__init__.py +493 -0
  66. aws_cdk/aws_iottwinmaker/__init__.py +145 -0
  67. aws_cdk/aws_iotwireless/__init__.py +464 -0
  68. aws_cdk/aws_kendra/__init__.py +116 -0
  69. aws_cdk/aws_kinesis/__init__.py +58 -0
  70. aws_cdk/aws_kinesisanalytics/__init__.py +31 -0
  71. aws_cdk/aws_kinesisanalyticsv2/__init__.py +29 -0
  72. aws_cdk/aws_kinesisfirehose/__init__.py +58 -0
  73. aws_cdk/aws_kinesisvideo/__init__.py +29 -0
  74. aws_cdk/aws_kms/__init__.py +58 -0
  75. aws_cdk/aws_lambda/__init__.py +58 -0
  76. aws_cdk/aws_lex/__init__.py +29 -0
  77. aws_cdk/aws_location/__init__.py +348 -0
  78. aws_cdk/aws_logs/__init__.py +232 -0
  79. aws_cdk/aws_lookoutequipment/__init__.py +29 -0
  80. aws_cdk/aws_lookoutvision/__init__.py +58 -0
  81. aws_cdk/aws_managedblockchain/__init__.py +145 -0
  82. aws_cdk/aws_medialive/__init__.py +435 -0
  83. aws_cdk/aws_mediatailor/__init__.py +174 -0
  84. aws_cdk/aws_memorydb/__init__.py +203 -0
  85. aws_cdk/aws_mwaa/__init__.py +58 -0
  86. aws_cdk/aws_networkmanager/__init__.py +29 -0
  87. aws_cdk/aws_nimblestudio/__init__.py +29 -0
  88. aws_cdk/aws_omics/__init__.py +174 -0
  89. aws_cdk/aws_opensearchserverless/__init__.py +58 -0
  90. aws_cdk/aws_opsworks/__init__.py +29 -0
  91. aws_cdk/aws_opsworkscm/__init__.py +29 -0
  92. aws_cdk/aws_organizations/__init__.py +116 -0
  93. aws_cdk/aws_panorama/__init__.py +116 -0
  94. aws_cdk/aws_pinpoint/__init__.py +116 -0
  95. aws_cdk/aws_qbusiness/__init__.py +232 -0
  96. aws_cdk/aws_qldb/__init__.py +29 -0
  97. aws_cdk/aws_rds/__init__.py +64 -0
  98. aws_cdk/aws_redshift/__init__.py +29 -0
  99. aws_cdk/aws_rekognition/__init__.py +87 -0
  100. aws_cdk/aws_resourcegroups/__init__.py +58 -0
  101. aws_cdk/aws_rolesanywhere/__init__.py +145 -0
  102. aws_cdk/aws_route53recoveryreadiness/__init__.py +58 -0
  103. aws_cdk/aws_route53resolver/__init__.py +29 -0
  104. aws_cdk/aws_s3/__init__.py +116 -0
  105. aws_cdk/aws_s3express/__init__.py +116 -0
  106. aws_cdk/aws_sagemaker/__init__.py +464 -0
  107. aws_cdk/aws_scheduler/__init__.py +29 -0
  108. aws_cdk/aws_secretsmanager/__init__.py +29 -0
  109. aws_cdk/aws_servicecatalog/__init__.py +29 -0
  110. aws_cdk/aws_servicecatalogappregistry/__init__.py +116 -0
  111. aws_cdk/aws_servicediscovery/__init__.py +58 -0
  112. aws_cdk/aws_ses/__init__.py +261 -0
  113. aws_cdk/aws_simspaceweaver/__init__.py +29 -0
  114. aws_cdk/aws_ssm/__init__.py +87 -0
  115. aws_cdk/aws_synthetics/__init__.py +29 -0
  116. aws_cdk/aws_timestream/__init__.py +87 -0
  117. aws_cdk/aws_transfer/__init__.py +261 -0
  118. aws_cdk/aws_verifiedpermissions/__init__.py +58 -0
  119. aws_cdk/aws_voiceid/__init__.py +29 -0
  120. aws_cdk/aws_wisdom/__init__.py +232 -0
  121. aws_cdk/aws_workspaces/__init__.py +58 -0
  122. aws_cdk/aws_workspacesinstances/__init__.py +29 -0
  123. aws_cdk/aws_workspacesthinclient/__init__.py +58 -0
  124. aws_cdk/pipelines/__init__.py +5 -1
  125. {aws_cdk_lib-2.217.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/METADATA +1 -1
  126. {aws_cdk_lib-2.217.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/RECORD +130 -130
  127. {aws_cdk_lib-2.217.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/LICENSE +0 -0
  128. {aws_cdk_lib-2.217.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/NOTICE +0 -0
  129. {aws_cdk_lib-2.217.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/WHEEL +0 -0
  130. {aws_cdk_lib-2.217.0.dist-info → aws_cdk_lib-2.218.0.dist-info}/top_level.txt +0 -0
@@ -11728,6 +11728,48 @@ class CfnAlarm(
11728
11728
 
11729
11729
  jsii.create(self.__class__, self, [scope, id, props])
11730
11730
 
11731
+ @jsii.member(jsii_name="fromAlarmArn")
11732
+ @builtins.classmethod
11733
+ def from_alarm_arn(
11734
+ cls,
11735
+ scope: _constructs_77d1e7e8.Construct,
11736
+ id: builtins.str,
11737
+ arn: builtins.str,
11738
+ ) -> IAlarmRef:
11739
+ '''Creates a new IAlarmRef from an ARN.
11740
+
11741
+ :param scope: -
11742
+ :param id: -
11743
+ :param arn: -
11744
+ '''
11745
+ if __debug__:
11746
+ type_hints = typing.get_type_hints(_typecheckingstub__544b0968def3d9b72962fb1bbce7dec4b2d60b4c2518711cc9df447306ed6c4c)
11747
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
11748
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
11749
+ check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
11750
+ return typing.cast(IAlarmRef, jsii.sinvoke(cls, "fromAlarmArn", [scope, id, arn]))
11751
+
11752
+ @jsii.member(jsii_name="fromAlarmName")
11753
+ @builtins.classmethod
11754
+ def from_alarm_name(
11755
+ cls,
11756
+ scope: _constructs_77d1e7e8.Construct,
11757
+ id: builtins.str,
11758
+ alarm_name: builtins.str,
11759
+ ) -> IAlarmRef:
11760
+ '''Creates a new IAlarmRef from a alarmName.
11761
+
11762
+ :param scope: -
11763
+ :param id: -
11764
+ :param alarm_name: -
11765
+ '''
11766
+ if __debug__:
11767
+ type_hints = typing.get_type_hints(_typecheckingstub__191b683ee20d5f420eb03eb2e0b1a6e0e7cfed31f66a3afa94d14da0767a90f4)
11768
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
11769
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
11770
+ check_type(argname="argument alarm_name", value=alarm_name, expected_type=type_hints["alarm_name"])
11771
+ return typing.cast(IAlarmRef, jsii.sinvoke(cls, "fromAlarmName", [scope, id, alarm_name]))
11772
+
11731
11773
  @jsii.member(jsii_name="inspect")
11732
11774
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
11733
11775
  '''Examines the CloudFormation resource and discloses attributes.
@@ -14209,6 +14251,27 @@ class CfnDashboard(
14209
14251
 
14210
14252
  jsii.create(self.__class__, self, [scope, id, props])
14211
14253
 
14254
+ @jsii.member(jsii_name="fromDashboardName")
14255
+ @builtins.classmethod
14256
+ def from_dashboard_name(
14257
+ cls,
14258
+ scope: _constructs_77d1e7e8.Construct,
14259
+ id: builtins.str,
14260
+ dashboard_name: builtins.str,
14261
+ ) -> IDashboardRef:
14262
+ '''Creates a new IDashboardRef from a dashboardName.
14263
+
14264
+ :param scope: -
14265
+ :param id: -
14266
+ :param dashboard_name: -
14267
+ '''
14268
+ if __debug__:
14269
+ type_hints = typing.get_type_hints(_typecheckingstub__f2a65575230b6782811b6cc1c4a4d1c6cc87f971ef5aa437442cc859d489ff82)
14270
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
14271
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
14272
+ check_type(argname="argument dashboard_name", value=dashboard_name, expected_type=type_hints["dashboard_name"])
14273
+ return typing.cast(IDashboardRef, jsii.sinvoke(cls, "fromDashboardName", [scope, id, dashboard_name]))
14274
+
14212
14275
  @jsii.member(jsii_name="inspect")
14213
14276
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
14214
14277
  '''Examines the CloudFormation resource and discloses attributes.
@@ -14601,6 +14664,48 @@ class CfnMetricStream(
14601
14664
 
14602
14665
  jsii.create(self.__class__, self, [scope, id, props])
14603
14666
 
14667
+ @jsii.member(jsii_name="fromMetricStreamArn")
14668
+ @builtins.classmethod
14669
+ def from_metric_stream_arn(
14670
+ cls,
14671
+ scope: _constructs_77d1e7e8.Construct,
14672
+ id: builtins.str,
14673
+ arn: builtins.str,
14674
+ ) -> IMetricStreamRef:
14675
+ '''Creates a new IMetricStreamRef from an ARN.
14676
+
14677
+ :param scope: -
14678
+ :param id: -
14679
+ :param arn: -
14680
+ '''
14681
+ if __debug__:
14682
+ type_hints = typing.get_type_hints(_typecheckingstub__50e36a4aae3592a141f72295c65ce2cf6f01c0153925f610e589758abcc065e2)
14683
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
14684
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
14685
+ check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
14686
+ return typing.cast(IMetricStreamRef, jsii.sinvoke(cls, "fromMetricStreamArn", [scope, id, arn]))
14687
+
14688
+ @jsii.member(jsii_name="fromMetricStreamName")
14689
+ @builtins.classmethod
14690
+ def from_metric_stream_name(
14691
+ cls,
14692
+ scope: _constructs_77d1e7e8.Construct,
14693
+ id: builtins.str,
14694
+ metric_stream_name: builtins.str,
14695
+ ) -> IMetricStreamRef:
14696
+ '''Creates a new IMetricStreamRef from a metricStreamName.
14697
+
14698
+ :param scope: -
14699
+ :param id: -
14700
+ :param metric_stream_name: -
14701
+ '''
14702
+ if __debug__:
14703
+ type_hints = typing.get_type_hints(_typecheckingstub__635a32b621fbf5f4f1c0d44f6749043dfa44bfb3ec257d8fe8a02439751244c1)
14704
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
14705
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
14706
+ check_type(argname="argument metric_stream_name", value=metric_stream_name, expected_type=type_hints["metric_stream_name"])
14707
+ return typing.cast(IMetricStreamRef, jsii.sinvoke(cls, "fromMetricStreamName", [scope, id, metric_stream_name]))
14708
+
14604
14709
  @jsii.member(jsii_name="inspect")
14605
14710
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
14606
14711
  '''Examines the CloudFormation resource and discloses attributes.
@@ -18417,6 +18522,22 @@ def _typecheckingstub__5adc477b9cef758736625389f1a51dec08eb7b348be35f42b0e37d6d4
18417
18522
  """Type checking stubs"""
18418
18523
  pass
18419
18524
 
18525
+ def _typecheckingstub__544b0968def3d9b72962fb1bbce7dec4b2d60b4c2518711cc9df447306ed6c4c(
18526
+ scope: _constructs_77d1e7e8.Construct,
18527
+ id: builtins.str,
18528
+ arn: builtins.str,
18529
+ ) -> None:
18530
+ """Type checking stubs"""
18531
+ pass
18532
+
18533
+ def _typecheckingstub__191b683ee20d5f420eb03eb2e0b1a6e0e7cfed31f66a3afa94d14da0767a90f4(
18534
+ scope: _constructs_77d1e7e8.Construct,
18535
+ id: builtins.str,
18536
+ alarm_name: builtins.str,
18537
+ ) -> None:
18538
+ """Type checking stubs"""
18539
+ pass
18540
+
18420
18541
  def _typecheckingstub__83bef261115d965bc301e33589e4c9b4a854da5d951fb8e2186758fba16c7f57(
18421
18542
  inspector: _TreeInspector_488e0dd5,
18422
18543
  ) -> None:
@@ -18865,6 +18986,14 @@ def _typecheckingstub__5add67d5fc6c551e627bade2623b719ee8c8de03ff6216bc3471bbe52
18865
18986
  """Type checking stubs"""
18866
18987
  pass
18867
18988
 
18989
+ def _typecheckingstub__f2a65575230b6782811b6cc1c4a4d1c6cc87f971ef5aa437442cc859d489ff82(
18990
+ scope: _constructs_77d1e7e8.Construct,
18991
+ id: builtins.str,
18992
+ dashboard_name: builtins.str,
18993
+ ) -> None:
18994
+ """Type checking stubs"""
18995
+ pass
18996
+
18868
18997
  def _typecheckingstub__ea2b521a69d5f78d24dc5aba9c387baa4fc450da2dc68bb876531861ee0929b2(
18869
18998
  inspector: _TreeInspector_488e0dd5,
18870
18999
  ) -> None:
@@ -18961,6 +19090,22 @@ def _typecheckingstub__324083d9d1c11bed8d2cf8d1d0cab6adbcb8194552cea34115b984457
18961
19090
  """Type checking stubs"""
18962
19091
  pass
18963
19092
 
19093
+ def _typecheckingstub__50e36a4aae3592a141f72295c65ce2cf6f01c0153925f610e589758abcc065e2(
19094
+ scope: _constructs_77d1e7e8.Construct,
19095
+ id: builtins.str,
19096
+ arn: builtins.str,
19097
+ ) -> None:
19098
+ """Type checking stubs"""
19099
+ pass
19100
+
19101
+ def _typecheckingstub__635a32b621fbf5f4f1c0d44f6749043dfa44bfb3ec257d8fe8a02439751244c1(
19102
+ scope: _constructs_77d1e7e8.Construct,
19103
+ id: builtins.str,
19104
+ metric_stream_name: builtins.str,
19105
+ ) -> None:
19106
+ """Type checking stubs"""
19107
+ pass
19108
+
18964
19109
  def _typecheckingstub__3d75d145801429f4f9f0daaae66adb695e6690f2bd7b00a62aedff30952bef4c(
18965
19110
  inspector: _TreeInspector_488e0dd5,
18966
19111
  ) -> None:
@@ -2284,7 +2284,11 @@ class Cache(
2284
2284
  # Control the build environment
2285
2285
  build_environment=codebuild.BuildEnvironment(
2286
2286
  compute_type=codebuild.ComputeType.LARGE,
2287
- privileged=True
2287
+ privileged=True,
2288
+ docker_server=codebuild.DockerServerOptions(
2289
+ compute_type=codebuild.DockerServerComputeType.SMALL,
2290
+ security_groups=[my_security_group]
2291
+ )
2288
2292
  ),
2289
2293
  timeout=Duration.minutes(90),
2290
2294
  file_system_locations=[
@@ -4434,7 +4438,11 @@ class ComputeType(enum.Enum):
4434
4438
  # Control the build environment
4435
4439
  build_environment=codebuild.BuildEnvironment(
4436
4440
  compute_type=codebuild.ComputeType.LARGE,
4437
- privileged=True
4441
+ privileged=True,
4442
+ docker_server=codebuild.DockerServerOptions(
4443
+ compute_type=codebuild.DockerServerComputeType.SMALL,
4444
+ security_groups=[my_security_group]
4445
+ )
4438
4446
  ),
4439
4447
  timeout=Duration.minutes(90),
4440
4448
  file_system_locations=[
@@ -4532,6 +4540,62 @@ class DockerServerComputeType(enum.Enum):
4532
4540
  '''Docker server compute type.
4533
4541
 
4534
4542
  :see: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DockerServer.html
4543
+ :exampleMetadata: infused
4544
+
4545
+ Example::
4546
+
4547
+ # vpc: ec2.Vpc
4548
+ # my_security_group: ec2.SecurityGroup
4549
+
4550
+ pipelines.CodeBuildStep("Synth",
4551
+ # ...standard ShellStep props...
4552
+ commands=[],
4553
+ env={},
4554
+
4555
+ # If you are using a CodeBuildStep explicitly, set the 'cdk.out' directory
4556
+ # to be the synth step's output.
4557
+ primary_output_directory="cdk.out",
4558
+
4559
+ # Control the name of the project
4560
+ project_name="MyProject",
4561
+
4562
+ # Control parts of the BuildSpec other than the regular 'build' and 'install' commands
4563
+ partial_build_spec=codebuild.BuildSpec.from_object({
4564
+ "version": "0.2"
4565
+ }),
4566
+
4567
+ # Control the build environment
4568
+ build_environment=codebuild.BuildEnvironment(
4569
+ compute_type=codebuild.ComputeType.LARGE,
4570
+ privileged=True,
4571
+ docker_server=codebuild.DockerServerOptions(
4572
+ compute_type=codebuild.DockerServerComputeType.SMALL,
4573
+ security_groups=[my_security_group]
4574
+ )
4575
+ ),
4576
+ timeout=Duration.minutes(90),
4577
+ file_system_locations=[
4578
+ codebuild.FileSystemLocation.efs(
4579
+ identifier="myidentifier2",
4580
+ location="myclodation.mydnsroot.com:/loc",
4581
+ mount_point="/media",
4582
+ mount_options="opts"
4583
+ )
4584
+ ],
4585
+
4586
+ # Control Elastic Network Interface creation
4587
+ vpc=vpc,
4588
+ subnet_selection=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS),
4589
+ security_groups=[my_security_group],
4590
+
4591
+ # Control caching
4592
+ cache=codebuild.Cache.bucket(s3.Bucket(self, "Cache")),
4593
+
4594
+ # Additional policy statements for the execution role
4595
+ role_policy_statements=[
4596
+ iam.PolicyStatement()
4597
+ ]
4598
+ )
4535
4599
  '''
4536
4600
 
4537
4601
  SMALL = "SMALL"
@@ -4563,22 +4627,61 @@ class DockerServerOptions:
4563
4627
  :param compute_type: The type of compute to use for the docker server. See the ``DockerServerComputeType`` enum for the possible values.
4564
4628
  :param security_groups: A list of maximum 5 security groups. Default: - no security group
4565
4629
 
4566
- :exampleMetadata: fixture=_generated
4630
+ :exampleMetadata: infused
4567
4631
 
4568
4632
  Example::
4569
4633
 
4570
- # The code below shows an example of how to instantiate this type.
4571
- # The values are placeholders you should change.
4572
- from aws_cdk import aws_codebuild as codebuild
4573
- from aws_cdk import aws_ec2 as ec2
4634
+ # vpc: ec2.Vpc
4635
+ # my_security_group: ec2.SecurityGroup
4574
4636
 
4575
- # security_group: ec2.SecurityGroup
4637
+ pipelines.CodeBuildStep("Synth",
4638
+ # ...standard ShellStep props...
4639
+ commands=[],
4640
+ env={},
4576
4641
 
4577
- docker_server_options = codebuild.DockerServerOptions(
4578
- compute_type=codebuild.DockerServerComputeType.SMALL,
4642
+ # If you are using a CodeBuildStep explicitly, set the 'cdk.out' directory
4643
+ # to be the synth step's output.
4644
+ primary_output_directory="cdk.out",
4579
4645
 
4580
- # the properties below are optional
4581
- security_groups=[security_group]
4646
+ # Control the name of the project
4647
+ project_name="MyProject",
4648
+
4649
+ # Control parts of the BuildSpec other than the regular 'build' and 'install' commands
4650
+ partial_build_spec=codebuild.BuildSpec.from_object({
4651
+ "version": "0.2"
4652
+ }),
4653
+
4654
+ # Control the build environment
4655
+ build_environment=codebuild.BuildEnvironment(
4656
+ compute_type=codebuild.ComputeType.LARGE,
4657
+ privileged=True,
4658
+ docker_server=codebuild.DockerServerOptions(
4659
+ compute_type=codebuild.DockerServerComputeType.SMALL,
4660
+ security_groups=[my_security_group]
4661
+ )
4662
+ ),
4663
+ timeout=Duration.minutes(90),
4664
+ file_system_locations=[
4665
+ codebuild.FileSystemLocation.efs(
4666
+ identifier="myidentifier2",
4667
+ location="myclodation.mydnsroot.com:/loc",
4668
+ mount_point="/media",
4669
+ mount_options="opts"
4670
+ )
4671
+ ],
4672
+
4673
+ # Control Elastic Network Interface creation
4674
+ vpc=vpc,
4675
+ subnet_selection=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS),
4676
+ security_groups=[my_security_group],
4677
+
4678
+ # Control caching
4679
+ cache=codebuild.Cache.bucket(s3.Bucket(self, "Cache")),
4680
+
4681
+ # Additional policy statements for the execution role
4682
+ role_policy_statements=[
4683
+ iam.PolicyStatement()
4684
+ ]
4582
4685
  )
4583
4686
  '''
4584
4687
  if __debug__:
@@ -6251,6 +6251,27 @@ class CfnApplication(
6251
6251
 
6252
6252
  jsii.create(self.__class__, self, [scope, id, props])
6253
6253
 
6254
+ @jsii.member(jsii_name="fromApplicationName")
6255
+ @builtins.classmethod
6256
+ def from_application_name(
6257
+ cls,
6258
+ scope: _constructs_77d1e7e8.Construct,
6259
+ id: builtins.str,
6260
+ application_name: builtins.str,
6261
+ ) -> IApplicationRef:
6262
+ '''Creates a new IApplicationRef from a applicationName.
6263
+
6264
+ :param scope: -
6265
+ :param id: -
6266
+ :param application_name: -
6267
+ '''
6268
+ if __debug__:
6269
+ type_hints = typing.get_type_hints(_typecheckingstub__994304faea12eda1f4933ffaf6eb6e8dd9709b690e69aaa2758aac884c2b1f42)
6270
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
6271
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
6272
+ check_type(argname="argument application_name", value=application_name, expected_type=type_hints["application_name"])
6273
+ return typing.cast(IApplicationRef, jsii.sinvoke(cls, "fromApplicationName", [scope, id, application_name]))
6274
+
6254
6275
  @jsii.member(jsii_name="inspect")
6255
6276
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
6256
6277
  '''Examines the CloudFormation resource and discloses attributes.
@@ -11304,6 +11325,14 @@ def _typecheckingstub__cdb5a43a5eee290cb73c7a01531e1ffdf06d171c94caaa945bee8063b
11304
11325
  """Type checking stubs"""
11305
11326
  pass
11306
11327
 
11328
+ def _typecheckingstub__994304faea12eda1f4933ffaf6eb6e8dd9709b690e69aaa2758aac884c2b1f42(
11329
+ scope: _constructs_77d1e7e8.Construct,
11330
+ id: builtins.str,
11331
+ application_name: builtins.str,
11332
+ ) -> None:
11333
+ """Type checking stubs"""
11334
+ pass
11335
+
11307
11336
  def _typecheckingstub__472dad38d3229c543cd45d013c4792382a9a9ff72b6a1c296cd46ddee9866459(
11308
11337
  inspector: _TreeInspector_488e0dd5,
11309
11338
  ) -> None:
@@ -751,6 +751,48 @@ class CfnProfilingGroup(
751
751
 
752
752
  jsii.create(self.__class__, self, [scope, id, props])
753
753
 
754
+ @jsii.member(jsii_name="fromProfilingGroupArn")
755
+ @builtins.classmethod
756
+ def from_profiling_group_arn(
757
+ cls,
758
+ scope: _constructs_77d1e7e8.Construct,
759
+ id: builtins.str,
760
+ arn: builtins.str,
761
+ ) -> IProfilingGroupRef:
762
+ '''Creates a new IProfilingGroupRef from an ARN.
763
+
764
+ :param scope: -
765
+ :param id: -
766
+ :param arn: -
767
+ '''
768
+ if __debug__:
769
+ type_hints = typing.get_type_hints(_typecheckingstub__6ac4260087f147037940fcb12c380a6fc4400820d9cf220da02e1ddbef07d729)
770
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
771
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
772
+ check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
773
+ return typing.cast(IProfilingGroupRef, jsii.sinvoke(cls, "fromProfilingGroupArn", [scope, id, arn]))
774
+
775
+ @jsii.member(jsii_name="fromProfilingGroupName")
776
+ @builtins.classmethod
777
+ def from_profiling_group_name(
778
+ cls,
779
+ scope: _constructs_77d1e7e8.Construct,
780
+ id: builtins.str,
781
+ profiling_group_name: builtins.str,
782
+ ) -> IProfilingGroupRef:
783
+ '''Creates a new IProfilingGroupRef from a profilingGroupName.
784
+
785
+ :param scope: -
786
+ :param id: -
787
+ :param profiling_group_name: -
788
+ '''
789
+ if __debug__:
790
+ type_hints = typing.get_type_hints(_typecheckingstub__552edc8b399fb365e317214fcadc79fac39ae04b205363192ae2b40558614940)
791
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
792
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
793
+ check_type(argname="argument profiling_group_name", value=profiling_group_name, expected_type=type_hints["profiling_group_name"])
794
+ return typing.cast(IProfilingGroupRef, jsii.sinvoke(cls, "fromProfilingGroupName", [scope, id, profiling_group_name]))
795
+
754
796
  @jsii.member(jsii_name="inspect")
755
797
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
756
798
  '''Examines the CloudFormation resource and discloses attributes.
@@ -1108,6 +1150,22 @@ def _typecheckingstub__c9aa0abb6bab44bc6d99509172735702ee5d874bf3f43241d8a04bc9b
1108
1150
  """Type checking stubs"""
1109
1151
  pass
1110
1152
 
1153
+ def _typecheckingstub__6ac4260087f147037940fcb12c380a6fc4400820d9cf220da02e1ddbef07d729(
1154
+ scope: _constructs_77d1e7e8.Construct,
1155
+ id: builtins.str,
1156
+ arn: builtins.str,
1157
+ ) -> None:
1158
+ """Type checking stubs"""
1159
+ pass
1160
+
1161
+ def _typecheckingstub__552edc8b399fb365e317214fcadc79fac39ae04b205363192ae2b40558614940(
1162
+ scope: _constructs_77d1e7e8.Construct,
1163
+ id: builtins.str,
1164
+ profiling_group_name: builtins.str,
1165
+ ) -> None:
1166
+ """Type checking stubs"""
1167
+ pass
1168
+
1111
1169
  def _typecheckingstub__24a556687187f3fa5c9bf014559a3a117b65e51abfce2431cb066434dd4eaa44(
1112
1170
  inspector: _TreeInspector_488e0dd5,
1113
1171
  ) -> None:
@@ -8586,6 +8586,27 @@ class CfnPipeline(
8586
8586
 
8587
8587
  jsii.create(self.__class__, self, [scope, id, props])
8588
8588
 
8589
+ @jsii.member(jsii_name="fromPipelineName")
8590
+ @builtins.classmethod
8591
+ def from_pipeline_name(
8592
+ cls,
8593
+ scope: _constructs_77d1e7e8.Construct,
8594
+ id: builtins.str,
8595
+ pipeline_name: builtins.str,
8596
+ ) -> IPipelineRef:
8597
+ '''Creates a new IPipelineRef from a pipelineName.
8598
+
8599
+ :param scope: -
8600
+ :param id: -
8601
+ :param pipeline_name: -
8602
+ '''
8603
+ if __debug__:
8604
+ type_hints = typing.get_type_hints(_typecheckingstub__8b7e4f900fbf2e97e88978589afa9a0082e5bf79ff031c9c02abbf943633dc8c)
8605
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
8606
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
8607
+ check_type(argname="argument pipeline_name", value=pipeline_name, expected_type=type_hints["pipeline_name"])
8608
+ return typing.cast(IPipelineRef, jsii.sinvoke(cls, "fromPipelineName", [scope, id, pipeline_name]))
8609
+
8589
8610
  @jsii.member(jsii_name="inspect")
8590
8611
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
8591
8612
  '''Examines the CloudFormation resource and discloses attributes.
@@ -13094,6 +13115,14 @@ def _typecheckingstub__43ae22b404f50a75462f3d5423718be3ca300d4e4e15354489d856039
13094
13115
  """Type checking stubs"""
13095
13116
  pass
13096
13117
 
13118
+ def _typecheckingstub__8b7e4f900fbf2e97e88978589afa9a0082e5bf79ff031c9c02abbf943633dc8c(
13119
+ scope: _constructs_77d1e7e8.Construct,
13120
+ id: builtins.str,
13121
+ pipeline_name: builtins.str,
13122
+ ) -> None:
13123
+ """Type checking stubs"""
13124
+ pass
13125
+
13097
13126
  def _typecheckingstub__3a8445e803e7c15623ffb8dcc675aa06dfc425ea5e189039b3f014c5d95a6671(
13098
13127
  inspector: _TreeInspector_488e0dd5,
13099
13128
  ) -> None:
@@ -16268,6 +16268,27 @@ class CfnIdentityPool(
16268
16268
 
16269
16269
  jsii.create(self.__class__, self, [scope, id, props])
16270
16270
 
16271
+ @jsii.member(jsii_name="fromIdentityPoolId")
16272
+ @builtins.classmethod
16273
+ def from_identity_pool_id(
16274
+ cls,
16275
+ scope: _constructs_77d1e7e8.Construct,
16276
+ id: builtins.str,
16277
+ identity_pool_id: builtins.str,
16278
+ ) -> IIdentityPoolRef:
16279
+ '''Creates a new IIdentityPoolRef from a identityPoolId.
16280
+
16281
+ :param scope: -
16282
+ :param id: -
16283
+ :param identity_pool_id: -
16284
+ '''
16285
+ if __debug__:
16286
+ type_hints = typing.get_type_hints(_typecheckingstub__23c766eb59af70f92541dfd9c9cae67b99255f21efd59868b8feff44354f4e77)
16287
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
16288
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
16289
+ check_type(argname="argument identity_pool_id", value=identity_pool_id, expected_type=type_hints["identity_pool_id"])
16290
+ return typing.cast(IIdentityPoolRef, jsii.sinvoke(cls, "fromIdentityPoolId", [scope, id, identity_pool_id]))
16291
+
16271
16292
  @jsii.member(jsii_name="inspect")
16272
16293
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
16273
16294
  '''Examines the CloudFormation resource and discloses attributes.
@@ -18478,6 +18499,48 @@ class CfnUserPool(
18478
18499
 
18479
18500
  jsii.create(self.__class__, self, [scope, id, props])
18480
18501
 
18502
+ @jsii.member(jsii_name="fromUserPoolArn")
18503
+ @builtins.classmethod
18504
+ def from_user_pool_arn(
18505
+ cls,
18506
+ scope: _constructs_77d1e7e8.Construct,
18507
+ id: builtins.str,
18508
+ arn: builtins.str,
18509
+ ) -> IUserPoolRef:
18510
+ '''Creates a new IUserPoolRef from an ARN.
18511
+
18512
+ :param scope: -
18513
+ :param id: -
18514
+ :param arn: -
18515
+ '''
18516
+ if __debug__:
18517
+ type_hints = typing.get_type_hints(_typecheckingstub__50cb94accc8d60746f0970af6f3f1428a04180d1d6c471b7ebb0c7eeaf6f5e11)
18518
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
18519
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
18520
+ check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
18521
+ return typing.cast(IUserPoolRef, jsii.sinvoke(cls, "fromUserPoolArn", [scope, id, arn]))
18522
+
18523
+ @jsii.member(jsii_name="fromUserPoolId")
18524
+ @builtins.classmethod
18525
+ def from_user_pool_id(
18526
+ cls,
18527
+ scope: _constructs_77d1e7e8.Construct,
18528
+ id: builtins.str,
18529
+ user_pool_id: builtins.str,
18530
+ ) -> IUserPoolRef:
18531
+ '''Creates a new IUserPoolRef from a userPoolId.
18532
+
18533
+ :param scope: -
18534
+ :param id: -
18535
+ :param user_pool_id: -
18536
+ '''
18537
+ if __debug__:
18538
+ type_hints = typing.get_type_hints(_typecheckingstub__77bca4d59ea1b80508c0fd60c8f34e3c4dff94c3e5dada90fee904207040ff1a)
18539
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
18540
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
18541
+ check_type(argname="argument user_pool_id", value=user_pool_id, expected_type=type_hints["user_pool_id"])
18542
+ return typing.cast(IUserPoolRef, jsii.sinvoke(cls, "fromUserPoolId", [scope, id, user_pool_id]))
18543
+
18481
18544
  @jsii.member(jsii_name="inspect")
18482
18545
  def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
18483
18546
  '''Examines the CloudFormation resource and discloses attributes.
@@ -27029,6 +27092,14 @@ def _typecheckingstub__d5156c08d9bb3b0ceca6f4ec485d84f9775d7be40128a6614e1b9cbf0
27029
27092
  """Type checking stubs"""
27030
27093
  pass
27031
27094
 
27095
+ def _typecheckingstub__23c766eb59af70f92541dfd9c9cae67b99255f21efd59868b8feff44354f4e77(
27096
+ scope: _constructs_77d1e7e8.Construct,
27097
+ id: builtins.str,
27098
+ identity_pool_id: builtins.str,
27099
+ ) -> None:
27100
+ """Type checking stubs"""
27101
+ pass
27102
+
27032
27103
  def _typecheckingstub__d0046422699f4c95c1d9df0a173b8caf8590dc3fcb3ada38e03f96cba1a359bc(
27033
27104
  inspector: _TreeInspector_488e0dd5,
27034
27105
  ) -> None:
@@ -27431,6 +27502,22 @@ def _typecheckingstub__32d20f28e2758f9a461380e2ed5d06233baf0f45541047ba837f26ebc
27431
27502
  """Type checking stubs"""
27432
27503
  pass
27433
27504
 
27505
+ def _typecheckingstub__50cb94accc8d60746f0970af6f3f1428a04180d1d6c471b7ebb0c7eeaf6f5e11(
27506
+ scope: _constructs_77d1e7e8.Construct,
27507
+ id: builtins.str,
27508
+ arn: builtins.str,
27509
+ ) -> None:
27510
+ """Type checking stubs"""
27511
+ pass
27512
+
27513
+ def _typecheckingstub__77bca4d59ea1b80508c0fd60c8f34e3c4dff94c3e5dada90fee904207040ff1a(
27514
+ scope: _constructs_77d1e7e8.Construct,
27515
+ id: builtins.str,
27516
+ user_pool_id: builtins.str,
27517
+ ) -> None:
27518
+ """Type checking stubs"""
27519
+ pass
27520
+
27434
27521
  def _typecheckingstub__190e7831a65154362cd300369d61a522f7add5d60374fc990db7dd8ecb232388(
27435
27522
  inspector: _TreeInspector_488e0dd5,
27436
27523
  ) -> None: