Skip to content

Latest commit

 

History

History
236 lines (145 loc) · 8.05 KB

cloudfunctions_function_iam_binding.md

File metadata and controls

236 lines (145 loc) · 8.05 KB
permalink
/cloudfunctions_function_iam_binding/

cloudfunctions_function_iam_binding

cloudfunctions_function_iam_binding represents the google_cloudfunctions_function_iam_binding Terraform resource.

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

Index

Fields

fn new

new()

google.cloudfunctions_function_iam_binding.new injects a new google_cloudfunctions_function_iam_binding 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.cloudfunctions_function_iam_binding.new('some_id')

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

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

This is the same as directly entering "${ google_cloudfunctions_function_iam_binding.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.
  • cloud_function (string): Set the cloud_function field on the resulting resource block.
  • members (list): Set the members 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.
  • region (string): Set the region field on the resulting resource block. When null, the region field will be omitted from the resulting object.
  • role (string): Set the role field on the resulting resource block.
  • 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.cloudfunctions_function_iam_binding.condition.new constructor.

Returns:

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

fn newAttrs

newAttrs()

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

Unlike google.cloudfunctions_function_iam_binding.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:

  • cloud_function (string): Set the cloud_function field on the resulting object.
  • members (list): Set the members 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.
  • region (string): Set the region field on the resulting object. When null, the region field will be omitted from the resulting object.
  • role (string): Set the role field on 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.cloudfunctions_function_iam_binding.condition.new constructor.

Returns:

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

fn withCloudFunction

withCloudFunction()

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

Args:

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

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 withMembers

withMembers()

google.list.withMembers constructs a mixin object that can be merged into the list Terraform resource block to set or update the members field.

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (list): The value to set for the members 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 withRegion

withRegion()

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

Args:

  • resourceLabel (string): The name label of the block to update.
  • value (string): The value to set for the region 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.

obj condition

fn condition.new

new()

google.cloudfunctions_function_iam_binding.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.