permalink |
---|
/cloudwatch_event_endpoint/ |
cloudwatch_event_endpoint
represents the aws_cloudwatch_event_endpoint
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withDescription()
fn withEventBus()
fn withEventBusMixin()
fn withName()
fn withReplicationConfig()
fn withReplicationConfigMixin()
fn withRoleArn()
fn withRoutingConfig()
fn withRoutingConfigMixin()
obj event_bus
obj replication_config
obj routing_config
new()
aws.cloudwatch_event_endpoint.new
injects a new aws_cloudwatch_event_endpoint
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.cloudwatch_event_endpoint.new('some_id')
You can get the reference to the id
field of the created aws.cloudwatch_event_endpoint
using the reference:
$._ref.aws_cloudwatch_event_endpoint.some_id.get('id')
This is the same as directly entering "${ aws_cloudwatch_event_endpoint.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
): 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.role_arn
(string
): Set therole_arn
field on the resulting resource block. Whennull
, therole_arn
field will be omitted from the resulting object.event_bus
(list[obj]
): Set theevent_bus
field on the resulting resource block. Whennull
, theevent_bus
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudwatch_event_endpoint.event_bus.new constructor.replication_config
(list[obj]
): Set thereplication_config
field on the resulting resource block. Whennull
, thereplication_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.cloudwatch_event_endpoint.replication_config.new constructor.routing_config
(list[obj]
): Set therouting_config
field on the resulting resource block. Whennull
, therouting_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.cloudwatch_event_endpoint.routing_config.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.cloudwatch_event_endpoint.newAttrs
constructs a new object with attributes and blocks configured for the cloudwatch_event_endpoint
Terraform resource.
Unlike aws.cloudwatch_event_endpoint.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
): 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.role_arn
(string
): Set therole_arn
field on the resulting object. Whennull
, therole_arn
field will be omitted from the resulting object.event_bus
(list[obj]
): Set theevent_bus
field on the resulting object. Whennull
, theevent_bus
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudwatch_event_endpoint.event_bus.new constructor.replication_config
(list[obj]
): Set thereplication_config
field on the resulting object. Whennull
, thereplication_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.cloudwatch_event_endpoint.replication_config.new constructor.routing_config
(list[obj]
): Set therouting_config
field on the resulting object. Whennull
, therouting_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.cloudwatch_event_endpoint.routing_config.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
cloudwatch_event_endpoint
resource into the root Terraform configuration.
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.
withEventBus()
aws.list[obj].withEventBus
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the event_bus 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].withEventBusMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theevent_bus
field.
withEventBusMixin()
aws.list[obj].withEventBusMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the event_bus 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].withEventBus
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theevent_bus
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.
withReplicationConfig()
aws.list[obj].withReplicationConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the replication_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].withReplicationConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thereplication_config
field.
withReplicationConfigMixin()
aws.list[obj].withReplicationConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the replication_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].withReplicationConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thereplication_config
field.
withRoleArn()
aws.string.withRoleArn
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the role_arn field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for therole_arn
field.
withRoutingConfig()
aws.list[obj].withRoutingConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the routing_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].withRoutingConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therouting_config
field.
withRoutingConfigMixin()
aws.list[obj].withRoutingConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the routing_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].withRoutingConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therouting_config
field.
new()
aws.cloudwatch_event_endpoint.event_bus.new
constructs a new object with attributes and blocks configured for the event_bus
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_bus
sub block.
new()
aws.cloudwatch_event_endpoint.replication_config.new
constructs a new object with attributes and blocks configured for the replication_config
Terraform sub block.
Args:
state
(string
): Set thestate
field on the resulting object. Whennull
, thestate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
replication_config
sub block.
new()
aws.cloudwatch_event_endpoint.routing_config.new
constructs a new object with attributes and blocks configured for the routing_config
Terraform sub block.
Args:
failover_config
(list[obj]
): Set thefailover_config
field on the resulting object. Whennull
, thefailover_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.cloudwatch_event_endpoint.routing_config.failover_config.new constructor.
Returns:
- An attribute object that represents the
routing_config
sub block.
new()
aws.cloudwatch_event_endpoint.routing_config.failover_config.new
constructs a new object with attributes and blocks configured for the failover_config
Terraform sub block.
Args:
primary
(list[obj]
): Set theprimary
field on the resulting object. Whennull
, theprimary
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudwatch_event_endpoint.routing_config.failover_config.primary.new constructor.secondary
(list[obj]
): Set thesecondary
field on the resulting object. Whennull
, thesecondary
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.cloudwatch_event_endpoint.routing_config.failover_config.secondary.new constructor.
Returns:
- An attribute object that represents the
failover_config
sub block.
new()
aws.cloudwatch_event_endpoint.routing_config.failover_config.primary.new
constructs a new object with attributes and blocks configured for the primary
Terraform sub block.
Args:
health_check
(string
): Set thehealth_check
field on the resulting object. Whennull
, thehealth_check
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
primary
sub block.
new()
aws.cloudwatch_event_endpoint.routing_config.failover_config.secondary.new
constructs a new object with attributes and blocks configured for the secondary
Terraform sub block.
Args:
route
(string
): Set theroute
field on the resulting object. Whennull
, theroute
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
secondary
sub block.