|
25 | 25 | deadletterconfig = get_prop("sam-property-function-deadletterconfig")
|
26 | 26 | deploymentpreference = get_prop("sam-property-function-deploymentpreference")
|
27 | 27 | dlq = get_prop("sam-property-function-deadletterqueue")
|
| 28 | +documentdbeventproperties = get_prop("sam-property-function-documentdb") |
28 | 29 | dynamodbeventproperties = get_prop("sam-property-function-dynamodb")
|
29 | 30 | event = get_prop("sam-property-function-eventsource")
|
30 | 31 | eventbridgeruleeventproperties = get_prop("sam-property-function-eventbridgerule")
|
@@ -201,18 +202,20 @@ class DynamoDBEvent(BaseModel):
|
201 | 202 |
|
202 | 203 |
|
203 | 204 | class DocumentDBEventProperties(BaseModel):
|
204 |
| - BatchSize: Optional[PassThroughProp] # TODO: add documentation |
205 |
| - Cluster: PassThroughProp # TODO: add documentation |
206 |
| - CollectionName: Optional[PassThroughProp] # TODO: add documentation |
207 |
| - DatabaseName: PassThroughProp # TODO: add documentation |
208 |
| - Enabled: Optional[PassThroughProp] # TODO: add documentation |
209 |
| - FilterCriteria: Optional[PassThroughProp] # TODO: add documentation |
210 |
| - FullDocument: Optional[PassThroughProp] # TODO: add documentation |
211 |
| - MaximumBatchingWindowInSeconds: Optional[PassThroughProp] # TODO: add documentation |
212 |
| - SecretsManagerKmsKeyId: Optional[str] # TODO: add documentation |
213 |
| - SourceAccessConfigurations: PassThroughProp # TODO: add documentation |
214 |
| - StartingPosition: Optional[PassThroughProp] # TODO: add documentation |
215 |
| - StartingPositionTimestamp: Optional[PassThroughProp] # TODO: add documentation |
| 205 | + BatchSize: Optional[PassThroughProp] = documentdbeventproperties("BatchSize") |
| 206 | + Cluster: PassThroughProp = documentdbeventproperties("Cluster") |
| 207 | + CollectionName: Optional[PassThroughProp] = documentdbeventproperties("CollectionName") |
| 208 | + DatabaseName: PassThroughProp = documentdbeventproperties("DatabaseName") |
| 209 | + Enabled: Optional[PassThroughProp] = documentdbeventproperties("Enabled") |
| 210 | + FilterCriteria: Optional[PassThroughProp] = documentdbeventproperties("FilterCriteria") |
| 211 | + FullDocument: Optional[PassThroughProp] = documentdbeventproperties("FullDocument") |
| 212 | + MaximumBatchingWindowInSeconds: Optional[PassThroughProp] = documentdbeventproperties( |
| 213 | + "MaximumBatchingWindowInSeconds" |
| 214 | + ) |
| 215 | + SecretsManagerKmsKeyId: Optional[str] = documentdbeventproperties("SecretsManagerKmsKeyId") |
| 216 | + SourceAccessConfigurations: PassThroughProp = documentdbeventproperties("SourceAccessConfigurations") |
| 217 | + StartingPosition: Optional[PassThroughProp] = documentdbeventproperties("StartingPosition") |
| 218 | + StartingPositionTimestamp: Optional[PassThroughProp] = documentdbeventproperties("StartingPositionTimestamp") |
216 | 219 |
|
217 | 220 |
|
218 | 221 | class DocumentDBEvent(BaseModel):
|
@@ -395,7 +398,7 @@ class MSKEventProperties(BaseModel):
|
395 | 398 | StartingPositionTimestamp: Optional[PassThroughProp] = mskeventproperties("StartingPositionTimestamp")
|
396 | 399 | Stream: PassThroughProp = mskeventproperties("Stream")
|
397 | 400 | Topics: PassThroughProp = mskeventproperties("Topics")
|
398 |
| - SourceAccessConfigurations: Optional[PassThroughProp] # TODO: update docs when live |
| 401 | + SourceAccessConfigurations: Optional[PassThroughProp] = mskeventproperties("SourceAccessConfigurations") |
399 | 402 |
|
400 | 403 |
|
401 | 404 | class MSKEvent(BaseModel):
|
@@ -491,7 +494,7 @@ class Properties(BaseModel):
|
491 | 494 | Architectures: Optional[Architectures] = prop("Architectures")
|
492 | 495 | AssumeRolePolicyDocument: Optional[AssumeRolePolicyDocument] = prop("AssumeRolePolicyDocument")
|
493 | 496 | AutoPublishAlias: Optional[AutoPublishAlias] = prop("AutoPublishAlias")
|
494 |
| - AutoPublishAliasAllProperties: Optional[AutoPublishAliasAllProperties] # TODO: add docs |
| 497 | + AutoPublishAliasAllProperties: Optional[AutoPublishAliasAllProperties] = prop("AutoPublishAliasAllProperties") |
495 | 498 | AutoPublishCodeSha256: Optional[SamIntrinsicable[str]] = prop("AutoPublishCodeSha256")
|
496 | 499 | CodeSigningConfigArn: Optional[SamIntrinsicable[str]] = prop("CodeSigningConfigArn")
|
497 | 500 | CodeUri: Optional[CodeUriType] = prop("CodeUri")
|
@@ -546,7 +549,7 @@ class Properties(BaseModel):
|
546 | 549 | Role: Optional[SamIntrinsicable[str]] = prop("Role")
|
547 | 550 | Runtime: Optional[Runtime] = prop("Runtime")
|
548 | 551 | SnapStart: Optional[SnapStart] = prop("SnapStart")
|
549 |
| - RuntimeManagementConfig: Optional[RuntimeManagementConfig] # TODO: add prop and types |
| 552 | + RuntimeManagementConfig: Optional[RuntimeManagementConfig] = prop("RuntimeManagementConfig") |
550 | 553 | Tags: Optional[Tags] = prop("Tags")
|
551 | 554 | Timeout: Optional[Timeout] = prop("Timeout")
|
552 | 555 | Tracing: Optional[Tracing] = prop("Tracing")
|
@@ -579,7 +582,7 @@ class Globals(BaseModel):
|
579 | 582 | Architectures: Optional[Architectures] = prop("Architectures")
|
580 | 583 | EphemeralStorage: Optional[EphemeralStorage] = prop("EphemeralStorage")
|
581 | 584 | SnapStart: Optional[SnapStart] = prop("SnapStart")
|
582 |
| - RuntimeManagementConfig: Optional[RuntimeManagementConfig] # TODO: add prop |
| 585 | + RuntimeManagementConfig: Optional[RuntimeManagementConfig] = prop("RuntimeManagementConfig") |
583 | 586 |
|
584 | 587 |
|
585 | 588 | class Resource(ResourceAttributes):
|
|
0 commit comments