permalink |
---|
/compute_image_iam_member/ |
compute_image_iam_member
represents the google_compute_image_iam_member
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withCondition()
fn withConditionMixin()
fn withImage()
fn withMember()
fn withProject()
fn withRole()
obj condition
new()
google.compute_image_iam_member.new
injects a new google_compute_image_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_image_iam_member.new('some_id')
You can get the reference to the id
field of the created google.compute_image_iam_member
using the reference:
$._ref.google_compute_image_iam_member.some_id.get('id')
This is the same as directly entering "${ google_compute_image_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.image
(string
): Set theimage
field on the resulting resource block.member
(string
): Set themember
field on the resulting resource block.project
(string
): Set theproject
field on the resulting resource block. Whennull
, theproject
field will be omitted from the resulting object.role
(string
): Set therole
field on the resulting resource block.condition
(list[obj]
): Set thecondition
field on the resulting resource block. Whennull
, thecondition
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_image_iam_member.condition.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.compute_image_iam_member.newAttrs
constructs a new object with attributes and blocks configured for the compute_image_iam_member
Terraform resource.
Unlike google.compute_image_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:
image
(string
): Set theimage
field on the resulting object.member
(string
): Set themember
field on the resulting object.project
(string
): Set theproject
field on the resulting object. Whennull
, theproject
field will be omitted from the resulting object.role
(string
): Set therole
field on the resulting object.condition
(list[obj]
): Set thecondition
field on the resulting object. Whennull
, thecondition
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_image_iam_member.condition.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
compute_image_iam_member
resource into the root Terraform configuration.
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 thecondition
field.
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 thecondition
field.
withImage()
google.string.withImage
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the image field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theimage
field.
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 themember
field.
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 theproject
field.
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 therole
field.
new()
google.compute_image_iam_member.condition.new
constructs a new object with attributes and blocks configured for the condition
Terraform sub block.
Args:
description
(string
): Set thedescription
field on the resulting object. Whennull
, thedescription
field will be omitted from the resulting object.expression
(string
): Set theexpression
field on the resulting object.title
(string
): Set thetitle
field on the resulting object.
Returns:
- An attribute object that represents the
condition
sub block.