We recommend new projects start with resources from the AWS provider.
aws-native.apigateway.GatewayResponse
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::ApiGateway::GatewayResponse
resource creates a gateway response for your API. For more information, see API Gateway Responses in the API Gateway Developer Guide.
Create GatewayResponse Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayResponse(name: string, args: GatewayResponseArgs, opts?: CustomResourceOptions);
@overload
def GatewayResponse(resource_name: str,
args: GatewayResponseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayResponse(resource_name: str,
opts: Optional[ResourceOptions] = None,
response_type: Optional[str] = None,
rest_api_id: Optional[str] = None,
response_parameters: Optional[Mapping[str, str]] = None,
response_templates: Optional[Mapping[str, str]] = None,
status_code: Optional[str] = None)
func NewGatewayResponse(ctx *Context, name string, args GatewayResponseArgs, opts ...ResourceOption) (*GatewayResponse, error)
public GatewayResponse(string name, GatewayResponseArgs args, CustomResourceOptions? opts = null)
public GatewayResponse(String name, GatewayResponseArgs args)
public GatewayResponse(String name, GatewayResponseArgs args, CustomResourceOptions options)
type: aws-native:apigateway:GatewayResponse
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GatewayResponseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GatewayResponseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GatewayResponseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayResponseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayResponseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GatewayResponse Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GatewayResponse resource accepts the following input properties:
- Response
Type string - The response type of the associated GatewayResponse.
- Rest
Api stringId - The string identifier of the associated RestApi.
- Response
Parameters Dictionary<string, string> - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
- Response
Templates Dictionary<string, string> - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
- Status
Code string - The HTTP status code for this GatewayResponse.
- Response
Type string - The response type of the associated GatewayResponse.
- Rest
Api stringId - The string identifier of the associated RestApi.
- Response
Parameters map[string]string - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
- Response
Templates map[string]string - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
- Status
Code string - The HTTP status code for this GatewayResponse.
- response
Type String - The response type of the associated GatewayResponse.
- rest
Api StringId - The string identifier of the associated RestApi.
- response
Parameters Map<String,String> - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
- response
Templates Map<String,String> - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
- status
Code String - The HTTP status code for this GatewayResponse.
- response
Type string - The response type of the associated GatewayResponse.
- rest
Api stringId - The string identifier of the associated RestApi.
- response
Parameters {[key: string]: string} - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
- response
Templates {[key: string]: string} - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
- status
Code string - The HTTP status code for this GatewayResponse.
- response_
type str - The response type of the associated GatewayResponse.
- rest_
api_ strid - The string identifier of the associated RestApi.
- response_
parameters Mapping[str, str] - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
- response_
templates Mapping[str, str] - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
- status_
code str - The HTTP status code for this GatewayResponse.
- response
Type String - The response type of the associated GatewayResponse.
- rest
Api StringId - The string identifier of the associated RestApi.
- response
Parameters Map<String> - Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
- response
Templates Map<String> - Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
- status
Code String - The HTTP status code for this GatewayResponse.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayResponse resource produces the following output properties:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.