permalink |
---|
/filestore_instance/ |
filestore_instance
represents the google_filestore_instance
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withDescription()
fn withFileShares()
fn withFileSharesMixin()
fn withKmsKeyName()
fn withLabels()
fn withLocation()
fn withName()
fn withNetworks()
fn withNetworksMixin()
fn withProject()
fn withTier()
fn withTimeouts()
fn withTimeoutsMixin()
fn withZone()
obj file_shares
obj networks
obj timeouts
new()
google.filestore_instance.new
injects a new google_filestore_instance
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.filestore_instance.new('some_id')
You can get the reference to the id
field of the created google.filestore_instance
using the reference:
$._ref.google_filestore_instance.some_id.get('id')
This is the same as directly entering "${ google_filestore_instance.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.description
(string
): A description of the instance. Whennull
, thedescription
field will be omitted from the resulting object.kms_key_name
(string
): KMS key name used for data encryption. Whennull
, thekms_key_name
field will be omitted from the resulting object.labels
(obj
): Resource labels to represent user-provided metadata. Whennull
, thelabels
field will be omitted from the resulting object.location
(string
): The name of the location of the instance. This can be a region for ENTERPRISE tier instances. Whennull
, thelocation
field will be omitted from the resulting object.name
(string
): The resource name of the instance.project
(string
): Set theproject
field on the resulting resource block. Whennull
, theproject
field will be omitted from the resulting object.tier
(string
): The service tier of the instance. Possible values include: STANDARD, PREMIUM, BASIC_HDD, BASIC_SSD, HIGH_SCALE_SSD, ZONAL and ENTERPRISEzone
(string
): The name of the Filestore zone of the instance. Whennull
, thezone
field will be omitted from the resulting object.file_shares
(list[obj]
): File system shares on the instance. For this version, only a single file share is supported. Whennull
, thefile_shares
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.filestore_instance.file_shares.new constructor.networks
(list[obj]
): VPC networks to which the instance is connected. For this version, only a single network is supported. Whennull
, thenetworks
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.filestore_instance.networks.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.filestore_instance.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.filestore_instance.newAttrs
constructs a new object with attributes and blocks configured for the filestore_instance
Terraform resource.
Unlike google.filestore_instance.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:
description
(string
): A description of the instance. Whennull
, thedescription
field will be omitted from the resulting object.kms_key_name
(string
): KMS key name used for data encryption. Whennull
, thekms_key_name
field will be omitted from the resulting object.labels
(obj
): Resource labels to represent user-provided metadata. Whennull
, thelabels
field will be omitted from the resulting object.location
(string
): The name of the location of the instance. This can be a region for ENTERPRISE tier instances. Whennull
, thelocation
field will be omitted from the resulting object.name
(string
): The resource name of the instance.project
(string
): Set theproject
field on the resulting object. Whennull
, theproject
field will be omitted from the resulting object.tier
(string
): The service tier of the instance. Possible values include: STANDARD, PREMIUM, BASIC_HDD, BASIC_SSD, HIGH_SCALE_SSD, ZONAL and ENTERPRISEzone
(string
): The name of the Filestore zone of the instance. Whennull
, thezone
field will be omitted from the resulting object.file_shares
(list[obj]
): File system shares on the instance. For this version, only a single file share is supported. Whennull
, thefile_shares
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.filestore_instance.file_shares.new constructor.networks
(list[obj]
): VPC networks to which the instance is connected. For this version, only a single network is supported. Whennull
, thenetworks
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.filestore_instance.networks.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.filestore_instance.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
filestore_instance
resource into the root Terraform configuration.
withDescription()
google.string.withDescription
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the description field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedescription
field.
withFileShares()
google.list[obj].withFileShares
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the file_shares 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].withFileSharesMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thefile_shares
field.
withFileSharesMixin()
google.list[obj].withFileSharesMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the file_shares 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].withFileShares
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thefile_shares
field.
withKmsKeyName()
google.string.withKmsKeyName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the kms_key_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thekms_key_name
field.
withLabels()
google.obj.withLabels
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the labels field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thelabels
field.
withLocation()
google.string.withLocation
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the location field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thelocation
field.
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 thename
field.
withNetworks()
google.list[obj].withNetworks
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the networks 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].withNetworksMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetworks
field.
withNetworksMixin()
google.list[obj].withNetworksMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the networks 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].withNetworks
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetworks
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.
withTier()
google.string.withTier
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the tier field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetier
field.
withTimeouts()
google.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
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 thezone
field.
new()
google.filestore_instance.file_shares.new
constructs a new object with attributes and blocks configured for the file_shares
Terraform sub block.
Args:
capacity_gb
(number
): File share capacity in GiB. This must be at least 1024 GiB for the standard tier, or 2560 GiB for the premium tier.name
(string
): The name of the fileshare (16 characters or less)nfs_export_options
(list[obj]
): Nfs Export Options. There is a limit of 10 export options per file share. Whennull
, thenfs_export_options
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.filestore_instance.file_shares.nfs_export_options.new constructor.
Returns:
- An attribute object that represents the
file_shares
sub block.
new()
google.filestore_instance.file_shares.nfs_export_options.new
constructs a new object with attributes and blocks configured for the nfs_export_options
Terraform sub block.
Args:
access_mode
(string
): Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE. Default value: "READ_WRITE" Possible values: ["READ_ONLY", "READ_WRITE"] Whennull
, theaccess_mode
field will be omitted from the resulting object.anon_gid
(number
): An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squashMode of ROOT_SQUASH. An error will be returned if this field is specified for other squashMode settings. Whennull
, theanon_gid
field will be omitted from the resulting object.anon_uid
(number
): An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squashMode of ROOT_SQUASH. An error will be returned if this field is specified for other squashMode settings. Whennull
, theanon_uid
field will be omitted from the resulting object.ip_ranges
(list
): List of either IPv4 addresses, or ranges in CIDR notation which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. Whennull
, theip_ranges
field will be omitted from the resulting object.squash_mode
(string
): Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH. Default value: "NO_ROOT_SQUASH" Possible values: ["NO_ROOT_SQUASH", "ROOT_SQUASH"] Whennull
, thesquash_mode
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
nfs_export_options
sub block.
new()
google.filestore_instance.networks.new
constructs a new object with attributes and blocks configured for the networks
Terraform sub block.
Args:
connect_mode
(string
): The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING. Default value: "DIRECT_PEERING" Possible values: ["DIRECT_PEERING", "PRIVATE_SERVICE_ACCESS"] Whennull
, theconnect_mode
field will be omitted from the resulting object.modes
(list
): IP versions for which the instance has IP addresses assigned. Possible values: ["ADDRESS_MODE_UNSPECIFIED", "MODE_IPV4", "MODE_IPV6"]network
(string
): The name of the GCE VPC network to which the instance is connected.reserved_ip_range
(string
): A /29 CIDR block that identifies the range of IP addresses reserved for this instance. Whennull
, thereserved_ip_range
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
networks
sub block.
new()
google.filestore_instance.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.