permalink |
---|
/data/iam_policy/ |
iam_policy
represents the google_iam_policy
Terraform data source.
This package contains functions and utilities for setting up the data source using Jsonnet code.
fn new()
fn newAttrs()
fn withAuditConfig()
fn withAuditConfigMixin()
fn withBinding()
fn withBindingMixin()
obj audit_config
obj binding
new()
google.data.iam_policy.new
injects a new data_google_iam_policy
Terraform data source
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.data.iam_policy.new('some_id')
You can get the reference to the id
field of the created google.data.iam_policy
using the reference:
$._ref.data_google_iam_policy.some_id.get('id')
This is the same as directly entering "${ data_google_iam_policy.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:
dataSrcLabel
(string
): The name label of the block.audit_config
(list[obj]
): Set theaudit_config
field on the resulting data source block. Whennull
, theaudit_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.data.iam_policy.audit_config.new constructor.binding
(list[obj]
): Set thebinding
field on the resulting data source block. Whennull
, thebinding
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.data.iam_policy.binding.new constructor.
Returns:
- A mixin object that injects the new data source into the root Terraform configuration.
newAttrs()
google.data.iam_policy.newAttrs
constructs a new object with attributes and blocks configured for the iam_policy
Terraform data source.
Unlike google.data.iam_policy.new, this function will not inject the data source
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withData 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:
audit_config
(list[obj]
): Set theaudit_config
field on the resulting object. Whennull
, theaudit_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.data.iam_policy.audit_config.new constructor.binding
(list[obj]
): Set thebinding
field on the resulting object. Whennull
, thebinding
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.data.iam_policy.binding.new constructor.
Returns:
- An attribute object that can be used with tf.withData to construct a new
iam_policy
data source into the root Terraform configuration.
withAuditConfig()
google.list[obj].withAuditConfig
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the audit_config 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].withAuditConfigMixin function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theaudit_config
field.
withAuditConfigMixin()
google.list[obj].withAuditConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the audit_config 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].withAuditConfig
function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theaudit_config
field.
withBinding()
google.list[obj].withBinding
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the binding 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].withBindingMixin function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thebinding
field.
withBindingMixin()
google.list[obj].withBindingMixin
constructs a mixin object that can be merged into the list[obj]
Terraform data source block to set or update the binding 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].withBinding
function.
Args:
dataSrcLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thebinding
field.
new()
google.iam_policy.audit_config.new
constructs a new object with attributes and blocks configured for the audit_config
Terraform sub block.
Args:
service
(string
): Set theservice
field on the resulting object.audit_log_configs
(list[obj]
): Set theaudit_log_configs
field on the resulting object. Whennull
, theaudit_log_configs
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.iam_policy.audit_config.audit_log_configs.new constructor.
Returns:
- An attribute object that represents the
audit_config
sub block.
new()
google.iam_policy.audit_config.audit_log_configs.new
constructs a new object with attributes and blocks configured for the audit_log_configs
Terraform sub block.
Args:
exempted_members
(list
): Set theexempted_members
field on the resulting object. Whennull
, theexempted_members
field will be omitted from the resulting object.log_type
(string
): Set thelog_type
field on the resulting object.
Returns:
- An attribute object that represents the
audit_log_configs
sub block.
new()
google.iam_policy.binding.new
constructs a new object with attributes and blocks configured for the binding
Terraform sub block.
Args:
members
(list
): Set themembers
field on 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.iam_policy.binding.condition.new constructor.
Returns:
- An attribute object that represents the
binding
sub block.
new()
google.iam_policy.binding.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.