permalink |
---|
/appsync_datasource/ |
appsync_datasource
represents the aws_appsync_datasource
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withApiId()
fn withDescription()
fn withDynamodbConfig()
fn withDynamodbConfigMixin()
fn withElasticsearchConfig()
fn withElasticsearchConfigMixin()
fn withEventBridgeConfig()
fn withEventBridgeConfigMixin()
fn withHttpConfig()
fn withHttpConfigMixin()
fn withLambdaConfig()
fn withLambdaConfigMixin()
fn withName()
fn withOpensearchserviceConfig()
fn withOpensearchserviceConfigMixin()
fn withRelationalDatabaseConfig()
fn withRelationalDatabaseConfigMixin()
fn withServiceRoleArn()
fn withType()
obj dynamodb_config
obj elasticsearch_config
obj event_bridge_config
obj http_config
obj lambda_config
obj opensearchservice_config
obj relational_database_config
new()
aws.appsync_datasource.new
injects a new aws_appsync_datasource
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.appsync_datasource.new('some_id')
You can get the reference to the id
field of the created aws.appsync_datasource
using the reference:
$._ref.aws_appsync_datasource.some_id.get('id')
This is the same as directly entering "${ aws_appsync_datasource.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.api_id
(string
): Set theapi_id
field on the resulting resource block.description
(string
): Set thedescription
field on the resulting resource block. Whennull
, thedescription
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting resource block.service_role_arn
(string
): Set theservice_role_arn
field on the resulting resource block. Whennull
, theservice_role_arn
field will be omitted from the resulting object.type
(string
): Set thetype
field on the resulting resource block.dynamodb_config
(list[obj]
): Set thedynamodb_config
field on the resulting resource block. Whennull
, thedynamodb_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.dynamodb_config.new constructor.elasticsearch_config
(list[obj]
): Set theelasticsearch_config
field on the resulting resource block. Whennull
, theelasticsearch_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.elasticsearch_config.new constructor.event_bridge_config
(list[obj]
): Set theevent_bridge_config
field on the resulting resource block. Whennull
, theevent_bridge_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.event_bridge_config.new constructor.http_config
(list[obj]
): Set thehttp_config
field on the resulting resource block. Whennull
, thehttp_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.http_config.new constructor.lambda_config
(list[obj]
): Set thelambda_config
field on the resulting resource block. Whennull
, thelambda_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.lambda_config.new constructor.opensearchservice_config
(list[obj]
): Set theopensearchservice_config
field on the resulting resource block. Whennull
, theopensearchservice_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.opensearchservice_config.new constructor.relational_database_config
(list[obj]
): Set therelational_database_config
field on the resulting resource block. Whennull
, therelational_database_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.relational_database_config.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.appsync_datasource.newAttrs
constructs a new object with attributes and blocks configured for the appsync_datasource
Terraform resource.
Unlike aws.appsync_datasource.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:
api_id
(string
): Set theapi_id
field on the resulting object.description
(string
): Set thedescription
field on the resulting object. Whennull
, thedescription
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting object.service_role_arn
(string
): Set theservice_role_arn
field on the resulting object. Whennull
, theservice_role_arn
field will be omitted from the resulting object.type
(string
): Set thetype
field on the resulting object.dynamodb_config
(list[obj]
): Set thedynamodb_config
field on the resulting object. Whennull
, thedynamodb_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.dynamodb_config.new constructor.elasticsearch_config
(list[obj]
): Set theelasticsearch_config
field on the resulting object. Whennull
, theelasticsearch_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.elasticsearch_config.new constructor.event_bridge_config
(list[obj]
): Set theevent_bridge_config
field on the resulting object. Whennull
, theevent_bridge_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.event_bridge_config.new constructor.http_config
(list[obj]
): Set thehttp_config
field on the resulting object. Whennull
, thehttp_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.http_config.new constructor.lambda_config
(list[obj]
): Set thelambda_config
field on the resulting object. Whennull
, thelambda_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.lambda_config.new constructor.opensearchservice_config
(list[obj]
): Set theopensearchservice_config
field on the resulting object. Whennull
, theopensearchservice_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.opensearchservice_config.new constructor.relational_database_config
(list[obj]
): Set therelational_database_config
field on the resulting object. Whennull
, therelational_database_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.relational_database_config.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
appsync_datasource
resource into the root Terraform configuration.
withApiId()
aws.string.withApiId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the api_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theapi_id
field.
withDescription()
aws.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.
withDynamodbConfig()
aws.list[obj].withDynamodbConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the dynamodb_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 aws.list[obj].withDynamodbConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thedynamodb_config
field.
withDynamodbConfigMixin()
aws.list[obj].withDynamodbConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the dynamodb_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 aws.list[obj].withDynamodbConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thedynamodb_config
field.
withElasticsearchConfig()
aws.list[obj].withElasticsearchConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the elasticsearch_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 aws.list[obj].withElasticsearchConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theelasticsearch_config
field.
withElasticsearchConfigMixin()
aws.list[obj].withElasticsearchConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the elasticsearch_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 aws.list[obj].withElasticsearchConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theelasticsearch_config
field.
withEventBridgeConfig()
aws.list[obj].withEventBridgeConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the event_bridge_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 aws.list[obj].withEventBridgeConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theevent_bridge_config
field.
withEventBridgeConfigMixin()
aws.list[obj].withEventBridgeConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the event_bridge_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 aws.list[obj].withEventBridgeConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theevent_bridge_config
field.
withHttpConfig()
aws.list[obj].withHttpConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the http_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 aws.list[obj].withHttpConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thehttp_config
field.
withHttpConfigMixin()
aws.list[obj].withHttpConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the http_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 aws.list[obj].withHttpConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thehttp_config
field.
withLambdaConfig()
aws.list[obj].withLambdaConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the lambda_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 aws.list[obj].withLambdaConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thelambda_config
field.
withLambdaConfigMixin()
aws.list[obj].withLambdaConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the lambda_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 aws.list[obj].withLambdaConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thelambda_config
field.
withName()
aws.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.
withOpensearchserviceConfig()
aws.list[obj].withOpensearchserviceConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the opensearchservice_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 aws.list[obj].withOpensearchserviceConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theopensearchservice_config
field.
withOpensearchserviceConfigMixin()
aws.list[obj].withOpensearchserviceConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the opensearchservice_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 aws.list[obj].withOpensearchserviceConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theopensearchservice_config
field.
withRelationalDatabaseConfig()
aws.list[obj].withRelationalDatabaseConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the relational_database_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 aws.list[obj].withRelationalDatabaseConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therelational_database_config
field.
withRelationalDatabaseConfigMixin()
aws.list[obj].withRelationalDatabaseConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the relational_database_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 aws.list[obj].withRelationalDatabaseConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therelational_database_config
field.
withServiceRoleArn()
aws.string.withServiceRoleArn
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the service_role_arn field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theservice_role_arn
field.
withType()
aws.string.withType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetype
field.
new()
aws.appsync_datasource.dynamodb_config.new
constructs a new object with attributes and blocks configured for the dynamodb_config
Terraform sub block.
Args:
region
(string
): Set theregion
field on the resulting object. Whennull
, theregion
field will be omitted from the resulting object.table_name
(string
): Set thetable_name
field on the resulting object.use_caller_credentials
(bool
): Set theuse_caller_credentials
field on the resulting object. Whennull
, theuse_caller_credentials
field will be omitted from the resulting object.versioned
(bool
): Set theversioned
field on the resulting object. Whennull
, theversioned
field will be omitted from the resulting object.delta_sync_config
(list[obj]
): Set thedelta_sync_config
field on the resulting object. Whennull
, thedelta_sync_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.dynamodb_config.delta_sync_config.new constructor.
Returns:
- An attribute object that represents the
dynamodb_config
sub block.
new()
aws.appsync_datasource.dynamodb_config.delta_sync_config.new
constructs a new object with attributes and blocks configured for the delta_sync_config
Terraform sub block.
Args:
base_table_ttl
(number
): Set thebase_table_ttl
field on the resulting object. Whennull
, thebase_table_ttl
field will be omitted from the resulting object.delta_sync_table_name
(string
): Set thedelta_sync_table_name
field on the resulting object.delta_sync_table_ttl
(number
): Set thedelta_sync_table_ttl
field on the resulting object. Whennull
, thedelta_sync_table_ttl
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
delta_sync_config
sub block.
new()
aws.appsync_datasource.elasticsearch_config.new
constructs a new object with attributes and blocks configured for the elasticsearch_config
Terraform sub block.
Args:
endpoint
(string
): Set theendpoint
field on the resulting object.region
(string
): Set theregion
field on the resulting object. Whennull
, theregion
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
elasticsearch_config
sub block.
new()
aws.appsync_datasource.event_bridge_config.new
constructs a new object with attributes and blocks configured for the event_bridge_config
Terraform sub block.
Args:
event_bus_arn
(string
): Set theevent_bus_arn
field on the resulting object.
Returns:
- An attribute object that represents the
event_bridge_config
sub block.
new()
aws.appsync_datasource.http_config.new
constructs a new object with attributes and blocks configured for the http_config
Terraform sub block.
Args:
endpoint
(string
): Set theendpoint
field on the resulting object.authorization_config
(list[obj]
): Set theauthorization_config
field on the resulting object. Whennull
, theauthorization_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.http_config.authorization_config.new constructor.
Returns:
- An attribute object that represents the
http_config
sub block.
new()
aws.appsync_datasource.http_config.authorization_config.new
constructs a new object with attributes and blocks configured for the authorization_config
Terraform sub block.
Args:
authorization_type
(string
): Set theauthorization_type
field on the resulting object. Whennull
, theauthorization_type
field will be omitted from the resulting object.aws_iam_config
(list[obj]
): Set theaws_iam_config
field on the resulting object. Whennull
, theaws_iam_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.http_config.authorization_config.aws_iam_config.new constructor.
Returns:
- An attribute object that represents the
authorization_config
sub block.
new()
aws.appsync_datasource.http_config.authorization_config.aws_iam_config.new
constructs a new object with attributes and blocks configured for the aws_iam_config
Terraform sub block.
Args:
signing_region
(string
): Set thesigning_region
field on the resulting object. Whennull
, thesigning_region
field will be omitted from the resulting object.signing_service_name
(string
): Set thesigning_service_name
field on the resulting object. Whennull
, thesigning_service_name
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
aws_iam_config
sub block.
new()
aws.appsync_datasource.lambda_config.new
constructs a new object with attributes and blocks configured for the lambda_config
Terraform sub block.
Args:
function_arn
(string
): Set thefunction_arn
field on the resulting object.
Returns:
- An attribute object that represents the
lambda_config
sub block.
new()
aws.appsync_datasource.opensearchservice_config.new
constructs a new object with attributes and blocks configured for the opensearchservice_config
Terraform sub block.
Args:
endpoint
(string
): Set theendpoint
field on the resulting object.region
(string
): Set theregion
field on the resulting object. Whennull
, theregion
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
opensearchservice_config
sub block.
new()
aws.appsync_datasource.relational_database_config.new
constructs a new object with attributes and blocks configured for the relational_database_config
Terraform sub block.
Args:
source_type
(string
): Set thesource_type
field on the resulting object. Whennull
, thesource_type
field will be omitted from the resulting object.http_endpoint_config
(list[obj]
): Set thehttp_endpoint_config
field on the resulting object. Whennull
, thehttp_endpoint_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.appsync_datasource.relational_database_config.http_endpoint_config.new constructor.
Returns:
- An attribute object that represents the
relational_database_config
sub block.
new()
aws.appsync_datasource.relational_database_config.http_endpoint_config.new
constructs a new object with attributes and blocks configured for the http_endpoint_config
Terraform sub block.
Args:
aws_secret_store_arn
(string
): Set theaws_secret_store_arn
field on the resulting object.database_name
(string
): Set thedatabase_name
field on the resulting object. Whennull
, thedatabase_name
field will be omitted from the resulting object.db_cluster_identifier
(string
): Set thedb_cluster_identifier
field on the resulting object.region
(string
): Set theregion
field on the resulting object. Whennull
, theregion
field will be omitted from the resulting object.schema
(string
): Set theschema
field on the resulting object. Whennull
, theschema
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
http_endpoint_config
sub block.