ICfnFinder

class aws_cdk.core.ICfnFinder(*args, **kwargs)

Bases: typing_extensions.Protocol

An interface that represents callbacks into a CloudFormation template.

Used by the fromCloudFormation methods in the generated L1 classes.

stability :stability: experimental

__init__(*args, **kwargs)

Methods

find_condition(condition_name)

Return the Condition with the given name from the template.

If there is no Condition with that name in the template, returns undefined.

Parameters

condition_name (str) –

stability :stability: experimental

Return type

Optional[CfnCondition]

find_ref_target(element_name)

Returns the element referenced using a Ref expression with the given name.

If there is no element with this name in the template, return undefined.

Parameters

element_name (str) –

stability :stability: experimental

Return type

Optional[CfnElement]

find_resource(logical_id)

Returns the resource with the given logical ID in the template.

If a resource with that logical ID was not found in the template, returns undefined.

Parameters

logical_id (str) –

stability :stability: experimental

Return type

Optional[CfnResource]