Scope.reference constructor
Scope.reference(
- String urn
Creates a typed reference to an existing Scope resource.
Implementation
Scope.reference(String urn)
: super(
'aws:networkflowmonitor/scope:Scope',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
region = registerOutput<String>('region');
scopeArn = registerOutput<String>('scopeArn');
scopeId = registerOutput<String>('scopeId');
tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
targets = registerOutput<List<ScopeTarget>>('targets', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ScopeTarget>(guardedValue, (value) => ScopeTarget.fromMap((value as Map).cast<String, dynamic>())); });
timeouts = registerOutput<ScopeTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ScopeTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}