JobArgs class
The set of arguments for Job. The set of arguments for Job.
Constructors
-
JobArgs({Input<
List< ? additionalExperiments, Input<String> ?>String?> ? deletionPolicy, Input<bool?> ? enableStreamingEngine, Input<String?> ? ipConfiguration, Input<String?> ? kmsKeyName, Input<Map< ? labels, Input<String, String> ?>String?> ? machineType, Input<int?> ? maxWorkers, Input<String?> ? name, Input<String?> ? network, Input<String?> ? onDelete, Input<Map< ? parameters, Input<String, String> ?>String?> ? project, Input<String?> ? region, Input<String?> ? serviceAccountEmail, Input<bool?> ? skipWaitOnJobTermination, Input<String?> ? subnetwork, required Input<String> tempGcsLocation, required Input<String> templateGcsPath, Input<Map< ? transformNameMapping, Input<String, String> ?>String?> ? zone}) -
Creates a new JobArgs.
additionalExperimentsList of experiments that should be used by the job. An example value is["enableStackdriverAgentMetrics"].deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to "DELETE".enableStreamingEngineEnable/disable the use of Streaming Engine for the job. Note that Streaming Engine is enabled by default for pipelines developed against the Beam SDK for Python v2.21.0 or later when using Python 3.ipConfigurationThe configuration for VM IPs. Options are"WORKER_IP_PUBLIC"or"WORKER_IP_PRIVATE".kmsKeyNameThe name for the Cloud KMS key for the job. Key format is:projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEYlabelsUser labels to be specified for the job. Keys and values should follow the restrictionsmachineTypeThe machine type to use for the job.maxWorkersThe number of workers permitted to work on the job. More workers may improve processing speed at additional cost.nameA unique name for the resource, required by Dataflow.networkThe network to which VMs will be assigned. If it is not provided, "default" will be used.onDeleteOne of "drain" or "cancel". Specifies behavior of deletion duringpulumi destroy. See above note.parametersTemplate specific Key/Value pairs to be forwarded to the pipeline's options; keys areprojectThe project in which the resource belongs. If it is not provided, the provider project is used.regionThe region in which the created job should run.serviceAccountEmailThe Service Account email used to create the job. This should be just an email e.g.myserviceaccount@myproject.iam.gserviceaccount.com. Do not include anyserviceAccount:or other prefix.skipWaitOnJobTerminationIf set totrue, Pulumi will treatDRAININGandCANCELLINGas terminal states when deleting the resource, and will remove the resource from Pulumi state and move on. See above note.subnetworkThe subnetwork to which VMs will be assigned. Should be of the form "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. For example"googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/subnetworks/SUBNET_NAME"tempGcsLocationA writeable location on GCS for the Dataflow job to dump its temporary data.templateGcsPathThe GCS path to the Dataflow job template.transformNameMappingOnly applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced with the corresponding name prefixes of the new job. This field is not used outside of update.zoneThe zone in which the created job should run. If it is not provided, the provider zone is used.const -
JobArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
additionalExperiments
→ Input<
List< ?String> ?> -
List of experiments that should be used by the job. An example value is
["enableStackdriverAgentMetrics"].final -
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE".
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
enableStreamingEngine
→ Input<
bool?> ? -
Enable/disable the use of Streaming Engine for the job. Note that Streaming Engine is enabled by default for pipelines developed against the Beam SDK for Python v2.21.0 or later when using Python 3.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ipConfiguration
→ Input<
String?> ? -
The configuration for VM IPs. Options are
"WORKER_IP_PUBLIC"or"WORKER_IP_PRIVATE".final -
kmsKeyName
→ Input<
String?> ? -
The name for the Cloud KMS key for the job. Key format is:
projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEYfinal -
labels
→ Input<
Map< ?String, String> ?> -
User labels to be specified for the job. Keys and values should follow the restrictions
specified in the labeling restrictions page.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effectiveLabelsfor all of the labels present on the resource.final -
machineType
→ Input<
String?> ? -
The machine type to use for the job.
final
-
maxWorkers
→ Input<
int?> ? -
The number of workers permitted to work on the job. More workers may improve processing speed at additional cost.
final
-
name
→ Input<
String?> ? -
A unique name for the resource, required by Dataflow.
final
-
network
→ Input<
String?> ? -
The network to which VMs will be assigned. If it is not provided, "default" will be used.
final
-
onDelete
→ Input<
String?> ? -
One of "drain" or "cancel". Specifies behavior of deletion during
pulumi destroy. See above note.final -
parameters
→ Input<
Map< ?String, String> ?> -
Template specific Key/Value pairs to be forwarded to the pipeline's options; keys are
case-sensitive based on the language on which the pipeline is coded, mostly Java.
Note: do not configure Dataflow options here in parameters.
final
-
project
→ Input<
String?> ? -
The project in which the resource belongs. If it is not provided, the provider project is used.
final
-
region
→ Input<
String?> ? -
The region in which the created job should run.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceAccountEmail
→ Input<
String?> ? -
The Service Account email used to create the job. This should be just an email e.g.
myserviceaccount@myproject.iam.gserviceaccount.com. Do not include anyserviceAccount:or other prefix.final -
skipWaitOnJobTermination
→ Input<
bool?> ? -
If set to
true, Pulumi will treatDRAININGandCANCELLINGas terminal states when deleting the resource, and will remove the resource from Pulumi state and move on. See above note.final -
subnetwork
→ Input<
String?> ? -
The subnetwork to which VMs will be assigned. Should be of the form "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. For example
"googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/subnetworks/SUBNET_NAME"final -
tempGcsLocation
→ Input<
String> -
A writeable location on GCS for the Dataflow job to dump its temporary data.
final
-
templateGcsPath
→ Input<
String> -
The GCS path to the Dataflow job template.
final
-
transformNameMapping
→ Input<
Map< ?String, String> ?> -
Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced with the corresponding name prefixes of the new job. This field is not used outside of update.
final
-
zone
→ Input<
String?> ? -
The zone in which the created job should run. If it is not provided, the provider zone is used.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited