permalink |
---|
/rds_global_cluster/ |
rds_global_cluster
represents the aws_rds_global_cluster
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withDatabaseName()
fn withDeletionProtection()
fn withEngine()
fn withEngineVersion()
fn withForceDestroy()
fn withGlobalClusterIdentifier()
fn withSourceDbClusterIdentifier()
fn withStorageEncrypted()
fn withTimeouts()
fn withTimeoutsMixin()
obj timeouts
new()
aws.rds_global_cluster.new
injects a new aws_rds_global_cluster
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
aws.rds_global_cluster.new('some_id')
You can get the reference to the id
field of the created aws.rds_global_cluster
using the reference:
$._ref.aws_rds_global_cluster.some_id.get('id')
This is the same as directly entering "${ aws_rds_global_cluster.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.database_name
(string
): Set thedatabase_name
field on the resulting resource block. Whennull
, thedatabase_name
field will be omitted from the resulting object.deletion_protection
(bool
): Set thedeletion_protection
field on the resulting resource block. Whennull
, thedeletion_protection
field will be omitted from the resulting object.engine
(string
): Set theengine
field on the resulting resource block. Whennull
, theengine
field will be omitted from the resulting object.engine_version
(string
): Set theengine_version
field on the resulting resource block. Whennull
, theengine_version
field will be omitted from the resulting object.force_destroy
(bool
): Set theforce_destroy
field on the resulting resource block. Whennull
, theforce_destroy
field will be omitted from the resulting object.global_cluster_identifier
(string
): Set theglobal_cluster_identifier
field on the resulting resource block.source_db_cluster_identifier
(string
): Set thesource_db_cluster_identifier
field on the resulting resource block. Whennull
, thesource_db_cluster_identifier
field will be omitted from the resulting object.storage_encrypted
(bool
): Set thestorage_encrypted
field on the resulting resource block. Whennull
, thestorage_encrypted
field will be omitted from the resulting object.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 aws.rds_global_cluster.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.rds_global_cluster.newAttrs
constructs a new object with attributes and blocks configured for the rds_global_cluster
Terraform resource.
Unlike aws.rds_global_cluster.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:
database_name
(string
): Set thedatabase_name
field on the resulting object. Whennull
, thedatabase_name
field will be omitted from the resulting object.deletion_protection
(bool
): Set thedeletion_protection
field on the resulting object. Whennull
, thedeletion_protection
field will be omitted from the resulting object.engine
(string
): Set theengine
field on the resulting object. Whennull
, theengine
field will be omitted from the resulting object.engine_version
(string
): Set theengine_version
field on the resulting object. Whennull
, theengine_version
field will be omitted from the resulting object.force_destroy
(bool
): Set theforce_destroy
field on the resulting object. Whennull
, theforce_destroy
field will be omitted from the resulting object.global_cluster_identifier
(string
): Set theglobal_cluster_identifier
field on the resulting object.source_db_cluster_identifier
(string
): Set thesource_db_cluster_identifier
field on the resulting object. Whennull
, thesource_db_cluster_identifier
field will be omitted from the resulting object.storage_encrypted
(bool
): Set thestorage_encrypted
field on the resulting object. Whennull
, thestorage_encrypted
field will be omitted from the resulting object.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 aws.rds_global_cluster.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
rds_global_cluster
resource into the root Terraform configuration.
withDatabaseName()
aws.string.withDatabaseName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the database_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedatabase_name
field.
withDeletionProtection()
aws.bool.withDeletionProtection
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the deletion_protection field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thedeletion_protection
field.
withEngine()
aws.string.withEngine
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the engine field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theengine
field.
withEngineVersion()
aws.string.withEngineVersion
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the engine_version field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theengine_version
field.
withForceDestroy()
aws.bool.withForceDestroy
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the force_destroy field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theforce_destroy
field.
withGlobalClusterIdentifier()
aws.string.withGlobalClusterIdentifier
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the global_cluster_identifier field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theglobal_cluster_identifier
field.
withSourceDbClusterIdentifier()
aws.string.withSourceDbClusterIdentifier
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the source_db_cluster_identifier field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thesource_db_cluster_identifier
field.
withStorageEncrypted()
aws.bool.withStorageEncrypted
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the storage_encrypted field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thestorage_encrypted
field.
withTimeouts()
aws.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 aws.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
aws.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 aws.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
new()
aws.rds_global_cluster.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.