CronJobResource constructor
CronJobResource(
- String name, {
- CronJobBatchV1beta1Args? args,
- CustomResourceOptions? options,
Creates a new CronJobResource.
name The Pulumi resource name.
args Arguments used to configure this CronJobResource. The set of arguments for CronJob.
options Resource options controlling this resource's behavior.
Implementation
CronJobResource(
String name, {
CronJobBatchV1beta1Args? args,
pulumi.CustomResourceOptions? options,
}) : super(
'kubernetes:batch/v1beta1:CronJob',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
apiVersion = registerOutput<String>('apiVersion');
kind = registerOutput<String>('kind');
metadata = registerOutput<ObjectMeta>('metadata', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ObjectMeta.fromMap((guardedValue as Map).cast<String, dynamic>()); });
spec = registerOutput<CronJobSpecBatchV1beta1>('spec', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CronJobSpecBatchV1beta1.fromMap((guardedValue as Map).cast<String, dynamic>()); });
status = registerOutput<CronJobStatusBatchV1beta1?>('status', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CronJobStatusBatchV1beta1.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}