Skip to content

Latest commit

 

History

History
236 lines (145 loc) · 7.72 KB

compute_disk_iam_member.md

File metadata and controls

236 lines (145 loc) · 7.72 KB
permalink
/compute_disk_iam_member/

compute_disk_iam_member

compute_disk_iam_member represents the google_compute_disk_iam_member Terraform resource.

This package contains functions and utilities for setting up the resource using Jsonnet code.

Index

Fields

fn new

new()

google.compute_disk_iam_member.new injects a new google_compute_disk_iam_member Terraform resource block into the root module document.

Additionally, this inserts a private function into the _ref attribute that generates references to attributes of the resource. For example, if you added a new instance to the root using:

# arguments omitted for brevity
google.compute_disk_iam_member.new('some_id')

You can get the reference to the id field of the created google.compute_disk_iam_member using the reference:

$._ref.google_compute_disk_iam_member.some_id.get('id')

This is the same as directly entering "${ google_compute_disk_iam_member.some_id.id }" as the value.

NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super, self, or $ to refer to the root object. Instead, make an explicit outer object using local.

Args:

  • resourceLabel (string): The name label of the block.
  • member (string): Set the member field on the resulting resource block.
  • name (string): Set the name field on the resulting resource block.
  • project (string): Set the project field on the resulting resource block. When null, the project field will be omitted from the resulting object.
  • role (string): Set the role field on the resulting resource block.
  • zone (string): Set the zone field on the resulting resource block. When null, the zone field will be omitted from the resulting object.
  • condition (list[obj]): Set the condition field on the resulting resource block. When null, the condition sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_disk_iam_member.condition.new constructor.

Returns:

  • A mixin object that injects the new resource into the root Terraform configuration.

fn newAttrs

newAttrs()

google.compute_disk_iam_member.newAttrs constructs a new object with attributes and blocks configured for the compute_disk_iam_member Terraform resource.

Unlike google.compute_disk_iam_member.new, this function will not inject the resource block into the root Terraform document. Instead, this must be passed in as the attrs argument for the tf.withResource function to build a complete block.

This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.

Args:

  • member (string): Set the member field on the resulting object.
  • name (string): Set the name field on the resulting object.
  • project (string): Set the project field on the resulting object. When null, the project field will be omitted from the resulting object.
  • role (string): Set the role field on the resulting object.
  • zone (string): Set the zone field on the resulting object. When null, the zone field will be omitted from the resulting object.
  • condition (list[obj]): Set the condition field on the resulting object. When null, the condition sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_disk_iam_member.condition.new constructor.

Returns:

  • An attribute object that can be used with tf.withResource to construct a new compute_disk_iam_member resource into the root Terraform configuration.

fn withCondition

withCondition()

google.list[obj].withCondition constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the condition field.

This function will replace the array with the passed in value. If you wish to instead append the passed in value to the existing array, use the google.list[obj].withConditionMixin function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the condition field.

fn withConditionMixin

withConditionMixin()

google.list[obj].withConditionMixin constructs a mixin object that can be merged into the list[obj] Terraform resource block to set or update the condition field.

This function will append the passed in array or object to the existing array. If you wish to instead replace the array with the passed in value, use the google.list[obj].withCondition function.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list[obj]): The value to set for the condition field.

fn withMember

withMember()

google.string.withMember constructs a mixin object that can be merged into the string Terraform resource block to set or update the member field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the member field.

fn withName

withName()

google.string.withName constructs a mixin object that can be merged into the string Terraform resource block to set or update the name field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the name field.

fn withProject

withProject()

google.string.withProject constructs a mixin object that can be merged into the string Terraform resource block to set or update the project field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the project field.

fn withRole

withRole()

google.string.withRole constructs a mixin object that can be merged into the string Terraform resource block to set or update the role field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the role field.

fn withZone

withZone()

google.string.withZone constructs a mixin object that can be merged into the string Terraform resource block to set or update the zone field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the zone field.

obj condition

fn condition.new

new()

google.compute_disk_iam_member.condition.new constructs a new object with attributes and blocks configured for the condition Terraform sub block.

Args:

  • description (string): Set the description field on the resulting object. When null, the description field will be omitted from the resulting object.
  • expression (string): Set the expression field on the resulting object.
  • title (string): Set the title field on the resulting object.

Returns:

  • An attribute object that represents the condition sub block.