permalink |
---|
/glue_partition/ |
glue_partition
represents the aws_glue_partition
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withCatalogId()
fn withDatabaseName()
fn withParameters()
fn withPartitionValues()
fn withStorageDescriptor()
fn withStorageDescriptorMixin()
fn withTableName()
obj storage_descriptor
new()
aws.glue_partition.new
injects a new aws_glue_partition
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.glue_partition.new('some_id')
You can get the reference to the id
field of the created aws.glue_partition
using the reference:
$._ref.aws_glue_partition.some_id.get('id')
This is the same as directly entering "${ aws_glue_partition.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.catalog_id
(string
): Set thecatalog_id
field on the resulting resource block. Whennull
, thecatalog_id
field will be omitted from the resulting object.database_name
(string
): Set thedatabase_name
field on the resulting resource block.parameters
(obj
): Set theparameters
field on the resulting resource block. Whennull
, theparameters
field will be omitted from the resulting object.partition_values
(list
): Set thepartition_values
field on the resulting resource block.table_name
(string
): Set thetable_name
field on the resulting resource block.storage_descriptor
(list[obj]
): Set thestorage_descriptor
field on the resulting resource block. Whennull
, thestorage_descriptor
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.glue_partition.storage_descriptor.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.glue_partition.newAttrs
constructs a new object with attributes and blocks configured for the glue_partition
Terraform resource.
Unlike aws.glue_partition.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:
catalog_id
(string
): Set thecatalog_id
field on the resulting object. Whennull
, thecatalog_id
field will be omitted from the resulting object.database_name
(string
): Set thedatabase_name
field on the resulting object.parameters
(obj
): Set theparameters
field on the resulting object. Whennull
, theparameters
field will be omitted from the resulting object.partition_values
(list
): Set thepartition_values
field on the resulting object.table_name
(string
): Set thetable_name
field on the resulting object.storage_descriptor
(list[obj]
): Set thestorage_descriptor
field on the resulting object. Whennull
, thestorage_descriptor
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.glue_partition.storage_descriptor.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
glue_partition
resource into the root Terraform configuration.
withCatalogId()
aws.string.withCatalogId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the catalog_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecatalog_id
field.
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.
withParameters()
aws.obj.withParameters
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the parameters field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for theparameters
field.
withPartitionValues()
aws.list.withPartitionValues
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the partition_values field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for thepartition_values
field.
withStorageDescriptor()
aws.list[obj].withStorageDescriptor
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the storage_descriptor 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 aws.list[obj].withStorageDescriptorMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thestorage_descriptor
field.
withStorageDescriptorMixin()
aws.list[obj].withStorageDescriptorMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the storage_descriptor 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 aws.list[obj].withStorageDescriptor
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thestorage_descriptor
field.
withTableName()
aws.string.withTableName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the table_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetable_name
field.
new()
aws.glue_partition.storage_descriptor.new
constructs a new object with attributes and blocks configured for the storage_descriptor
Terraform sub block.
Args:
bucket_columns
(list
): Set thebucket_columns
field on the resulting object. Whennull
, thebucket_columns
field will be omitted from the resulting object.compressed
(bool
): Set thecompressed
field on the resulting object. Whennull
, thecompressed
field will be omitted from the resulting object.input_format
(string
): Set theinput_format
field on the resulting object. Whennull
, theinput_format
field will be omitted from the resulting object.location
(string
): Set thelocation
field on the resulting object. Whennull
, thelocation
field will be omitted from the resulting object.number_of_buckets
(number
): Set thenumber_of_buckets
field on the resulting object. Whennull
, thenumber_of_buckets
field will be omitted from the resulting object.output_format
(string
): Set theoutput_format
field on the resulting object. Whennull
, theoutput_format
field will be omitted from the resulting object.parameters
(obj
): Set theparameters
field on the resulting object. Whennull
, theparameters
field will be omitted from the resulting object.stored_as_sub_directories
(bool
): Set thestored_as_sub_directories
field on the resulting object. Whennull
, thestored_as_sub_directories
field will be omitted from the resulting object.columns
(list[obj]
): Set thecolumns
field on the resulting object. Whennull
, thecolumns
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.glue_partition.storage_descriptor.columns.new constructor.ser_de_info
(list[obj]
): Set theser_de_info
field on the resulting object. Whennull
, theser_de_info
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.glue_partition.storage_descriptor.ser_de_info.new constructor.skewed_info
(list[obj]
): Set theskewed_info
field on the resulting object. Whennull
, theskewed_info
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.glue_partition.storage_descriptor.skewed_info.new constructor.sort_columns
(list[obj]
): Set thesort_columns
field on the resulting object. Whennull
, thesort_columns
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.glue_partition.storage_descriptor.sort_columns.new constructor.
Returns:
- An attribute object that represents the
storage_descriptor
sub block.
new()
aws.glue_partition.storage_descriptor.columns.new
constructs a new object with attributes and blocks configured for the columns
Terraform sub block.
Args:
comment
(string
): Set thecomment
field on the resulting object. Whennull
, thecomment
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting object.type
(string
): Set thetype
field on the resulting object. Whennull
, thetype
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
columns
sub block.
new()
aws.glue_partition.storage_descriptor.ser_de_info.new
constructs a new object with attributes and blocks configured for the ser_de_info
Terraform sub block.
Args:
name
(string
): Set thename
field on the resulting object. Whennull
, thename
field will be omitted from the resulting object.parameters
(obj
): Set theparameters
field on the resulting object. Whennull
, theparameters
field will be omitted from the resulting object.serialization_library
(string
): Set theserialization_library
field on the resulting object. Whennull
, theserialization_library
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
ser_de_info
sub block.
new()
aws.glue_partition.storage_descriptor.skewed_info.new
constructs a new object with attributes and blocks configured for the skewed_info
Terraform sub block.
Args:
skewed_column_names
(list
): Set theskewed_column_names
field on the resulting object. Whennull
, theskewed_column_names
field will be omitted from the resulting object.skewed_column_value_location_maps
(obj
): Set theskewed_column_value_location_maps
field on the resulting object. Whennull
, theskewed_column_value_location_maps
field will be omitted from the resulting object.skewed_column_values
(list
): Set theskewed_column_values
field on the resulting object. Whennull
, theskewed_column_values
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
skewed_info
sub block.
new()
aws.glue_partition.storage_descriptor.sort_columns.new
constructs a new object with attributes and blocks configured for the sort_columns
Terraform sub block.
Args:
column
(string
): Set thecolumn
field on the resulting object.sort_order
(number
): Set thesort_order
field on the resulting object.
Returns:
- An attribute object that represents the
sort_columns
sub block.