Class: Aws::APIGateway::Types::TestInvokeMethodRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::APIGateway::Types::TestInvokeMethodRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-apigateway/types.rb
Overview
When making an API call, you may pass TestInvokeMethodRequest data as a hash:
{
rest_api_id: "String", # required
resource_id: "String", # required
http_method: "String", # required
path_with_query_string: "String",
body: "String",
headers: {
"String" => "String",
},
client_certificate_id: "String",
stage_variables: {
"String" => "String",
},
}
Make a request to simulate the execution of a Method.
Instance Attribute Summary collapse
-
#body ⇒ String
The simulated request body of an incoming invocation request.
-
#client_certificate_id ⇒ String
A ClientCertificate identifier to use in the test invocation.
-
#headers ⇒ Hash<String,String>
A key-value map of headers to simulate an incoming invocation request.
-
#http_method ⇒ String
Specifies a test invoke method request’s HTTP method.
-
#path_with_query_string ⇒ String
The URI path, including query string, of the simulated invocation request.
-
#resource_id ⇒ String
Specifies a test invoke method request’s resource ID.
-
#rest_api_id ⇒ String
The string identifier of the associated RestApi.
-
#stage_variables ⇒ Hash<String,String>
A key-value map of stage variables to simulate an invocation on a deployed Stage.
Instance Attribute Details
permalink #body ⇒ String
The simulated request body of an incoming invocation request.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/aws-sdk-apigateway/types.rb', line 6466 class TestInvokeMethodRequest < Struct.new( :rest_api_id, :resource_id, :http_method, :path_with_query_string, :body, :headers, :client_certificate_id, :stage_variables) include Aws::Structure end |
permalink #client_certificate_id ⇒ String
A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/aws-sdk-apigateway/types.rb', line 6466 class TestInvokeMethodRequest < Struct.new( :rest_api_id, :resource_id, :http_method, :path_with_query_string, :body, :headers, :client_certificate_id, :stage_variables) include Aws::Structure end |
permalink #headers ⇒ Hash<String,String>
A key-value map of headers to simulate an incoming invocation request.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/aws-sdk-apigateway/types.rb', line 6466 class TestInvokeMethodRequest < Struct.new( :rest_api_id, :resource_id, :http_method, :path_with_query_string, :body, :headers, :client_certificate_id, :stage_variables) include Aws::Structure end |
permalink #http_method ⇒ String
Specifies a test invoke method request’s HTTP method.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/aws-sdk-apigateway/types.rb', line 6466 class TestInvokeMethodRequest < Struct.new( :rest_api_id, :resource_id, :http_method, :path_with_query_string, :body, :headers, :client_certificate_id, :stage_variables) include Aws::Structure end |
permalink #path_with_query_string ⇒ String
The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/aws-sdk-apigateway/types.rb', line 6466 class TestInvokeMethodRequest < Struct.new( :rest_api_id, :resource_id, :http_method, :path_with_query_string, :body, :headers, :client_certificate_id, :stage_variables) include Aws::Structure end |
permalink #resource_id ⇒ String
Specifies a test invoke method request’s resource ID.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/aws-sdk-apigateway/types.rb', line 6466 class TestInvokeMethodRequest < Struct.new( :rest_api_id, :resource_id, :http_method, :path_with_query_string, :body, :headers, :client_certificate_id, :stage_variables) include Aws::Structure end |
permalink #rest_api_id ⇒ String
The string identifier of the associated RestApi.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/aws-sdk-apigateway/types.rb', line 6466 class TestInvokeMethodRequest < Struct.new( :rest_api_id, :resource_id, :http_method, :path_with_query_string, :body, :headers, :client_certificate_id, :stage_variables) include Aws::Structure end |
permalink #stage_variables ⇒ Hash<String,String>
A key-value map of stage variables to simulate an invocation on a deployed Stage.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 |
# File 'lib/aws-sdk-apigateway/types.rb', line 6466 class TestInvokeMethodRequest < Struct.new( :rest_api_id, :resource_id, :http_method, :path_with_query_string, :body, :headers, :client_certificate_id, :stage_variables) include Aws::Structure end |