Batch.reference constructor
Batch.reference(
- String urn
Creates a typed reference to an existing Batch resource.
Implementation
Batch.reference(String urn)
: super(
'gcp:dataproc/batch:Batch',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
isResourceReference: true,
) {
batchId = registerOutput<String?>('batchId');
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<BatchEnvironmentConfig?>('environmentConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BatchEnvironmentConfig.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');
operation = registerOutput<String>('operation');
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);
pysparkBatch = registerOutput<BatchPysparkBatch?>('pysparkBatch', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BatchPysparkBatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
runtimeConfig = registerOutput<BatchRuntimeConfig?>('runtimeConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BatchRuntimeConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
runtimeInfos = registerOutput<List<BatchRuntimeInfo>>('runtimeInfos', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BatchRuntimeInfo>(guardedValue, (value) => BatchRuntimeInfo.fromMap((value as Map).cast<String, dynamic>())); });
sparkBatch = registerOutput<BatchSparkBatch?>('sparkBatch', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BatchSparkBatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
sparkRBatch = registerOutput<BatchSparkRBatch?>('sparkRBatch', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BatchSparkRBatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
sparkSqlBatch = registerOutput<BatchSparkSqlBatch?>('sparkSqlBatch', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BatchSparkSqlBatch.fromMap((guardedValue as Map).cast<String, dynamic>()); });
state = registerOutput<String>('state');
stateHistories = registerOutput<List<BatchStateHistory>>('stateHistories', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BatchStateHistory>(guardedValue, (value) => BatchStateHistory.fromMap((value as Map).cast<String, dynamic>())); });
stateMessage = registerOutput<String>('stateMessage');
stateTime = registerOutput<String>('stateTime');
uuid = registerOutput<String>('uuid');
}