Dependency¶
-
class
aws_cdk.core.
Dependency
(*, source, target)¶ Bases:
object
A single dependency.
- Parameters
source (
IConstruct
) – Source the dependency.target (
IConstruct
) – Target of the dependency.
- ExampleMetadata
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.core as cdk # construct: cdk.Construct dependency = cdk.Dependency( source=construct, target=construct )
Attributes
-
source
¶ Source the dependency.
- Return type
-
target
¶ Target of the dependency.
- Return type