SessionTemplate.reference constructor
SessionTemplate.reference(
- String urn
Creates a typed reference to an existing SessionTemplate resource.
Implementation
SessionTemplate.reference(String urn)
: super(
'gcp:dataproc/sessionTemplate:SessionTemplate',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
isResourceReference: true,
) {
createTime = registerOutput<String>('createTime');
creator = registerOutput<String>('creator');
deletionPolicy = registerOutput<String>('deletionPolicy');
effectiveLabels = registerOutput<Map<String, String>>('effectiveLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
environmentConfig = registerOutput<SessionTemplateEnvironmentConfig?>('environmentConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SessionTemplateEnvironmentConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
jupyterSession = registerOutput<SessionTemplateJupyterSession?>('jupyterSession', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SessionTemplateJupyterSession.fromMap((guardedValue as Map).cast<String, dynamic>()); });
labels = registerOutput<Map<String, String>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
location = registerOutput<String?>('location');
this.name = registerOutput<String>('name');
project = registerOutput<String>('project');
pulumiLabels = registerOutput<Map<String, String>>('pulumiLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
runtimeConfig = registerOutput<SessionTemplateRuntimeConfig?>('runtimeConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return SessionTemplateRuntimeConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
sparkConnectSession = registerOutput<Map<String, dynamic>?>('sparkConnectSession');
updateTime = registerOutput<String>('updateTime');
uuid = registerOutput<String>('uuid');
}