Construct
- class aws_cdk.core.Construct(scope, id)
Bases:
Construct
Represents the building block of the construct graph.
All constructs besides the root construct must be created within the scope of another construct.
- ExampleMetadata:
infused
Example:
entry = "/path/to/function" image = DockerImage.from_build(entry) lambda_.PythonFunction(self, "function", entry=entry, runtime=Runtime.PYTHON_3_8, bundling=lambda.BundlingOptions( build_args={"PIP_INDEX_URL": "https://your.index.url/simple/", "PIP_EXTRA_INDEX_URL": "https://your.extra-index.url/simple/"} ) )
- Parameters:
scope (
Construct
)id (
str
)
Methods
- to_string()
Returns a string representation of this construct.
- Return type:
str
Attributes
- node
The construct tree node associated with this construct.
Static Methods
- classmethod is_construct(x)
Return whether the given object is a Construct.
- Parameters:
x (
Any
)- Return type:
bool