Module dataproc

dataproc

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.
class pulumi_gcp.dataproc.Cluster(resource_name, opts=None, cluster_config=None, labels=None, name=None, project=None, region=None, __props__=None, __name__=None, __opts__=None)

Manages a Cloud Dataproc cluster resource within GCP. For more information see the official dataproc documentation.

!> Warning: Due to limitations of the API, all arguments except labels,cluster_config.worker_config.num_instances and cluster_config.preemptible_worker_config.num_instances are non-updateable. Changing others will cause recreation of the whole cluster!

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • cluster_config (pulumi.Input[dict]) – Allows you to configure various aspects of the cluster. Structure defined below.
  • labels (pulumi.Input[dict]) – The list of labels (key/value pairs) to be applied to instances in the cluster. GCP generates some itself including goog-dataproc-cluster-name which is the name of the cluster.
  • name (pulumi.Input[str]) – The name of the cluster, unique within the project and zone.
  • project (pulumi.Input[str]) – The ID of the project in which the cluster will exist. If it is not provided, the provider project is used.
  • region (pulumi.Input[str]) – The region in which the cluster and associated nodes will be created in. Defaults to global.
cluster_config = None

Allows you to configure various aspects of the cluster. Structure defined below.

labels = None

The list of labels (key/value pairs) to be applied to instances in the cluster. GCP generates some itself including goog-dataproc-cluster-name which is the name of the cluster.

name = None

The name of the cluster, unique within the project and zone.

project = None

The ID of the project in which the cluster will exist. If it is not provided, the provider project is used.

region = None

The region in which the cluster and associated nodes will be created in. Defaults to global.

static get(resource_name, id, opts=None, cluster_config=None, labels=None, name=None, project=None, region=None)

Get an existing Cluster resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] cluster_config: Allows you to configure various aspects of the cluster.

Structure defined below.
Parameters:
  • labels (pulumi.Input[dict]) – The list of labels (key/value pairs) to be applied to instances in the cluster. GCP generates some itself including goog-dataproc-cluster-name which is the name of the cluster.
  • name (pulumi.Input[str]) – The name of the cluster, unique within the project and zone.
  • project (pulumi.Input[str]) – The ID of the project in which the cluster will exist. If it is not provided, the provider project is used.
  • region (pulumi.Input[str]) – The region in which the cluster and associated nodes will be created in. Defaults to global.
translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_gcp.dataproc.ClusterIAMBinding(resource_name, opts=None, cluster=None, members=None, project=None, region=None, role=None, __props__=None, __name__=None, __opts__=None)

Three different resources help you manage IAM policies on dataproc clusters. Each of these resources serves a different use case:

  • dataproc.ClusterIAMPolicy: Authoritative. Sets the IAM policy for the cluster and replaces any existing policy already attached.
  • dataproc.ClusterIAMBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the cluster are preserved.
  • dataproc.ClusterIAMMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cluster are preserved.

Note: dataproc.ClusterIAMPolicy cannot be used in conjunction with dataproc.ClusterIAMBinding and dataproc.ClusterIAMMember or they will fight over what your policy should be. In addition, be careful not to accidentaly unset ownership of the cluster as dataproc.ClusterIAMPolicy replaces the entire policy.

Note: dataproc.ClusterIAMBinding resources can be used in conjunction with dataproc.ClusterIAMMember resources only if they do not grant privilege to the same role.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • cluster (pulumi.Input[str]) – The name or relative resource id of the cluster to manage IAM policies for.
  • project (pulumi.Input[str]) – The project in which the cluster belongs. If it is not provided, this provider will use the provider default.
  • region (pulumi.Input[str]) – The region in which the cluster belongs. If it is not provided, this provider will use the provider default.
  • role (pulumi.Input[str]) – The role that should be applied. Only one dataproc.ClusterIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.
cluster = None

The name or relative resource id of the cluster to manage IAM policies for.

etag = None

(Computed) The etag of the clusters’s IAM policy.

project = None

The project in which the cluster belongs. If it is not provided, this provider will use the provider default.

region = None

The region in which the cluster belongs. If it is not provided, this provider will use the provider default.

role = None

The role that should be applied. Only one dataproc.ClusterIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.

static get(resource_name, id, opts=None, cluster=None, etag=None, members=None, project=None, region=None, role=None)

Get an existing ClusterIAMBinding resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cluster: The name or relative resource id of the cluster to manage IAM policies for. :param pulumi.Input[str] etag: (Computed) The etag of the clusters’s IAM policy. :param pulumi.Input[str] project: The project in which the cluster belongs. If it

is not provided, this provider will use the provider default.
Parameters:
  • region (pulumi.Input[str]) – The region in which the cluster belongs. If it is not provided, this provider will use the provider default.
  • role (pulumi.Input[str]) – The role that should be applied. Only one dataproc.ClusterIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.
translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_gcp.dataproc.ClusterIAMMember(resource_name, opts=None, cluster=None, member=None, project=None, region=None, role=None, __props__=None, __name__=None, __opts__=None)

Three different resources help you manage IAM policies on dataproc clusters. Each of these resources serves a different use case:

  • dataproc.ClusterIAMPolicy: Authoritative. Sets the IAM policy for the cluster and replaces any existing policy already attached.
  • dataproc.ClusterIAMBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the cluster are preserved.
  • dataproc.ClusterIAMMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cluster are preserved.

Note: dataproc.ClusterIAMPolicy cannot be used in conjunction with dataproc.ClusterIAMBinding and dataproc.ClusterIAMMember or they will fight over what your policy should be. In addition, be careful not to accidentaly unset ownership of the cluster as dataproc.ClusterIAMPolicy replaces the entire policy.

Note: dataproc.ClusterIAMBinding resources can be used in conjunction with dataproc.ClusterIAMMember resources only if they do not grant privilege to the same role.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • cluster (pulumi.Input[str]) – The name or relative resource id of the cluster to manage IAM policies for.
  • project (pulumi.Input[str]) – The project in which the cluster belongs. If it is not provided, this provider will use the provider default.
  • region (pulumi.Input[str]) – The region in which the cluster belongs. If it is not provided, this provider will use the provider default.
  • role (pulumi.Input[str]) – The role that should be applied. Only one dataproc.ClusterIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.
cluster = None

The name or relative resource id of the cluster to manage IAM policies for.

etag = None

(Computed) The etag of the clusters’s IAM policy.

project = None

The project in which the cluster belongs. If it is not provided, this provider will use the provider default.

region = None

The region in which the cluster belongs. If it is not provided, this provider will use the provider default.

role = None

The role that should be applied. Only one dataproc.ClusterIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.

static get(resource_name, id, opts=None, cluster=None, etag=None, member=None, project=None, region=None, role=None)

Get an existing ClusterIAMMember resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cluster: The name or relative resource id of the cluster to manage IAM policies for. :param pulumi.Input[str] etag: (Computed) The etag of the clusters’s IAM policy. :param pulumi.Input[str] project: The project in which the cluster belongs. If it

is not provided, this provider will use the provider default.
Parameters:
  • region (pulumi.Input[str]) – The region in which the cluster belongs. If it is not provided, this provider will use the provider default.
  • role (pulumi.Input[str]) – The role that should be applied. Only one dataproc.ClusterIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.
translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_gcp.dataproc.ClusterIAMPolicy(resource_name, opts=None, cluster=None, policy_data=None, project=None, region=None, __props__=None, __name__=None, __opts__=None)

Three different resources help you manage IAM policies on dataproc clusters. Each of these resources serves a different use case:

  • dataproc.ClusterIAMPolicy: Authoritative. Sets the IAM policy for the cluster and replaces any existing policy already attached.
  • dataproc.ClusterIAMBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the cluster are preserved.
  • dataproc.ClusterIAMMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cluster are preserved.

Note: dataproc.ClusterIAMPolicy cannot be used in conjunction with dataproc.ClusterIAMBinding and dataproc.ClusterIAMMember or they will fight over what your policy should be. In addition, be careful not to accidentaly unset ownership of the cluster as dataproc.ClusterIAMPolicy replaces the entire policy.

Note: dataproc.ClusterIAMBinding resources can be used in conjunction with dataproc.ClusterIAMMember resources only if they do not grant privilege to the same role.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • cluster (pulumi.Input[str]) – The name or relative resource id of the cluster to manage IAM policies for.
  • policy_data (pulumi.Input[str]) – The policy data generated by a organizations.getIAMPolicy data source.
  • project (pulumi.Input[str]) – The project in which the cluster belongs. If it is not provided, this provider will use the provider default.
  • region (pulumi.Input[str]) – The region in which the cluster belongs. If it is not provided, this provider will use the provider default.
cluster = None

The name or relative resource id of the cluster to manage IAM policies for.

etag = None

(Computed) The etag of the clusters’s IAM policy.

policy_data = None

The policy data generated by a organizations.getIAMPolicy data source.

project = None

The project in which the cluster belongs. If it is not provided, this provider will use the provider default.

region = None

The region in which the cluster belongs. If it is not provided, this provider will use the provider default.

static get(resource_name, id, opts=None, cluster=None, etag=None, policy_data=None, project=None, region=None)

