Module batch/v1beta1

@pulumi/kubernetes > batch > v1beta1

class CronJob

extends CustomResource

CronJob represents the configuration of a single cron job.

constructor

new CronJob(name: string, args?: inputApi.batch.v1beta1.CronJob, opts?: pulumi.CustomResourceOptions)

Create a batch.v1beta1.CronJob resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CronJob

Get the state of an existing CronJob resource, as identified by id. Typically this ID is of the form /; if is omitted, then (per Kubernetes convention) the ID becomes default/.

Pulumi will keep track of this resource using name as the Pulumi ID.

method getInputs

public getInputs(): inputApi.batch.v1beta1.CronJob

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property apiVersion

public apiVersion: pulumi.Output<“batch/v1beta1”>;

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property kind

public kind: pulumi.Output<“CronJob”>;

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

public metadata: pulumi.Output<outputApi.meta.v1.ObjectMeta>;

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

property spec

public spec: pulumi.Output<outputApi.batch.v1beta1.CronJobSpec>;

Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

property status

public status: pulumi.Output<outputApi.batch.v1beta1.CronJobStatus>;

Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class CronJobList

extends CustomResource

CronJobList is a collection of cron jobs.

constructor

new CronJobList(name: string, args?: inputApi.batch.v1beta1.CronJobList, opts?: pulumi.CustomResourceOptions)

Create a batch.v1beta1.CronJobList resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CronJobList

Get the state of an existing CronJobList resource, as identified by id. Typically this ID is of the form /; if is omitted, then (per Kubernetes convention) the ID becomes default/.

Pulumi will keep track of this resource using name as the Pulumi ID.

method getInputs

public getInputs(): inputApi.batch.v1beta1.CronJobList

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property apiVersion

public apiVersion: pulumi.Output<“batch/v1beta1”>;

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property items

public items: pulumi.Output<outputApi.batch.v1beta1.CronJob[]>;

items is the list of CronJobs.

property kind

public kind: pulumi.Output<“CronJobList”>;

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

public metadata: pulumi.Output<outputApi.meta.v1.ListMeta>;

Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.