permalink |
---|
/docdb_cluster/ |
docdb_cluster
represents the aws_docdb_cluster
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAllowMajorVersionUpgrade()
fn withApplyImmediately()
fn withAvailabilityZones()
fn withBackupRetentionPeriod()
fn withClusterIdentifier()
fn withClusterIdentifierPrefix()
fn withClusterMembers()
fn withDbClusterParameterGroupName()
fn withDbSubnetGroupName()
fn withDeletionProtection()
fn withEnabledCloudwatchLogsExports()
fn withEngine()
fn withEngineVersion()
fn withFinalSnapshotIdentifier()
fn withGlobalClusterIdentifier()
fn withKmsKeyId()
fn withMasterPassword()
fn withMasterUsername()
fn withPort()
fn withPreferredBackupWindow()
fn withPreferredMaintenanceWindow()
fn withSkipFinalSnapshot()
fn withSnapshotIdentifier()
fn withStorageEncrypted()
fn withTags()
fn withTagsAll()
fn withTimeouts()
fn withTimeoutsMixin()
fn withVpcSecurityGroupIds()
obj timeouts
new()
aws.docdb_cluster.new
injects a new aws_docdb_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.docdb_cluster.new('some_id')
You can get the reference to the id
field of the created aws.docdb_cluster
using the reference:
$._ref.aws_docdb_cluster.some_id.get('id')
This is the same as directly entering "${ aws_docdb_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.allow_major_version_upgrade
(bool
): Set theallow_major_version_upgrade
field on the resulting resource block. Whennull
, theallow_major_version_upgrade
field will be omitted from the resulting object.apply_immediately
(bool
): Set theapply_immediately
field on the resulting resource block. Whennull
, theapply_immediately
field will be omitted from the resulting object.availability_zones
(list
): Set theavailability_zones
field on the resulting resource block. Whennull
, theavailability_zones
field will be omitted from the resulting object.backup_retention_period
(number
): Set thebackup_retention_period
field on the resulting resource block. Whennull
, thebackup_retention_period
field will be omitted from the resulting object.cluster_identifier
(string
): Set thecluster_identifier
field on the resulting resource block. Whennull
, thecluster_identifier
field will be omitted from the resulting object.cluster_identifier_prefix
(string
): Set thecluster_identifier_prefix
field on the resulting resource block. Whennull
, thecluster_identifier_prefix
field will be omitted from the resulting object.cluster_members
(list
): Set thecluster_members
field on the resulting resource block. Whennull
, thecluster_members
field will be omitted from the resulting object.db_cluster_parameter_group_name
(string
): Set thedb_cluster_parameter_group_name
field on the resulting resource block. Whennull
, thedb_cluster_parameter_group_name
field will be omitted from the resulting object.db_subnet_group_name
(string
): Set thedb_subnet_group_name
field on the resulting resource block. Whennull
, thedb_subnet_group_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.enabled_cloudwatch_logs_exports
(list
): Set theenabled_cloudwatch_logs_exports
field on the resulting resource block. Whennull
, theenabled_cloudwatch_logs_exports
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.final_snapshot_identifier
(string
): Set thefinal_snapshot_identifier
field on the resulting resource block. Whennull
, thefinal_snapshot_identifier
field will be omitted from the resulting object.global_cluster_identifier
(string
): Set theglobal_cluster_identifier
field on the resulting resource block. Whennull
, theglobal_cluster_identifier
field will be omitted from the resulting object.kms_key_id
(string
): Set thekms_key_id
field on the resulting resource block. Whennull
, thekms_key_id
field will be omitted from the resulting object.master_password
(string
): Set themaster_password
field on the resulting resource block. Whennull
, themaster_password
field will be omitted from the resulting object.master_username
(string
): Set themaster_username
field on the resulting resource block. Whennull
, themaster_username
field will be omitted from the resulting object.port
(number
): Set theport
field on the resulting resource block. Whennull
, theport
field will be omitted from the resulting object.preferred_backup_window
(string
): Set thepreferred_backup_window
field on the resulting resource block. Whennull
, thepreferred_backup_window
field will be omitted from the resulting object.preferred_maintenance_window
(string
): Set thepreferred_maintenance_window
field on the resulting resource block. Whennull
, thepreferred_maintenance_window
field will be omitted from the resulting object.skip_final_snapshot
(bool
): Set theskip_final_snapshot
field on the resulting resource block. Whennull
, theskip_final_snapshot
field will be omitted from the resulting object.snapshot_identifier
(string
): Set thesnapshot_identifier
field on the resulting resource block. Whennull
, thesnapshot_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.tags
(obj
): Set thetags
field on the resulting resource block. Whennull
, thetags
field will be omitted from the resulting object.tags_all
(obj
): Set thetags_all
field on the resulting resource block. Whennull
, thetags_all
field will be omitted from the resulting object.vpc_security_group_ids
(list
): Set thevpc_security_group_ids
field on the resulting resource block. Whennull
, thevpc_security_group_ids
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.docdb_cluster.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.docdb_cluster.newAttrs
constructs a new object with attributes and blocks configured for the docdb_cluster
Terraform resource.
Unlike aws.docdb_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:
allow_major_version_upgrade
(bool
): Set theallow_major_version_upgrade
field on the resulting object. Whennull
, theallow_major_version_upgrade
field will be omitted from the resulting object.apply_immediately
(bool
): Set theapply_immediately
field on the resulting object. Whennull
, theapply_immediately
field will be omitted from the resulting object.availability_zones
(list
): Set theavailability_zones
field on the resulting object. Whennull
, theavailability_zones
field will be omitted from the resulting object.backup_retention_period
(number
): Set thebackup_retention_period
field on the resulting object. Whennull
, thebackup_retention_period
field will be omitted from the resulting object.cluster_identifier
(string
): Set thecluster_identifier
field on the resulting object. Whennull
, thecluster_identifier
field will be omitted from the resulting object.cluster_identifier_prefix
(string
): Set thecluster_identifier_prefix
field on the resulting object. Whennull
, thecluster_identifier_prefix
field will be omitted from the resulting object.cluster_members
(list
): Set thecluster_members
field on the resulting object. Whennull
, thecluster_members
field will be omitted from the resulting object.db_cluster_parameter_group_name
(string
): Set thedb_cluster_parameter_group_name
field on the resulting object. Whennull
, thedb_cluster_parameter_group_name
field will be omitted from the resulting object.db_subnet_group_name
(string
): Set thedb_subnet_group_name
field on the resulting object. Whennull
, thedb_subnet_group_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.enabled_cloudwatch_logs_exports
(list
): Set theenabled_cloudwatch_logs_exports
field on the resulting object. Whennull
, theenabled_cloudwatch_logs_exports
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.final_snapshot_identifier
(string
): Set thefinal_snapshot_identifier
field on the resulting object. Whennull
, thefinal_snapshot_identifier
field will be omitted from the resulting object.global_cluster_identifier
(string
): Set theglobal_cluster_identifier
field on the resulting object. Whennull
, theglobal_cluster_identifier
field will be omitted from the resulting object.kms_key_id
(string
): Set thekms_key_id
field on the resulting object. Whennull
, thekms_key_id
field will be omitted from the resulting object.master_password
(string
): Set themaster_password
field on the resulting object. Whennull
, themaster_password
field will be omitted from the resulting object.master_username
(string
): Set themaster_username
field on the resulting object. Whennull
, themaster_username
field will be omitted from the resulting object.port
(number
): Set theport
field on the resulting object. Whennull
, theport
field will be omitted from the resulting object.preferred_backup_window
(string
): Set thepreferred_backup_window
field on the resulting object. Whennull
, thepreferred_backup_window
field will be omitted from the resulting object.preferred_maintenance_window
(string
): Set thepreferred_maintenance_window
field on the resulting object. Whennull
, thepreferred_maintenance_window
field will be omitted from the resulting object.skip_final_snapshot
(bool
): Set theskip_final_snapshot
field on the resulting object. Whennull
, theskip_final_snapshot
field will be omitted from the resulting object.snapshot_identifier
(string
): Set thesnapshot_identifier
field on the resulting object. Whennull
, thesnapshot_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.tags
(obj
): Set thetags
field on the resulting object. Whennull
, thetags
field will be omitted from the resulting object.tags_all
(obj
): Set thetags_all
field on the resulting object. Whennull
, thetags_all
field will be omitted from the resulting object.vpc_security_group_ids
(list
): Set thevpc_security_group_ids
field on the resulting object. Whennull
, thevpc_security_group_ids
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.docdb_cluster.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
docdb_cluster
resource into the root Terraform configuration.
withAllowMajorVersionUpgrade()
aws.bool.withAllowMajorVersionUpgrade
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the allow_major_version_upgrade field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theallow_major_version_upgrade
field.
withApplyImmediately()
aws.bool.withApplyImmediately
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the apply_immediately field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theapply_immediately
field.
withAvailabilityZones()
aws.list.withAvailabilityZones
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the availability_zones field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theavailability_zones
field.
withBackupRetentionPeriod()
aws.number.withBackupRetentionPeriod
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the backup_retention_period field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for thebackup_retention_period
field.
withClusterIdentifier()
aws.string.withClusterIdentifier
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the cluster_identifier field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecluster_identifier
field.
withClusterIdentifierPrefix()
aws.string.withClusterIdentifierPrefix
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the cluster_identifier_prefix field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecluster_identifier_prefix
field.
withClusterMembers()
aws.list.withClusterMembers
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the cluster_members field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for thecluster_members
field.
withDbClusterParameterGroupName()
aws.string.withDbClusterParameterGroupName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the db_cluster_parameter_group_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedb_cluster_parameter_group_name
field.
withDbSubnetGroupName()
aws.string.withDbSubnetGroupName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the db_subnet_group_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedb_subnet_group_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.
withEnabledCloudwatchLogsExports()
aws.list.withEnabledCloudwatchLogsExports
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the enabled_cloudwatch_logs_exports field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theenabled_cloudwatch_logs_exports
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.
withFinalSnapshotIdentifier()
aws.string.withFinalSnapshotIdentifier
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the final_snapshot_identifier field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thefinal_snapshot_identifier
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.
withKmsKeyId()
aws.string.withKmsKeyId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the kms_key_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thekms_key_id
field.
withMasterPassword()
aws.string.withMasterPassword
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the master_password field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themaster_password
field.
withMasterUsername()
aws.string.withMasterUsername
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the master_username field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themaster_username
field.
withPort()
aws.number.withPort
constructs a mixin object that can be merged into the number
Terraform resource block to set or update the port field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(number
): The value to set for theport
field.
withPreferredBackupWindow()
aws.string.withPreferredBackupWindow
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the preferred_backup_window field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thepreferred_backup_window
field.
withPreferredMaintenanceWindow()
aws.string.withPreferredMaintenanceWindow
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the preferred_maintenance_window field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thepreferred_maintenance_window
field.
withSkipFinalSnapshot()
aws.bool.withSkipFinalSnapshot
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the skip_final_snapshot field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theskip_final_snapshot
field.
withSnapshotIdentifier()
aws.string.withSnapshotIdentifier
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the snapshot_identifier field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thesnapshot_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.
withTags()
aws.obj.withTags
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the tags field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags
field.
withTagsAll()
aws.obj.withTagsAll
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the tags_all field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetags_all
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.
withVpcSecurityGroupIds()
aws.list.withVpcSecurityGroupIds
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the vpc_security_group_ids field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for thevpc_security_group_ids
field.
new()
aws.docdb_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.