Get an existing ClusterIAMPolicy resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cluster: The name or relative resource id of the cluster to manage IAM policies for. :param pulumi.Input[str] etag: (Computed) The etag of the clusters’s IAM policy. :param pulumi.Input[str] policy_data: The policy data generated by a organizations.getIAMPolicy data source. :param pulumi.Input[str] project: The project in which the cluster belongs. If it

is not provided, this provider will use the provider default.
Parameters:region (pulumi.Input[str]) – The region in which the cluster belongs. If it is not provided, this provider will use the provider default.
translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_gcp.dataproc.Job(resource_name, opts=None, force_delete=None, hadoop_config=None, hive_config=None, labels=None, pig_config=None, placement=None, project=None, pyspark_config=None, reference=None, region=None, scheduling=None, spark_config=None, sparksql_config=None, __props__=None, __name__=None, __opts__=None)

Manages a job resource within a Dataproc cluster within GCE. For more information see the official dataproc documentation.

!> Note: This resource does not support ‘update’ and changing any attributes will cause the resource to be recreated.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • force_delete (pulumi.Input[bool]) – By default, you can only delete inactive jobs within Dataproc. Setting this to true, and calling destroy, will ensure that the job is first cancelled before issuing the delete.
  • labels (pulumi.Input[dict]) – The list of labels (key/value pairs) to add to the job.
  • project (pulumi.Input[str]) – The project in which the cluster can be found and jobs subsequently run against. If it is not provided, the provider project is used.
  • region (pulumi.Input[str]) – The Cloud Dataproc region. This essentially determines which clusters are available for this job to be submitted to. If not specified, defaults to global.
driver_controls_files_uri = None

If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.

driver_output_resource_uri = None

A URI pointing to the location of the stdout of the job’s driver program.

force_delete = None

By default, you can only delete inactive jobs within Dataproc. Setting this to true, and calling destroy, will ensure that the job is first cancelled before issuing the delete.

labels = None

The list of labels (key/value pairs) to add to the job.

project = None

The project in which the cluster can be found and jobs subsequently run against. If it is not provided, the provider project is used.

region = None

The Cloud Dataproc region. This essentially determines which clusters are available for this job to be submitted to. If not specified, defaults to global.

static get(resource_name, id, opts=None, driver_controls_files_uri=None, driver_output_resource_uri=None, force_delete=None, hadoop_config=None, hive_config=None, labels=None, pig_config=None, placement=None, project=None, pyspark_config=None, reference=None, region=None, scheduling=None, spark_config=None, sparksql_config=None, status=None)

Get an existing Job resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] driver_controls_files_uri: If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri. :param pulumi.Input[str] driver_output_resource_uri: A URI pointing to the location of the stdout of the job’s driver program. :param pulumi.Input[bool] force_delete: By default, you can only delete inactive jobs within

Dataproc. Setting this to true, and calling destroy, will ensure that the job is first cancelled before issuing the delete.
Parameters:
  • labels (pulumi.Input[dict]) – The list of labels (key/value pairs) to add to the job.
  • project (pulumi.Input[str]) – The project in which the cluster can be found and jobs subsequently run against. If it is not provided, the provider project is used.
  • region (pulumi.Input[str]) – The Cloud Dataproc region. This essentially determines which clusters are available for this job to be submitted to. If not specified, defaults to global.
translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_gcp.dataproc.JobIAMBinding(resource_name, opts=None, job_id=None, members=None, project=None, region=None, role=None, __props__=None, __name__=None, __opts__=None)

Three different resources help you manage IAM policies on dataproc jobs. Each of these resources serves a different use case:

  • dataproc.JobIAMPolicy: Authoritative. Sets the IAM policy for the job and replaces any existing policy already attached.
  • dataproc.JobIAMBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the job are preserved.
  • dataproc.JobIAMMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the job are preserved.

Note: dataproc.JobIAMPolicy cannot be used in conjunction with dataproc.JobIAMBinding and dataproc.JobIAMMember or they will fight over what your policy should be. In addition, be careful not to accidentaly unset ownership of the job as dataproc.JobIAMPolicy replaces the entire policy.

Note: dataproc.JobIAMBinding resources can be used in conjunction with dataproc.JobIAMMember resources only if they do not grant privilege to the same role.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • project (pulumi.Input[str]) – The project in which the job belongs. If it is not provided, this provider will use the provider default.
  • region (pulumi.Input[str]) – The region in which the job belongs. If it is not provided, this provider will use the provider default.
  • role (pulumi.Input[str]) – The role that should be applied. Only one dataproc.JobIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.
etag = None

(Computed) The etag of the jobs’s IAM policy.

project = None

The project in which the job belongs. If it is not provided, this provider will use the provider default.

region = None

The region in which the job belongs. If it is not provided, this provider will use the provider default.

role = None

The role that should be applied. Only one dataproc.JobIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.

