aws-cdk-lib 2.220.0__py3-none-any.whl → 2.221.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 (288) hide show
  1. aws_cdk/__init__.py +21 -18
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.220.0.jsii.tgz → aws-cdk-lib@2.221.0.jsii.tgz} +0 -0
  4. aws_cdk/alexa_ask/__init__.py +3 -0
  5. aws_cdk/aws_accessanalyzer/__init__.py +3 -0
  6. aws_cdk/aws_acmpca/__init__.py +4 -1
  7. aws_cdk/aws_aiops/__init__.py +3 -0
  8. aws_cdk/aws_amazonmq/__init__.py +3 -29
  9. aws_cdk/aws_amplify/__init__.py +3 -0
  10. aws_cdk/aws_amplifyuibuilder/__init__.py +3 -0
  11. aws_cdk/aws_apigateway/__init__.py +3 -0
  12. aws_cdk/aws_apigatewayv2/__init__.py +3 -0
  13. aws_cdk/aws_appconfig/__init__.py +3 -29
  14. aws_cdk/aws_appflow/__init__.py +3 -0
  15. aws_cdk/aws_appintegrations/__init__.py +3 -0
  16. aws_cdk/aws_applicationautoscaling/__init__.py +3 -0
  17. aws_cdk/aws_applicationinsights/__init__.py +3 -0
  18. aws_cdk/aws_applicationsignals/__init__.py +4 -1
  19. aws_cdk/aws_appmesh/__init__.py +3 -0
  20. aws_cdk/aws_apprunner/__init__.py +3 -0
  21. aws_cdk/aws_appstream/__init__.py +3 -0
  22. aws_cdk/aws_appsync/__init__.py +3 -0
  23. aws_cdk/aws_apptest/__init__.py +3 -0
  24. aws_cdk/aws_aps/__init__.py +1168 -83
  25. aws_cdk/aws_arcregionswitch/__init__.py +3 -0
  26. aws_cdk/aws_arczonalshift/__init__.py +3 -0
  27. aws_cdk/aws_athena/__init__.py +3 -0
  28. aws_cdk/aws_auditmanager/__init__.py +3 -0
  29. aws_cdk/aws_autoscaling/__init__.py +3 -0
  30. aws_cdk/aws_autoscaling_common/__init__.py +3 -0
  31. aws_cdk/aws_autoscalingplans/__init__.py +3 -0
  32. aws_cdk/aws_b2bi/__init__.py +3 -0
  33. aws_cdk/aws_backup/__init__.py +3 -29
  34. aws_cdk/aws_backupgateway/__init__.py +3 -0
  35. aws_cdk/aws_batch/__init__.py +3 -0
  36. aws_cdk/aws_bcmdataexports/__init__.py +3 -0
  37. aws_cdk/aws_bedrock/__init__.py +9 -29
  38. aws_cdk/aws_bedrockagentcore/__init__.py +782 -169
  39. aws_cdk/aws_billingconductor/__init__.py +3 -0
  40. aws_cdk/aws_budgets/__init__.py +3 -0
  41. aws_cdk/aws_cassandra/__init__.py +3 -0
  42. aws_cdk/aws_ce/__init__.py +3 -0
  43. aws_cdk/aws_certificatemanager/__init__.py +3 -0
  44. aws_cdk/aws_chatbot/__init__.py +3 -0
  45. aws_cdk/aws_cleanrooms/__init__.py +3 -0
  46. aws_cdk/aws_cleanroomsml/__init__.py +3 -0
  47. aws_cdk/aws_cloud9/__init__.py +3 -0
  48. aws_cdk/aws_cloudformation/__init__.py +3 -0
  49. aws_cdk/aws_cloudfront/__init__.py +69 -3
  50. aws_cdk/aws_cloudtrail/__init__.py +3 -0
  51. aws_cdk/aws_cloudwatch/__init__.py +3 -0
  52. aws_cdk/aws_codeartifact/__init__.py +3 -0
  53. aws_cdk/aws_codebuild/__init__.py +3 -0
  54. aws_cdk/aws_codecommit/__init__.py +3 -0
  55. aws_cdk/aws_codeconnections/__init__.py +3 -0
  56. aws_cdk/aws_codedeploy/__init__.py +3 -0
  57. aws_cdk/aws_codeguruprofiler/__init__.py +3 -0
  58. aws_cdk/aws_codegurureviewer/__init__.py +3 -0
  59. aws_cdk/aws_codepipeline/__init__.py +3 -0
  60. aws_cdk/aws_codepipeline_actions/__init__.py +3 -0
  61. aws_cdk/aws_codestar/__init__.py +3 -0
  62. aws_cdk/aws_codestarconnections/__init__.py +3 -0
  63. aws_cdk/aws_codestarnotifications/__init__.py +3 -0
  64. aws_cdk/aws_cognito/__init__.py +3 -0
  65. aws_cdk/aws_cognito_identitypool/__init__.py +3 -0
  66. aws_cdk/aws_comprehend/__init__.py +3 -0
  67. aws_cdk/aws_config/__init__.py +3 -0
  68. aws_cdk/aws_connect/__init__.py +1232 -2
  69. aws_cdk/aws_connectcampaigns/__init__.py +3 -0
  70. aws_cdk/aws_connectcampaignsv2/__init__.py +3 -0
  71. aws_cdk/aws_controltower/__init__.py +3 -0
  72. aws_cdk/aws_cur/__init__.py +3 -0
  73. aws_cdk/aws_customerprofiles/__init__.py +3 -29
  74. aws_cdk/aws_databrew/__init__.py +3 -0
  75. aws_cdk/aws_datapipeline/__init__.py +3 -0
  76. aws_cdk/aws_datasync/__init__.py +3 -0
  77. aws_cdk/aws_datazone/__init__.py +17 -15
  78. aws_cdk/aws_dax/__init__.py +3 -0
  79. aws_cdk/aws_deadline/__init__.py +3 -0
  80. aws_cdk/aws_detective/__init__.py +3 -0
  81. aws_cdk/aws_devicefarm/__init__.py +3 -0
  82. aws_cdk/aws_devopsguru/__init__.py +3 -0
  83. aws_cdk/aws_directoryservice/__init__.py +3 -0
  84. aws_cdk/aws_dlm/__init__.py +3 -0
  85. aws_cdk/aws_dms/__init__.py +3 -0
  86. aws_cdk/aws_docdb/__init__.py +14 -3
  87. aws_cdk/aws_docdbelastic/__init__.py +3 -0
  88. aws_cdk/aws_dsql/__init__.py +3 -0
  89. aws_cdk/aws_dynamodb/__init__.py +3 -0
  90. aws_cdk/aws_ec2/__init__.py +106 -40
  91. aws_cdk/aws_ecr/__init__.py +156 -33
  92. aws_cdk/aws_ecs/__init__.py +87 -48
  93. aws_cdk/aws_efs/__init__.py +3 -0
  94. aws_cdk/aws_eks/__init__.py +3 -58
  95. aws_cdk/aws_elasticache/__init__.py +3 -0
  96. aws_cdk/aws_elasticbeanstalk/__init__.py +3 -0
  97. aws_cdk/aws_elasticloadbalancing/__init__.py +3 -0
  98. aws_cdk/aws_elasticloadbalancingv2/__init__.py +445 -36
  99. aws_cdk/aws_elasticsearch/__init__.py +3 -0
  100. aws_cdk/aws_emr/__init__.py +3 -0
  101. aws_cdk/aws_emrcontainers/__init__.py +3 -0
  102. aws_cdk/aws_emrserverless/__init__.py +12 -11
  103. aws_cdk/aws_entityresolution/__init__.py +3 -0
  104. aws_cdk/aws_events/__init__.py +73 -29
  105. aws_cdk/aws_events_targets/__init__.py +3 -0
  106. aws_cdk/aws_eventschemas/__init__.py +3 -0
  107. aws_cdk/aws_evidently/__init__.py +3 -0
  108. aws_cdk/aws_evs/__init__.py +3 -0
  109. aws_cdk/aws_finspace/__init__.py +3 -0
  110. aws_cdk/aws_fis/__init__.py +3 -0
  111. aws_cdk/aws_fms/__init__.py +3 -0
  112. aws_cdk/aws_forecast/__init__.py +3 -0
  113. aws_cdk/aws_frauddetector/__init__.py +3 -0
  114. aws_cdk/aws_fsx/__init__.py +3 -0
  115. aws_cdk/aws_gamelift/__init__.py +3 -0
  116. aws_cdk/aws_gameliftstreams/__init__.py +8 -5
  117. aws_cdk/aws_globalaccelerator/__init__.py +3 -0
  118. aws_cdk/aws_glue/__init__.py +11 -80
  119. aws_cdk/aws_grafana/__init__.py +3 -0
  120. aws_cdk/aws_greengrass/__init__.py +3 -0
  121. aws_cdk/aws_greengrassv2/__init__.py +3 -0
  122. aws_cdk/aws_groundstation/__init__.py +3 -0
  123. aws_cdk/aws_guardduty/__init__.py +3 -0
  124. aws_cdk/aws_healthimaging/__init__.py +3 -0
  125. aws_cdk/aws_healthlake/__init__.py +3 -0
  126. aws_cdk/aws_iam/__init__.py +30 -32
  127. aws_cdk/aws_identitystore/__init__.py +3 -0
  128. aws_cdk/aws_imagebuilder/__init__.py +499 -0
  129. aws_cdk/aws_inspector/__init__.py +3 -0
  130. aws_cdk/aws_inspectorv2/__init__.py +3 -0
  131. aws_cdk/aws_internetmonitor/__init__.py +3 -0
  132. aws_cdk/aws_invoicing/__init__.py +3 -0
  133. aws_cdk/aws_iot/__init__.py +3 -0
  134. aws_cdk/aws_iotanalytics/__init__.py +3 -0
  135. aws_cdk/aws_iotcoredeviceadvisor/__init__.py +3 -0
  136. aws_cdk/aws_iotevents/__init__.py +3 -0
  137. aws_cdk/aws_iotfleethub/__init__.py +3 -0
  138. aws_cdk/aws_iotfleetwise/__init__.py +3 -0
  139. aws_cdk/aws_iotsitewise/__init__.py +3 -0
  140. aws_cdk/aws_iotthingsgraph/__init__.py +3 -0
  141. aws_cdk/aws_iottwinmaker/__init__.py +3 -87
  142. aws_cdk/aws_iotwireless/__init__.py +61 -0
  143. aws_cdk/aws_ivs/__init__.py +3 -0
  144. aws_cdk/aws_ivschat/__init__.py +3 -0
  145. aws_cdk/aws_kafkaconnect/__init__.py +3 -0
  146. aws_cdk/aws_kendra/__init__.py +3 -58
  147. aws_cdk/aws_kendraranking/__init__.py +3 -0
  148. aws_cdk/aws_kinesis/__init__.py +3 -0
  149. aws_cdk/aws_kinesisanalytics/__init__.py +3 -0
  150. aws_cdk/aws_kinesisanalyticsv2/__init__.py +3 -0
  151. aws_cdk/aws_kinesisfirehose/__init__.py +1709 -10
  152. aws_cdk/aws_kinesisvideo/__init__.py +3 -29
  153. aws_cdk/aws_kms/__init__.py +3 -0
  154. aws_cdk/aws_lakeformation/__init__.py +3 -0
  155. aws_cdk/aws_lambda/__init__.py +14 -7
  156. aws_cdk/aws_lambda_nodejs/__init__.py +3 -0
  157. aws_cdk/aws_launchwizard/__init__.py +3 -0
  158. aws_cdk/aws_lex/__init__.py +3 -29
  159. aws_cdk/aws_licensemanager/__init__.py +3 -0
  160. aws_cdk/aws_lightsail/__init__.py +3 -0
  161. aws_cdk/aws_location/__init__.py +3 -0
  162. aws_cdk/aws_logs/__init__.py +226 -9
  163. aws_cdk/aws_lookoutequipment/__init__.py +3 -29
  164. aws_cdk/aws_lookoutmetrics/__init__.py +3 -0
  165. aws_cdk/aws_lookoutvision/__init__.py +3 -0
  166. aws_cdk/aws_m2/__init__.py +3 -0
  167. aws_cdk/aws_macie/__init__.py +3 -0
  168. aws_cdk/aws_managedblockchain/__init__.py +3 -0
  169. aws_cdk/aws_mediaconnect/__init__.py +3 -0
  170. aws_cdk/aws_mediaconvert/__init__.py +3 -0
  171. aws_cdk/aws_medialive/__init__.py +171 -33
  172. aws_cdk/aws_mediapackage/__init__.py +3 -0
  173. aws_cdk/aws_mediapackagev2/__init__.py +3 -0
  174. aws_cdk/aws_mediastore/__init__.py +3 -0
  175. aws_cdk/aws_mediatailor/__init__.py +3 -58
  176. aws_cdk/aws_memorydb/__init__.py +3 -0
  177. aws_cdk/aws_mpa/__init__.py +3 -0
  178. aws_cdk/aws_msk/__init__.py +3 -0
  179. aws_cdk/aws_mwaa/__init__.py +3 -0
  180. aws_cdk/aws_neptune/__init__.py +55 -0
  181. aws_cdk/aws_neptunegraph/__init__.py +3 -0
  182. aws_cdk/aws_networkfirewall/__init__.py +3 -0
  183. aws_cdk/aws_networkmanager/__init__.py +3 -0
  184. aws_cdk/aws_nimblestudio/__init__.py +3 -0
  185. aws_cdk/aws_notifications/__init__.py +3 -0
  186. aws_cdk/aws_notificationscontacts/__init__.py +3 -0
  187. aws_cdk/aws_oam/__init__.py +3 -0
  188. aws_cdk/aws_observabilityadmin/__init__.py +171 -137
  189. aws_cdk/aws_odb/__init__.py +4 -1
  190. aws_cdk/aws_omics/__init__.py +3 -0
  191. aws_cdk/aws_opensearchserverless/__init__.py +3 -0
  192. aws_cdk/aws_opensearchservice/__init__.py +3 -0
  193. aws_cdk/aws_opsworks/__init__.py +3 -0
  194. aws_cdk/aws_opsworkscm/__init__.py +3 -0
  195. aws_cdk/aws_organizations/__init__.py +3 -116
  196. aws_cdk/aws_osis/__init__.py +157 -0
  197. aws_cdk/aws_panorama/__init__.py +3 -0
  198. aws_cdk/aws_paymentcryptography/__init__.py +3 -0
  199. aws_cdk/aws_pcaconnectorad/__init__.py +3 -0
  200. aws_cdk/aws_pcaconnectorscep/__init__.py +3 -0
  201. aws_cdk/aws_pcs/__init__.py +3 -0
  202. aws_cdk/aws_personalize/__init__.py +3 -0
  203. aws_cdk/aws_pinpoint/__init__.py +3 -58
  204. aws_cdk/aws_pinpointemail/__init__.py +3 -0
  205. aws_cdk/aws_pipes/__init__.py +3 -0
  206. aws_cdk/aws_proton/__init__.py +3 -0
  207. aws_cdk/aws_qbusiness/__init__.py +3 -174
  208. aws_cdk/aws_qldb/__init__.py +3 -29
  209. aws_cdk/aws_quicksight/__init__.py +418 -411
  210. aws_cdk/aws_ram/__init__.py +3 -0
  211. aws_cdk/aws_rbin/__init__.py +3 -0
  212. aws_cdk/aws_rds/__init__.py +42 -19
  213. aws_cdk/aws_redshift/__init__.py +3 -0
  214. aws_cdk/aws_redshiftserverless/__init__.py +3 -0
  215. aws_cdk/aws_refactorspaces/__init__.py +3 -0
  216. aws_cdk/aws_rekognition/__init__.py +3 -29
  217. aws_cdk/aws_resiliencehub/__init__.py +3 -0
  218. aws_cdk/aws_resourceexplorer2/__init__.py +3 -0
  219. aws_cdk/aws_resourcegroups/__init__.py +3 -0
  220. aws_cdk/aws_robomaker/__init__.py +3 -0
  221. aws_cdk/aws_rolesanywhere/__init__.py +3 -0
  222. aws_cdk/aws_route53/__init__.py +18 -18
  223. aws_cdk/aws_route53_targets/__init__.py +3 -0
  224. aws_cdk/aws_route53profiles/__init__.py +3 -0
  225. aws_cdk/aws_route53recoverycontrol/__init__.py +3 -0
  226. aws_cdk/aws_route53recoveryreadiness/__init__.py +3 -0
  227. aws_cdk/aws_route53resolver/__init__.py +11 -4
  228. aws_cdk/aws_rum/__init__.py +3 -0
  229. aws_cdk/aws_s3/__init__.py +51 -41
  230. aws_cdk/aws_s3_deployment/__init__.py +3 -0
  231. aws_cdk/aws_s3express/__init__.py +3 -0
  232. aws_cdk/aws_s3objectlambda/__init__.py +3 -0
  233. aws_cdk/aws_s3outposts/__init__.py +3 -0
  234. aws_cdk/aws_s3tables/__init__.py +3 -0
  235. aws_cdk/aws_sagemaker/__init__.py +166 -87
  236. aws_cdk/aws_sam/__init__.py +3 -0
  237. aws_cdk/aws_scheduler/__init__.py +3 -29
  238. aws_cdk/aws_sdb/__init__.py +3 -0
  239. aws_cdk/aws_secretsmanager/__init__.py +3 -0
  240. aws_cdk/aws_securityhub/__init__.py +3 -0
  241. aws_cdk/aws_securitylake/__init__.py +3 -0
  242. aws_cdk/aws_servicecatalog/__init__.py +136 -124
  243. aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -0
  244. aws_cdk/aws_servicediscovery/__init__.py +3 -0
  245. aws_cdk/aws_ses/__init__.py +3 -0
  246. aws_cdk/aws_shield/__init__.py +3 -0
  247. aws_cdk/aws_signer/__init__.py +3 -0
  248. aws_cdk/aws_simspaceweaver/__init__.py +3 -0
  249. aws_cdk/aws_smsvoice/__init__.py +3 -29
  250. aws_cdk/aws_sns/__init__.py +3 -0
  251. aws_cdk/aws_sqs/__init__.py +3 -0
  252. aws_cdk/aws_ssm/__init__.py +10 -3
  253. aws_cdk/aws_ssmcontacts/__init__.py +3 -0
  254. aws_cdk/aws_ssmguiconnect/__init__.py +3 -0
  255. aws_cdk/aws_ssmincidents/__init__.py +3 -0
  256. aws_cdk/aws_ssmquicksetup/__init__.py +467 -0
  257. aws_cdk/aws_sso/__init__.py +3 -0
  258. aws_cdk/aws_stepfunctions/__init__.py +23 -19
  259. aws_cdk/aws_stepfunctions_tasks/__init__.py +6 -3
  260. aws_cdk/aws_supportapp/__init__.py +3 -0
  261. aws_cdk/aws_synthetics/__init__.py +59 -26
  262. aws_cdk/aws_systemsmanagersap/__init__.py +3 -0
  263. aws_cdk/aws_timestream/__init__.py +3 -29
  264. aws_cdk/aws_transfer/__init__.py +20 -34
  265. aws_cdk/aws_verifiedpermissions/__init__.py +3 -0
  266. aws_cdk/aws_voiceid/__init__.py +3 -0
  267. aws_cdk/aws_vpclattice/__init__.py +7 -4
  268. aws_cdk/aws_waf/__init__.py +3 -0
  269. aws_cdk/aws_wafregional/__init__.py +3 -0
  270. aws_cdk/aws_wafv2/__init__.py +3 -0
  271. aws_cdk/aws_wisdom/__init__.py +3 -116
  272. aws_cdk/aws_workspaces/__init__.py +3 -0
  273. aws_cdk/aws_workspacesinstances/__init__.py +3 -0
  274. aws_cdk/aws_workspacesthinclient/__init__.py +3 -0
  275. aws_cdk/aws_workspacesweb/__init__.py +3 -0
  276. aws_cdk/aws_xray/__init__.py +3 -0
  277. aws_cdk/cloud_assembly_schema/__init__.py +3 -0
  278. aws_cdk/cx_api/__init__.py +34 -0
  279. aws_cdk/pipelines/__init__.py +3 -0
  280. aws_cdk/region_info/__init__.py +3 -0
  281. aws_cdk/triggers/__init__.py +3 -0
  282. {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/METADATA +2 -2
  283. aws_cdk_lib-2.221.0.dist-info/RECORD +313 -0
  284. aws_cdk_lib-2.220.0.dist-info/RECORD +0 -313
  285. {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/LICENSE +0 -0
  286. {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/NOTICE +0 -0
  287. {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/WHEEL +0 -0
  288. {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/top_level.txt +0 -0
@@ -128,12 +128,51 @@ By using these methods, you can grant specific operational permissions on the EC
128
128
 
129
129
  ### Image tag immutability
130
130
 
131
- You can set tag immutability on images in our repository using the `imageTagMutability` construct prop.
131
+ You can set tag immutability on images in your repository using the `imageTagMutability` construct prop.
132
132
 
133
133
  ```python
134
134
  ecr.Repository(self, "Repo", image_tag_mutability=ecr.TagMutability.IMMUTABLE)
135
135
  ```
136
136
 
137
+ #### Image tag mutability with exclusion filters
138
+
139
+ ECR supports more granular control over image tag mutability by allowing you to specify exclusion filters. This enables you to make your repository immutable while allowing specific tag patterns to remain mutable (or vice versa).
140
+
141
+ There are two new mutability options that work with exclusion filters:
142
+
143
+ * `MUTABLE_WITH_EXCLUSION`: Tags are mutable by default, except those matching the exclusion filters
144
+ * `IMMUTABLE_WITH_EXCLUSION`: Tags are immutable by default, except those matching the exclusion filters
145
+
146
+ Use `ImageTagMutabilityExclusionFilter.wildcard()` to create filters with wildcard patterns:
147
+
148
+ ```python
149
+ # Make all tags immutable except for those starting with 'dev-' or 'test-'
150
+ ecr.Repository(self, "Repo",
151
+ image_tag_mutability=ecr.TagMutability.IMMUTABLE_WITH_EXCLUSION,
152
+ image_tag_mutability_exclusion_filters=[
153
+ ecr.ImageTagMutabilityExclusionFilter.wildcard("dev-*"),
154
+ ecr.ImageTagMutabilityExclusionFilter.wildcard("test-*")
155
+ ]
156
+ )
157
+ ```
158
+
159
+ ```python
160
+ # Make all tags mutable except for production releases
161
+ ecr.Repository(self, "Repo",
162
+ image_tag_mutability=ecr.TagMutability.MUTABLE_WITH_EXCLUSION,
163
+ image_tag_mutability_exclusion_filters=[
164
+ ecr.ImageTagMutabilityExclusionFilter.wildcard("prod-*"),
165
+ ecr.ImageTagMutabilityExclusionFilter.wildcard("release-v*")
166
+ ]
167
+ )
168
+ ```
169
+
170
+ ##### Exclusion filter pattern rules
171
+
172
+ * Patterns can contain alphanumeric characters, dots (.), underscores (_), hyphens (-), and asterisks (*) as wildcards
173
+ * Maximum pattern length is 128 characters
174
+ * You can specify up to 5 exclusion filters per repository
175
+
137
176
  ### Encryption
138
177
 
139
178
  By default, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your data at rest using an AES-256 encryption algorithm. For more control over the encryption for your Amazon ECR repositories, you can use server-side encryption with KMS keys stored in AWS Key Management Service (AWS KMS). Read more about this feature in the [ECR Developer Guide](https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html).
@@ -856,7 +895,7 @@ class CfnRepositoryCreationTemplateProps:
856
895
  :param description: The description associated with the repository creation template.
857
896
  :param encryption_configuration: The encryption configuration associated with the repository creation template.
858
897
  :param image_tag_mutability: The tag mutability setting for the repository. If this parameter is omitted, the default setting of ``MUTABLE`` will be used which will allow image tags to be overwritten. If ``IMMUTABLE`` is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
859
- :param image_tag_mutability_exclusion_filters: Defines the image tag mutability exclusion filters to apply when creating repositories from this template. These filters specify which image tags can override the repository's default image tag mutability setting.
898
+ :param image_tag_mutability_exclusion_filters: A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.
860
899
  :param lifecycle_policy: The lifecycle policy to use for repositories created using the template.
861
900
  :param repository_policy: The repository policy to apply to repositories created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
862
901
  :param resource_tags: The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
@@ -997,9 +1036,7 @@ class CfnRepositoryCreationTemplateProps:
997
1036
  def image_tag_mutability_exclusion_filters(
998
1037
  self,
999
1038
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRepositoryCreationTemplate.ImageTagMutabilityExclusionFilterProperty"]]]]:
1000
- '''Defines the image tag mutability exclusion filters to apply when creating repositories from this template.
1001
-
1002
- These filters specify which image tags can override the repository's default image tag mutability setting.
1039
+ '''A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.
1003
1040
 
1004
1041
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repositorycreationtemplate.html#cfn-ecr-repositorycreationtemplate-imagetagmutabilityexclusionfilters
1005
1042
  '''
@@ -1084,9 +1121,9 @@ class CfnRepositoryProps:
1084
1121
 
1085
1122
  :param empty_on_delete: If true, deleting the repository force deletes the contents of the repository. If false, the repository must be empty before attempting to delete it.
1086
1123
  :param encryption_configuration: The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
1087
- :param image_scanning_configuration: The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
1124
+ :param image_scanning_configuration: .. epigraph:: The ``imageScanningConfiguration`` parameter is being deprecated, in favor of specifying the image scanning configuration at the registry level. For more information, see ``PutRegistryScanningConfiguration`` . The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
1088
1125
  :param image_tag_mutability: The tag mutability setting for the repository. If this parameter is omitted, the default setting of ``MUTABLE`` will be used which will allow image tags to be overwritten. If ``IMMUTABLE`` is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
1089
- :param image_tag_mutability_exclusion_filters: The image tag mutability exclusion filters associated with the repository. These filters specify which image tags can override the repository's default image tag mutability setting.
1126
+ :param image_tag_mutability_exclusion_filters: A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.
1090
1127
  :param lifecycle_policy: Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see `Lifecycle policy template <https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html>`_ .
1091
1128
  :param repository_name: The name to use for the repository. The repository name may be specified on its own (such as ``nginx-web-app`` ) or it can be prepended with a namespace to group the repository into a category (such as ``project-a/nginx-web-app`` ). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the repository name. For more information, see `Name type <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html>`_ . The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes. .. epigraph:: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
1092
1129
  :param repository_policy_text: The JSON repository policy text to apply to the repository. For more information, see `Amazon ECR repository policies <https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html>`_ in the *Amazon Elastic Container Registry User Guide* .
@@ -1192,9 +1229,13 @@ class CfnRepositoryProps:
1192
1229
  def image_scanning_configuration(
1193
1230
  self,
1194
1231
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnRepository.ImageScanningConfigurationProperty"]]:
1195
- '''The image scanning configuration for the repository.
1232
+ '''.. epigraph::
1233
+
1234
+ The ``imageScanningConfiguration`` parameter is being deprecated, in favor of specifying the image scanning configuration at the registry level.
1196
1235
 
1197
- This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
1236
+ For more information, see ``PutRegistryScanningConfiguration`` .
1237
+
1238
+ The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
1198
1239
 
1199
1240
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#cfn-ecr-repository-imagescanningconfiguration
1200
1241
  '''
@@ -1216,9 +1257,7 @@ class CfnRepositoryProps:
1216
1257
  def image_tag_mutability_exclusion_filters(
1217
1258
  self,
1218
1259
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRepository.ImageTagMutabilityExclusionFilterProperty"]]]]:
1219
- '''The image tag mutability exclusion filters associated with the repository.
1220
-
1221
- These filters specify which image tags can override the repository's default image tag mutability setting.
1260
+ '''A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.
1222
1261
 
1223
1262
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-repository.html#cfn-ecr-repository-imagetagmutabilityexclusionfilters
1224
1263
  '''
@@ -2150,6 +2189,39 @@ class _IRepositoryRefProxy(
2150
2189
  typing.cast(typing.Any, IRepositoryRef).__jsii_proxy_class__ = lambda : _IRepositoryRefProxy
2151
2190
 
2152
2191
 
2192
+ class ImageTagMutabilityExclusionFilter(
2193
+ metaclass=jsii.JSIIMeta,
2194
+ jsii_type="aws-cdk-lib.aws_ecr.ImageTagMutabilityExclusionFilter",
2195
+ ):
2196
+ '''Represents an image tag mutability exclusion filter for ECR repository.
2197
+
2198
+ :exampleMetadata: infused
2199
+
2200
+ Example::
2201
+
2202
+ # Make all tags immutable except for those starting with 'dev-' or 'test-'
2203
+ ecr.Repository(self, "Repo",
2204
+ image_tag_mutability=ecr.TagMutability.IMMUTABLE_WITH_EXCLUSION,
2205
+ image_tag_mutability_exclusion_filters=[
2206
+ ecr.ImageTagMutabilityExclusionFilter.wildcard("dev-*"),
2207
+ ecr.ImageTagMutabilityExclusionFilter.wildcard("test-*")
2208
+ ]
2209
+ )
2210
+ '''
2211
+
2212
+ @jsii.member(jsii_name="wildcard")
2213
+ @builtins.classmethod
2214
+ def wildcard(cls, pattern: builtins.str) -> "ImageTagMutabilityExclusionFilter":
2215
+ '''Creates a wildcard filter for image tag mutability exclusion.
2216
+
2217
+ :param pattern: The wildcard pattern to match image tags (e.g., 'dev-*', 'release-v*').
2218
+ '''
2219
+ if __debug__:
2220
+ type_hints = typing.get_type_hints(_typecheckingstub__506e41b81658bfe386f74207c24c3216542f105c02a9deeef0aa17031ffd52ef)
2221
+ check_type(argname="argument pattern", value=pattern, expected_type=type_hints["pattern"])
2222
+ return typing.cast("ImageTagMutabilityExclusionFilter", jsii.sinvoke(cls, "wildcard", [pattern]))
2223
+
2224
+
2153
2225
  @jsii.data_type(
2154
2226
  jsii_type="aws-cdk-lib.aws_ecr.LifecycleRule",
2155
2227
  jsii_struct_bases=[],
@@ -3572,6 +3644,7 @@ class RepositoryLookupOptions:
3572
3644
  "encryption_key": "encryptionKey",
3573
3645
  "image_scan_on_push": "imageScanOnPush",
3574
3646
  "image_tag_mutability": "imageTagMutability",
3647
+ "image_tag_mutability_exclusion_filters": "imageTagMutabilityExclusionFilters",
3575
3648
  "lifecycle_registry_id": "lifecycleRegistryId",
3576
3649
  "lifecycle_rules": "lifecycleRules",
3577
3650
  "removal_policy": "removalPolicy",
@@ -3588,6 +3661,7 @@ class RepositoryProps:
3588
3661
  encryption_key: typing.Optional[_IKeyRef_1e82344b] = None,
3589
3662
  image_scan_on_push: typing.Optional[builtins.bool] = None,
3590
3663
  image_tag_mutability: typing.Optional["TagMutability"] = None,
3664
+ image_tag_mutability_exclusion_filters: typing.Optional[typing.Sequence[ImageTagMutabilityExclusionFilter]] = None,
3591
3665
  lifecycle_registry_id: typing.Optional[builtins.str] = None,
3592
3666
  lifecycle_rules: typing.Optional[typing.Sequence[typing.Union[LifecycleRule, typing.Dict[builtins.str, typing.Any]]]] = None,
3593
3667
  removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
@@ -3600,6 +3674,7 @@ class RepositoryProps:
3600
3674
  :param encryption_key: External KMS key to use for repository encryption. The 'encryption' property must be either not specified or set to "KMS". An error will be emitted if encryption is set to "AES256". Default: - If encryption is set to ``KMS`` and this property is undefined, an AWS managed KMS key is used.
3601
3675
  :param image_scan_on_push: Enable the scan on push when creating the repository. Default: false
3602
3676
  :param image_tag_mutability: The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. Default: TagMutability.MUTABLE
3677
+ :param image_tag_mutability_exclusion_filters: The image tag mutability exclusion filters for the repository. These filters specify which image tags can override the repository's default image tag mutability setting. Default: undefined - AWS ECR default is no exclusion filters
3603
3678
  :param lifecycle_registry_id: The AWS account ID associated with the registry that contains the repository. Default: The default registry is assumed.
3604
3679
  :param lifecycle_rules: Life cycle rules to apply to this registry. Default: No life cycle rules
3605
3680
  :param removal_policy: Determine what happens to the repository when the resource/stack is deleted. Default: RemovalPolicy.Retain
@@ -3609,7 +3684,17 @@ class RepositoryProps:
3609
3684
 
3610
3685
  Example::
3611
3686
 
3612
- ecr.Repository(self, "Repo", image_tag_mutability=ecr.TagMutability.IMMUTABLE)
3687
+ repository = ecr.Repository(self, "TestRepository",
3688
+ repository_name="test-agent-runtime"
3689
+ )
3690
+ agent_runtime_artifact = agentcore.AgentRuntimeArtifact.from_ecr_repository(repository, "v1.0.0")
3691
+
3692
+ # Explicitly using public network (this is the default)
3693
+ runtime = agentcore.Runtime(self, "MyAgentRuntime",
3694
+ runtime_name="myAgent",
3695
+ agent_runtime_artifact=agent_runtime_artifact,
3696
+ network_configuration=agentcore.RuntimeNetworkConfiguration.using_public_network()
3697
+ )
3613
3698
  '''
3614
3699
  if __debug__:
3615
3700
  type_hints = typing.get_type_hints(_typecheckingstub__638b63dd5eb589e01019ee47c63d6335810d02b0d769f767f2bf2fddc285af28)
@@ -3619,6 +3704,7 @@ class RepositoryProps:
3619
3704
  check_type(argname="argument encryption_key", value=encryption_key, expected_type=type_hints["encryption_key"])
3620
3705
  check_type(argname="argument image_scan_on_push", value=image_scan_on_push, expected_type=type_hints["image_scan_on_push"])
3621
3706
  check_type(argname="argument image_tag_mutability", value=image_tag_mutability, expected_type=type_hints["image_tag_mutability"])
3707
+ check_type(argname="argument image_tag_mutability_exclusion_filters", value=image_tag_mutability_exclusion_filters, expected_type=type_hints["image_tag_mutability_exclusion_filters"])
3622
3708
  check_type(argname="argument lifecycle_registry_id", value=lifecycle_registry_id, expected_type=type_hints["lifecycle_registry_id"])
3623
3709
  check_type(argname="argument lifecycle_rules", value=lifecycle_rules, expected_type=type_hints["lifecycle_rules"])
3624
3710
  check_type(argname="argument removal_policy", value=removal_policy, expected_type=type_hints["removal_policy"])
@@ -3636,6 +3722,8 @@ class RepositoryProps:
3636
3722
  self._values["image_scan_on_push"] = image_scan_on_push
3637
3723
  if image_tag_mutability is not None:
3638
3724
  self._values["image_tag_mutability"] = image_tag_mutability
3725
+ if image_tag_mutability_exclusion_filters is not None:
3726
+ self._values["image_tag_mutability_exclusion_filters"] = image_tag_mutability_exclusion_filters
3639
3727
  if lifecycle_registry_id is not None:
3640
3728
  self._values["lifecycle_registry_id"] = lifecycle_registry_id
3641
3729
  if lifecycle_rules is not None:
@@ -3718,6 +3806,21 @@ class RepositoryProps:
3718
3806
  result = self._values.get("image_tag_mutability")
3719
3807
  return typing.cast(typing.Optional["TagMutability"], result)
3720
3808
 
3809
+ @builtins.property
3810
+ def image_tag_mutability_exclusion_filters(
3811
+ self,
3812
+ ) -> typing.Optional[typing.List[ImageTagMutabilityExclusionFilter]]:
3813
+ '''The image tag mutability exclusion filters for the repository.
3814
+
3815
+ These filters specify which image tags can override the repository's default image tag mutability setting.
3816
+
3817
+ :default: undefined - AWS ECR default is no exclusion filters
3818
+
3819
+ :see: https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html
3820
+ '''
3821
+ result = self._values.get("image_tag_mutability_exclusion_filters")
3822
+ return typing.cast(typing.Optional[typing.List[ImageTagMutabilityExclusionFilter]], result)
3823
+
3721
3824
  @builtins.property
3722
3825
  def lifecycle_registry_id(self) -> typing.Optional[builtins.str]:
3723
3826
  '''The AWS account ID associated with the registry that contains the repository.
@@ -3849,7 +3952,14 @@ class TagMutability(enum.Enum):
3849
3952
 
3850
3953
  Example::
3851
3954
 
3852
- ecr.Repository(self, "Repo", image_tag_mutability=ecr.TagMutability.IMMUTABLE)
3955
+ # Make all tags immutable except for those starting with 'dev-' or 'test-'
3956
+ ecr.Repository(self, "Repo",
3957
+ image_tag_mutability=ecr.TagMutability.IMMUTABLE_WITH_EXCLUSION,
3958
+ image_tag_mutability_exclusion_filters=[
3959
+ ecr.ImageTagMutabilityExclusionFilter.wildcard("dev-*"),
3960
+ ecr.ImageTagMutabilityExclusionFilter.wildcard("test-*")
3961
+ ]
3962
+ )
3853
3963
  '''
3854
3964
 
3855
3965
  MUTABLE = "MUTABLE"
@@ -5304,9 +5414,9 @@ class CfnRepository(
5304
5414
  :param id: Construct identifier for this resource (unique in its scope).
5305
5415
  :param empty_on_delete: If true, deleting the repository force deletes the contents of the repository. If false, the repository must be empty before attempting to delete it.
5306
5416
  :param encryption_configuration: The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
5307
- :param image_scanning_configuration: The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
5417
+ :param image_scanning_configuration: .. epigraph:: The ``imageScanningConfiguration`` parameter is being deprecated, in favor of specifying the image scanning configuration at the registry level. For more information, see ``PutRegistryScanningConfiguration`` . The image scanning configuration for the repository. This determines whether images are scanned for known vulnerabilities after being pushed to the repository.
5308
5418
  :param image_tag_mutability: The tag mutability setting for the repository. If this parameter is omitted, the default setting of ``MUTABLE`` will be used which will allow image tags to be overwritten. If ``IMMUTABLE`` is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
5309
- :param image_tag_mutability_exclusion_filters: The image tag mutability exclusion filters associated with the repository. These filters specify which image tags can override the repository's default image tag mutability setting.
5419
+ :param image_tag_mutability_exclusion_filters: A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.
5310
5420
  :param lifecycle_policy: Creates or updates a lifecycle policy. For information about lifecycle policy syntax, see `Lifecycle policy template <https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html>`_ .
5311
5421
  :param repository_name: The name to use for the repository. The repository name may be specified on its own (such as ``nginx-web-app`` ) or it can be prepended with a namespace to group the repository into a category (such as ``project-a/nginx-web-app`` ). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the repository name. For more information, see `Name type <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html>`_ . The repository name must start with a letter and can only contain lowercase letters, numbers, hyphens, underscores, and forward slashes. .. epigraph:: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
5312
5422
  :param repository_policy_text: The JSON repository policy text to apply to the repository. For more information, see `Amazon ECR repository policies <https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-policy-examples.html>`_ in the *Amazon Elastic Container Registry User Guide* .
@@ -5482,7 +5592,9 @@ class CfnRepository(
5482
5592
  def image_scanning_configuration(
5483
5593
  self,
5484
5594
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnRepository.ImageScanningConfigurationProperty"]]:
5485
- '''The image scanning configuration for the repository.'''
5595
+ '''.. epigraph::
5596
+
5597
+ The ``imageScanningConfiguration`` parameter is being deprecated, in favor of specifying the image scanning configuration at the registry level.'''
5486
5598
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnRepository.ImageScanningConfigurationProperty"]], jsii.get(self, "imageScanningConfiguration"))
5487
5599
 
5488
5600
  @image_scanning_configuration.setter
@@ -5513,7 +5625,7 @@ class CfnRepository(
5513
5625
  def image_tag_mutability_exclusion_filters(
5514
5626
  self,
5515
5627
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRepository.ImageTagMutabilityExclusionFilterProperty"]]]]:
5516
- '''The image tag mutability exclusion filters associated with the repository.'''
5628
+ '''A list of filters that specify which image tags are excluded from the repository's image tag mutability setting.'''
5517
5629
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRepository.ImageTagMutabilityExclusionFilterProperty"]]]], jsii.get(self, "imageTagMutabilityExclusionFilters"))
5518
5630
 
5519
5631
  @image_tag_mutability_exclusion_filters.setter
@@ -5744,7 +5856,7 @@ class CfnRepository(
5744
5856
  image_tag_mutability_exclusion_filter_type: builtins.str,
5745
5857
  image_tag_mutability_exclusion_filter_value: builtins.str,
5746
5858
  ) -> None:
5747
- '''Overrides the default image tag mutability setting of the repository for image tags that match the specified filters.
5859
+ '''A filter that specifies which image tags should be excluded from the repository's image tag mutability setting.
5748
5860
 
5749
5861
  :param image_tag_mutability_exclusion_filter_type: Specifies the type of filter to use for excluding image tags from the repository's mutability setting.
5750
5862
  :param image_tag_mutability_exclusion_filter_value: The value to use when filtering image tags.
@@ -5951,7 +6063,7 @@ class CfnRepositoryCreationTemplate(
5951
6063
  :param description: The description associated with the repository creation template.
5952
6064
  :param encryption_configuration: The encryption configuration associated with the repository creation template.
5953
6065
  :param image_tag_mutability: The tag mutability setting for the repository. If this parameter is omitted, the default setting of ``MUTABLE`` will be used which will allow image tags to be overwritten. If ``IMMUTABLE`` is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
5954
- :param image_tag_mutability_exclusion_filters: Defines the image tag mutability exclusion filters to apply when creating repositories from this template. These filters specify which image tags can override the repository's default image tag mutability setting.
6066
+ :param image_tag_mutability_exclusion_filters: A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.
5955
6067
  :param lifecycle_policy: The lifecycle policy to use for repositories created using the template.
5956
6068
  :param repository_policy: The repository policy to apply to repositories created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
5957
6069
  :param resource_tags: The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
@@ -6122,7 +6234,7 @@ class CfnRepositoryCreationTemplate(
6122
6234
  def image_tag_mutability_exclusion_filters(
6123
6235
  self,
6124
6236
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRepositoryCreationTemplate.ImageTagMutabilityExclusionFilterProperty"]]]]:
6125
- '''Defines the image tag mutability exclusion filters to apply when creating repositories from this template.'''
6237
+ '''A list of filters that specify which image tags are excluded from the repository creation template's image tag mutability setting.'''
6126
6238
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRepositoryCreationTemplate.ImageTagMutabilityExclusionFilterProperty"]]]], jsii.get(self, "imageTagMutabilityExclusionFilters"))
6127
6239
 
6128
6240
  @image_tag_mutability_exclusion_filters.setter
@@ -6281,7 +6393,7 @@ class CfnRepositoryCreationTemplate(
6281
6393
  image_tag_mutability_exclusion_filter_type: builtins.str,
6282
6394
  image_tag_mutability_exclusion_filter_value: builtins.str,
6283
6395
  ) -> None:
6284
- '''Overrides the default image tag mutability setting of the repository for image tags that match the specified filters.
6396
+ '''A filter that specifies which image tags should be excluded from the repository's image tag mutability setting.
6285
6397
 
6286
6398
  :param image_tag_mutability_exclusion_filter_type:
6287
6399
  :param image_tag_mutability_exclusion_filter_value:
@@ -6350,19 +6462,15 @@ class Repository(
6350
6462
 
6351
6463
  Example::
6352
6464
 
6353
- import aws_cdk.aws_lambda as lambda_
6354
- from aws_cdk.aws_events_targets import LambdaFunction
6355
-
6356
-
6357
- repo = ecr.Repository(self, "Repo")
6358
- lambda_handler = lambda_.Function(self, "LambdaFunction",
6359
- runtime=lambda_.Runtime.PYTHON_3_12,
6360
- code=lambda_.Code.from_inline("# dummy func"),
6361
- handler="index.handler"
6465
+ repository = ecr.Repository(self, "TestRepository",
6466
+ repository_name="test-agent-runtime"
6362
6467
  )
6468
+ agent_runtime_artifact = agentcore.AgentRuntimeArtifact.from_ecr_repository(repository, "v1.0.0")
6363
6469
 
6364
- repo.on_event("OnEventTargetLambda",
6365
- target=LambdaFunction(lambda_handler)
6470
+ runtime = agentcore.Runtime(self, "MyAgentRuntime",
6471
+ runtime_name="myAgent",
6472
+ agent_runtime_artifact=agent_runtime_artifact,
6473
+ authorizer_configuration=agentcore.RuntimeAuthorizerConfiguration.using_oAuth("https://github.com/.well-known/openid-configuration", "oauth_client_123")
6366
6474
  )
6367
6475
  '''
6368
6476
 
@@ -6377,6 +6485,7 @@ class Repository(
6377
6485
  encryption_key: typing.Optional[_IKeyRef_1e82344b] = None,
6378
6486
  image_scan_on_push: typing.Optional[builtins.bool] = None,
6379
6487
  image_tag_mutability: typing.Optional[TagMutability] = None,
6488
+ image_tag_mutability_exclusion_filters: typing.Optional[typing.Sequence[ImageTagMutabilityExclusionFilter]] = None,
6380
6489
  lifecycle_registry_id: typing.Optional[builtins.str] = None,
6381
6490
  lifecycle_rules: typing.Optional[typing.Sequence[typing.Union[LifecycleRule, typing.Dict[builtins.str, typing.Any]]]] = None,
6382
6491
  removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
@@ -6391,6 +6500,7 @@ class Repository(
6391
6500
  :param encryption_key: External KMS key to use for repository encryption. The 'encryption' property must be either not specified or set to "KMS". An error will be emitted if encryption is set to "AES256". Default: - If encryption is set to ``KMS`` and this property is undefined, an AWS managed KMS key is used.
6392
6501
  :param image_scan_on_push: Enable the scan on push when creating the repository. Default: false
6393
6502
  :param image_tag_mutability: The tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. Default: TagMutability.MUTABLE
6503
+ :param image_tag_mutability_exclusion_filters: The image tag mutability exclusion filters for the repository. These filters specify which image tags can override the repository's default image tag mutability setting. Default: undefined - AWS ECR default is no exclusion filters
6394
6504
  :param lifecycle_registry_id: The AWS account ID associated with the registry that contains the repository. Default: The default registry is assumed.
6395
6505
  :param lifecycle_rules: Life cycle rules to apply to this registry. Default: No life cycle rules
6396
6506
  :param removal_policy: Determine what happens to the repository when the resource/stack is deleted. Default: RemovalPolicy.Retain
@@ -6407,6 +6517,7 @@ class Repository(
6407
6517
  encryption_key=encryption_key,
6408
6518
  image_scan_on_push=image_scan_on_push,
6409
6519
  image_tag_mutability=image_tag_mutability,
6520
+ image_tag_mutability_exclusion_filters=image_tag_mutability_exclusion_filters,
6410
6521
  lifecycle_registry_id=lifecycle_registry_id,
6411
6522
  lifecycle_rules=lifecycle_rules,
6412
6523
  removal_policy=removal_policy,
@@ -6628,6 +6739,7 @@ __all__ = [
6628
6739
  "IRepository",
6629
6740
  "IRepositoryCreationTemplateRef",
6630
6741
  "IRepositoryRef",
6742
+ "ImageTagMutabilityExclusionFilter",
6631
6743
  "LifecycleRule",
6632
6744
  "OnCloudTrailImagePushedOptions",
6633
6745
  "OnImageScanCompletedOptions",
@@ -6837,6 +6949,12 @@ def _typecheckingstub__894e1dc0284d8788d4bcf980d7755525e14fbcec8b305670af1a388f3
6837
6949
  """Type checking stubs"""
6838
6950
  pass
6839
6951
 
6952
+ def _typecheckingstub__506e41b81658bfe386f74207c24c3216542f105c02a9deeef0aa17031ffd52ef(
6953
+ pattern: builtins.str,
6954
+ ) -> None:
6955
+ """Type checking stubs"""
6956
+ pass
6957
+
6840
6958
  def _typecheckingstub__daefc01ac58c056180e96357fa989faf5de713c6f5bd46bb023e2579bcaf8de0(
6841
6959
  *,
6842
6960
  description: typing.Optional[builtins.str] = None,
@@ -7070,6 +7188,7 @@ def _typecheckingstub__638b63dd5eb589e01019ee47c63d6335810d02b0d769f767f2bf2fddc
7070
7188
  encryption_key: typing.Optional[_IKeyRef_1e82344b] = None,
7071
7189
  image_scan_on_push: typing.Optional[builtins.bool] = None,
7072
7190
  image_tag_mutability: typing.Optional[TagMutability] = None,
7191
+ image_tag_mutability_exclusion_filters: typing.Optional[typing.Sequence[ImageTagMutabilityExclusionFilter]] = None,
7073
7192
  lifecycle_registry_id: typing.Optional[builtins.str] = None,
7074
7193
  lifecycle_rules: typing.Optional[typing.Sequence[typing.Union[LifecycleRule, typing.Dict[builtins.str, typing.Any]]]] = None,
7075
7194
  removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
@@ -7604,6 +7723,7 @@ def _typecheckingstub__0fcb489ea7ac91914ff0429ef13d64f8bd29978872d9ce4754ee9d397
7604
7723
  encryption_key: typing.Optional[_IKeyRef_1e82344b] = None,
7605
7724
  image_scan_on_push: typing.Optional[builtins.bool] = None,
7606
7725
  image_tag_mutability: typing.Optional[TagMutability] = None,
7726
+ image_tag_mutability_exclusion_filters: typing.Optional[typing.Sequence[ImageTagMutabilityExclusionFilter]] = None,
7607
7727
  lifecycle_registry_id: typing.Optional[builtins.str] = None,
7608
7728
  lifecycle_rules: typing.Optional[typing.Sequence[typing.Union[LifecycleRule, typing.Dict[builtins.str, typing.Any]]]] = None,
7609
7729
  removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
@@ -7661,3 +7781,6 @@ def _typecheckingstub__a4c2e425a71ed909d2a0bfefe861aad7c34b251f3ef1f93f5dd7f2be5
7661
7781
  ) -> None:
7662
7782
  """Type checking stubs"""
7663
7783
  pass
7784
+
7785
+ for cls in [IPublicRepositoryRef, IPullThroughCacheRuleRef, IRegistryPolicyRef, IRegistryScanningConfigurationRef, IReplicationConfigurationRef, IRepository, IRepositoryCreationTemplateRef, IRepositoryRef]:
7786
+ typing.cast(typing.Any, cls).__protocol_attrs__ = typing.cast(typing.Any, cls).__protocol_attrs__ - set(['__jsii_proxy_class__', '__jsii_type__'])