ResourceProps interface
Internal props accepted by the base Resource constructor. A loose
superset of both the deployable and existing public shapes — the runtime
constructor branches on props.existing to decide which fields are
honored. Generated CDK resource classes expose a discriminated union
(Deployable & { existing?: false }) | (Existing & { existing: true });
passing { ...existingProps, existing: true } selects the existing arm and
emits a Bicep existing reference instead of a new declaration.
Properties
| api |
|
| existing | |
| name | |
| scope | Optional Bicep |
| type |
Property Details
apiVersion
apiVersion: string
Property Value
string
existing
existing?: boolean
Property Value
boolean
name
scope
Optional Bicep scope: value for an existing resource reference.
Only honored when existing === true. Ignored on deployable resources
(non-existing resources have no per-resource scope in Bicep).
scope?: ScopeExpression
Property Value
type
type: TType
Property Value
TType