permalink |
---|
/apigatewayv2_route/ |
apigatewayv2_route
represents the aws_apigatewayv2_route
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withApiId()
fn withApiKeyRequired()
fn withAuthorizationScopes()
fn withAuthorizationType()
fn withAuthorizerId()
fn withModelSelectionExpression()
fn withOperationName()
fn withRequestModels()
fn withRequestParameter()
fn withRequestParameterMixin()
fn withRouteKey()
fn withRouteResponseSelectionExpression()
fn withTarget()
obj request_parameter
new()
aws.apigatewayv2_route.new
injects a new aws_apigatewayv2_route
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_route.new('some_id')
You can get the reference to the id
field of the created aws.apigatewayv2_route
using the reference:
$._ref.aws_apigatewayv2_route.some_id.get('id')
This is the same as directly entering "${ aws_apigatewayv2_route.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.api_key_required
(bool
): Set theapi_key_required
field on the resulting resource block. Whennull
, theapi_key_required
field will be omitted from the resulting object.authorization_scopes
(list
): Set theauthorization_scopes
field on the resulting resource block. Whennull
, theauthorization_scopes
field will be omitted from the resulting object.authorization_type
(string
): Set theauthorization_type
field on the resulting resource block. Whennull
, theauthorization_type
field will be omitted from the resulting object.authorizer_id
(string
): Set theauthorizer_id
field on the resulting resource block. Whennull
, theauthorizer_id
field will be omitted from the resulting object.model_selection_expression
(string
): Set themodel_selection_expression
field on the resulting resource block. Whennull
, themodel_selection_expression
field will be omitted from the resulting object.operation_name
(string
): Set theoperation_name
field on the resulting resource block. Whennull
, theoperation_name
field will be omitted from the resulting object.request_models
(obj
): Set therequest_models
field on the resulting resource block. Whennull
, therequest_models
field will be omitted from the resulting object.route_key
(string
): Set theroute_key
field on the resulting resource block.route_response_selection_expression
(string
): Set theroute_response_selection_expression
field on the resulting resource block. Whennull
, theroute_response_selection_expression
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.request_parameter
(list[obj]
): Set therequest_parameter
field on the resulting resource block. Whennull
, therequest_parameter
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_route.request_parameter.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
aws.apigatewayv2_route.newAttrs
constructs a new object with attributes and blocks configured for the apigatewayv2_route
Terraform resource.
Unlike aws.apigatewayv2_route.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.api_key_required
(bool
): Set theapi_key_required
field on the resulting object. Whennull
, theapi_key_required
field will be omitted from the resulting object.authorization_scopes
(list
): Set theauthorization_scopes
field on the resulting object. Whennull
, theauthorization_scopes
field will be omitted from the resulting object.authorization_type
(string
): Set theauthorization_type
field on the resulting object. Whennull
, theauthorization_type
field will be omitted from the resulting object.authorizer_id
(string
): Set theauthorizer_id
field on the resulting object. Whennull
, theauthorizer_id
field will be omitted from the resulting object.model_selection_expression
(string
): Set themodel_selection_expression
field on the resulting object. Whennull
, themodel_selection_expression
field will be omitted from the resulting object.operation_name
(string
): Set theoperation_name
field on the resulting object. Whennull
, theoperation_name
field will be omitted from the resulting object.request_models
(obj
): Set therequest_models
field on the resulting object. Whennull
, therequest_models
field will be omitted from the resulting object.route_key
(string
): Set theroute_key
field on the resulting object.route_response_selection_expression
(string
): Set theroute_response_selection_expression
field on the resulting object. Whennull
, theroute_response_selection_expression
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.request_parameter
(list[obj]
): Set therequest_parameter
field on the resulting object. Whennull
, therequest_parameter
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_route.request_parameter.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
apigatewayv2_route
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.
withApiKeyRequired()
aws.bool.withApiKeyRequired
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the api_key_required field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theapi_key_required
field.
withAuthorizationScopes()
aws.list.withAuthorizationScopes
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the authorization_scopes field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theauthorization_scopes
field.
withAuthorizationType()
aws.string.withAuthorizationType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the authorization_type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theauthorization_type
field.
withAuthorizerId()
aws.string.withAuthorizerId
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the authorizer_id field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theauthorizer_id
field.
withModelSelectionExpression()
aws.string.withModelSelectionExpression
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the model_selection_expression field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themodel_selection_expression
field.
withOperationName()
aws.string.withOperationName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the operation_name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theoperation_name
field.
withRequestModels()
aws.obj.withRequestModels
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the request_models field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for therequest_models
field.
withRequestParameter()
aws.list[obj].withRequestParameter
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the request_parameter 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].withRequestParameterMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therequest_parameter
field.
withRequestParameterMixin()
aws.list[obj].withRequestParameterMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the request_parameter 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].withRequestParameter
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for therequest_parameter
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.
withRouteResponseSelectionExpression()
aws.string.withRouteResponseSelectionExpression
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the route_response_selection_expression field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theroute_response_selection_expression
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.
new()
aws.apigatewayv2_route.request_parameter.new
constructs a new object with attributes and blocks configured for the request_parameter
Terraform sub block.
Args:
request_parameter_key
(string
): Set therequest_parameter_key
field on the resulting object.required
(bool
): Set therequired
field on the resulting object.
Returns:
- An attribute object that represents the
request_parameter
sub block.