permalink |
---|
/apigatewayv2_api/ |
apigatewayv2_api
represents the aws_apigatewayv2_api
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withApiKeySelectionExpression()
fn withBody()
fn withCorsConfiguration()
fn withCorsConfigurationMixin()
fn withCredentialsArn()
fn withDescription()
fn withDisableExecuteApiEndpoint()
fn withFailOnWarnings()
fn withName()
fn withProtocolType()
fn withRouteKey()
fn withRouteSelectionExpression()
fn withTags()
fn withTagsAll()
fn withTarget()
fn withVersion()
obj cors_configuration
new()
aws.apigatewayv2_api.new
injects a new aws_apigatewayv2_api
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.apigatewayv2_api.new('some_id')
You can get the reference to the id
field of the created aws.apigatewayv2_api
using the reference:
$._ref.aws_apigatewayv2_api.some_id.get('id')
This is the same as directly entering "${ aws_apigatewayv2_api.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_key_selection_expression
(string
): Set theapi_key_selection_expression
field on the resulting resource block. Whennull
, theapi_key_selection_expression
field will be omitted from the resulting object.body
(string
): Set thebody
field on the resulting resource block. Whennull
, thebody
field will be omitted from the resulting object.credentials_arn
(string
): Set thecredentials_arn
field on the resulting resource block. Whennull
, thecredentials_arn
field will be omitted from the resulting object.description
(string
): Set thedescription
field on the resulting resource block. Whennull
, thedescription
field will be omitted from the resulting object.disable_execute_api_endpoint
(bool
): Set thedisable_execute_api_endpoint
field on the resulting resource block. Whennull
, thedisable_execute_api_endpoint
field will be omitted from the resulting object.fail_on_warnings
(bool
): Set thefail_on_warnings
field on the resulting resource block. Whennull
, thefail_on_warnings
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting resource block.protocol_type
(string
): Set theprotocol_type
field on the resulting resource block.route_key
(string
): Set theroute_key
field on the resulting resource block. Whennull
, theroute_key
field will be omitted from the resulting object.route_selection_expression
(string
): Set theroute_selection_expression
field on the resulting resource block. Whennull
, theroute_selection_expression
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.target
(string
): Set thetarget
field on the resulting resource block. Whennull
, thetarget
field will be omitted from the resulting object.version
(string
): Set theversion
field on the resulting resource block. Whennull
, theversion
field will be omitted from the resulting object.cors_configuration
(list[obj]
): Set thecors_configuration
field on the resulting resource block. Whennull
, thecors_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.apigatewayv2_api.cors_configuration.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.apigatewayv2_api.newAttrs
constructs a new object with attributes and blocks configured for the apigatewayv2_api
Terraform resource.
Unlike aws.apigatewayv2_api.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_key_selection_expression
(string
): Set theapi_key_selection_expression
field on the resulting object. Whennull
, theapi_key_selection_expression
field will be omitted from the resulting object.body
(string
): Set thebody
field on the resulting object. Whennull
, thebody
field will be omitted from the resulting object.credentials_arn
(string
): Set thecredentials_arn
field on the resulting object. Whennull
, thecredentials_arn
field will be omitted from the resulting object.description
(string
): Set thedescription
field on the resulting object. Whennull
, thedescription
field will be omitted from the resulting object.disable_execute_api_endpoint
(bool
): Set thedisable_execute_api_endpoint
field on the resulting object. Whennull
, thedisable_execute_api_endpoint
field will be omitted from the resulting object.fail_on_warnings
(bool
): Set thefail_on_warnings
field on the resulting object. Whennull
, thefail_on_warnings
field will be omitted from the resulting object.name
(string
): Set thename
field on the resulting object.protocol_type
(string
): Set theprotocol_type
field on the resulting object.route_key
(string
): Set theroute_key
field on the resulting object. Whennull
, theroute_key
field will be omitted from the resulting object.route_selection_expression
(string
): Set theroute_selection_expression
field on the resulting object. Whennull
, theroute_selection_expression
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.target
(string
): Set thetarget
field on the resulting object. Whennull
, thetarget
field will be omitted from the resulting object.version
(string
): Set theversion
field on the resulting object. Whennull
, theversion
field will be omitted from the resulting object.cors_configuration
(list[obj]
): Set thecors_configuration
field on the resulting object. Whennull
, thecors_configuration
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the aws.apigatewayv2_api.cors_configuration.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
apigatewayv2_api
resource into the root Terraform configuration.
withApiKeySelectionExpression()
aws.string.withApiKeySelectionExpression
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the api_key_selection_expression field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theapi_key_selection_expression
field.
withBody()
aws.string.withBody
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the body field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thebody
field.
withCorsConfiguration()
aws.list[obj].withCorsConfiguration
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the cors_configuration 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].withCorsConfigurationMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thecors_configuration
field.
withCorsConfigurationMixin()
aws.list[obj].withCorsConfigurationMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the cors_configuration 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].withCorsConfiguration
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thecors_configuration
field.
withCredentialsArn()
aws.string.withCredentialsArn
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the credentials_arn field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thecredentials_arn
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.
withDisableExecuteApiEndpoint()
aws.bool.withDisableExecuteApiEndpoint
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the disable_execute_api_endpoint field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thedisable_execute_api_endpoint
field.
withFailOnWarnings()
aws.bool.withFailOnWarnings
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the fail_on_warnings field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thefail_on_warnings
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.
withProtocolType()
aws.string.withProtocolType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the protocol_type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theprotocol_type
field.
withRouteKey()
aws.string.withRouteKey
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the route_key field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theroute_key
field.
withRouteSelectionExpression()
aws.string.withRouteSelectionExpression
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the route_selection_expression field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theroute_selection_expression
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.
withTarget()
aws.string.withTarget
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the target field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thetarget
field.
withVersion()
aws.string.withVersion
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the version field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theversion
field.
new()
aws.apigatewayv2_api.cors_configuration.new
constructs a new object with attributes and blocks configured for the cors_configuration
Terraform sub block.
Args:
allow_credentials
(bool
): Set theallow_credentials
field on the resulting object. Whennull
, theallow_credentials
field will be omitted from the resulting object.allow_headers
(list
): Set theallow_headers
field on the resulting object. Whennull
, theallow_headers
field will be omitted from the resulting object.allow_methods
(list
): Set theallow_methods
field on the resulting object. Whennull
, theallow_methods
field will be omitted from the resulting object.allow_origins
(list
): Set theallow_origins
field on the resulting object. Whennull
, theallow_origins
field will be omitted from the resulting object.expose_headers
(list
): Set theexpose_headers
field on the resulting object. Whennull
, theexpose_headers
field will be omitted from the resulting object.max_age
(number
): Set themax_age
field on the resulting object. Whennull
, themax_age
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
cors_configuration
sub block.