AWS Native is in preview. AWS Classic is fully supported.
aws-native.apigateway.getGatewayResponse
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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.
Using getGatewayResponse
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGatewayResponse(args: GetGatewayResponseArgs, opts?: InvokeOptions): Promise<GetGatewayResponseResult>
function getGatewayResponseOutput(args: GetGatewayResponseOutputArgs, opts?: InvokeOptions): Output<GetGatewayResponseResult>
def get_gateway_response(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGatewayResponseResult
def get_gateway_response_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGatewayResponseResult]
func LookupGatewayResponse(ctx *Context, args *LookupGatewayResponseArgs, opts ...InvokeOption) (*LookupGatewayResponseResult, error)
func LookupGatewayResponseOutput(ctx *Context, args *LookupGatewayResponseOutputArgs, opts ...InvokeOption) LookupGatewayResponseResultOutput
> Note: This function is named LookupGatewayResponse
in the Go SDK.
public static class GetGatewayResponse
{
public static Task<GetGatewayResponseResult> InvokeAsync(GetGatewayResponseArgs args, InvokeOptions? opts = null)
public static Output<GetGatewayResponseResult> Invoke(GetGatewayResponseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGatewayResponseResult> getGatewayResponse(GetGatewayResponseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:apigateway:getGatewayResponse
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID for the gateway response. For example:
abc123
.
- Id string
- The ID for the gateway response. For example:
abc123
.
- id String
- The ID for the gateway response. For example:
abc123
.
- id string
- The ID for the gateway response. For example:
abc123
.
- id str
- The ID for the gateway response. For example:
abc123
.
- id String
- The ID for the gateway response. For example:
abc123
.
getGatewayResponse Result
The following output properties are available:
- Id string
- The ID for the gateway response. For example:
abc123
. - 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.
- Id string
- The ID for the gateway response. For example:
abc123
. - 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.
- id String
- The ID for the gateway response. For example:
abc123
. - 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.
- id string
- The ID for the gateway response. For example:
abc123
. - 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.
- id str
- The ID for the gateway response. For example:
abc123
. - 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.
- id String
- The ID for the gateway response. For example:
abc123
. - 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.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.