static get(resource_name, id, opts=None, etag=None, job_id=None, members=None, project=None, region=None, role=None)

Get an existing JobIAMBinding resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] etag: (Computed) The etag of the jobs’s IAM policy. :param pulumi.Input[str] project: The project in which the job belongs. If it

is not provided, this provider will use the provider default.
Parameters:
  • region (pulumi.Input[str]) – The region in which the job belongs. If it is not provided, this provider will use the provider default.
  • role (pulumi.Input[str]) – The role that should be applied. Only one dataproc.JobIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.
translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_gcp.dataproc.JobIAMMember(resource_name, opts=None, job_id=None, member=None, project=None, region=None, role=None, __props__=None, __name__=None, __opts__=None)

Three different resources help you manage IAM policies on dataproc jobs. Each of these resources serves a different use case:

  • dataproc.JobIAMPolicy: Authoritative. Sets the IAM policy for the job and replaces any existing policy already attached.
  • dataproc.JobIAMBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the job are preserved.
  • dataproc.JobIAMMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the job are preserved.

Note: dataproc.JobIAMPolicy cannot be used in conjunction with dataproc.JobIAMBinding and dataproc.JobIAMMember or they will fight over what your policy should be. In addition, be careful not to accidentaly unset ownership of the job as dataproc.JobIAMPolicy replaces the entire policy.

Note: dataproc.JobIAMBinding resources can be used in conjunction with dataproc.JobIAMMember resources only if they do not grant privilege to the same role.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • project (pulumi.Input[str]) – The project in which the job belongs. If it is not provided, this provider will use the provider default.
  • region (pulumi.Input[str]) – The region in which the job belongs. If it is not provided, this provider will use the provider default.
  • role (pulumi.Input[str]) – The role that should be applied. Only one dataproc.JobIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.
etag = None

(Computed) The etag of the jobs’s IAM policy.

project = None

The project in which the job belongs. If it is not provided, this provider will use the provider default.

region = None

The region in which the job belongs. If it is not provided, this provider will use the provider default.

role = None

The role that should be applied. Only one dataproc.JobIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.

static get(resource_name, id, opts=None, etag=None, job_id=None, member=None, project=None, region=None, role=None)

Get an existing JobIAMMember resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] etag: (Computed) The etag of the jobs’s IAM policy. :param pulumi.Input[str] project: The project in which the job belongs. If it

is not provided, this provider will use the provider default.
Parameters:
  • region (pulumi.Input[str]) – The region in which the job belongs. If it is not provided, this provider will use the provider default.
  • role (pulumi.Input[str]) – The role that should be applied. Only one dataproc.JobIAMBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.
translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_gcp.dataproc.JobIAMPolicy(resource_name, opts=None, job_id=None, policy_data=None, project=None, region=None, __props__=None, __name__=None, __opts__=None)

Three different resources help you manage IAM policies on dataproc jobs. Each of these resources serves a different use case:

  • dataproc.JobIAMPolicy: Authoritative. Sets the IAM policy for the job and replaces any existing policy already attached.
  • dataproc.JobIAMBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the job are preserved.
  • dataproc.JobIAMMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the job are preserved.

Note: dataproc.JobIAMPolicy cannot be used in conjunction with dataproc.JobIAMBinding and dataproc.JobIAMMember or they will fight over what your policy should be. In addition, be careful not to accidentaly unset ownership of the job as dataproc.JobIAMPolicy replaces the entire policy.

Note: dataproc.JobIAMBinding resources can be used in conjunction with dataproc.JobIAMMember resources only if they do not grant privilege to the same role.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • policy_data (pulumi.Input[str]) – The policy data generated by a organizations.getIAMPolicy data source.
  • project (pulumi.Input[str]) – The project in which the job belongs. If it is not provided, this provider will use the provider default.
  • region (pulumi.Input[str]) – The region in which the job belongs. If it is not provided, this provider will use the provider default.
etag = None

(Computed) The etag of the jobs’s IAM policy.

policy_data = None

The policy data generated by a organizations.getIAMPolicy data source.

project = None

The project in which the job belongs. If it is not provided, this provider will use the provider default.

region = None

The region in which the job belongs. If it is not provided, this provider will use the provider default.

static get(resource_name, id, opts=None, etag=None, job_id=None, policy_data=None, project=None, region=None)

Get an existing JobIAMPolicy resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] etag: (Computed) The etag of the jobs’s IAM policy. :param pulumi.Input[str] policy_data: The policy data generated by a organizations.getIAMPolicy data source. :param pulumi.Input[str] project: The project in which the job belongs. If it

is not provided, this provider will use the provider default.
Parameters:region (pulumi.Input[str]) – The region in which the job belongs. If it is not provided, this provider will use the provider default.
translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str