aws_sdk_apigateway/client/
test_invoke_authorizer.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`TestInvokeAuthorizer`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`rest_api_id(impl Into<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
7    ///   - [`authorizer_id(impl Into<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::authorizer_id) / [`set_authorizer_id(Option<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::set_authorizer_id):<br>required: **true**<br><p>Specifies a test invoke authorizer request's Authorizer ID.</p><br>
8    ///   - [`headers(impl Into<String>, impl Into<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::headers) / [`set_headers(Option<HashMap::<String, String>>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::set_headers):<br>required: **false**<br><p>A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.</p><br>
9    ///   - [`multi_value_headers(impl Into<String>, Vec::<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::multi_value_headers) / [`set_multi_value_headers(Option<HashMap::<String, Vec::<String>>>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::set_multi_value_headers):<br>required: **false**<br><p>The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.</p><br>
10    ///   - [`path_with_query_string(impl Into<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::path_with_query_string) / [`set_path_with_query_string(Option<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::set_path_with_query_string):<br>required: **false**<br><p>The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.</p><br>
11    ///   - [`body(impl Into<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::body) / [`set_body(Option<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::set_body):<br>required: **false**<br><p>The simulated request body of an incoming invocation request.</p><br>
12    ///   - [`stage_variables(impl Into<String>, impl Into<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::stage_variables) / [`set_stage_variables(Option<HashMap::<String, String>>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::set_stage_variables):<br>required: **false**<br><p>A key-value map of stage variables to simulate an invocation on a deployed Stage.</p><br>
13    ///   - [`additional_context(impl Into<String>, impl Into<String>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::additional_context) / [`set_additional_context(Option<HashMap::<String, String>>)`](crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::set_additional_context):<br>required: **false**<br><p>A key-value map of additional context variables.</p><br>
14    /// - On success, responds with [`TestInvokeAuthorizerOutput`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerOutput) with field(s):
15    ///   - [`client_status(i32)`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerOutput::client_status): <p>The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.</p>
16    ///   - [`log(Option<String>)`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerOutput::log): <p>The API Gateway execution log for the test authorizer request.</p>
17    ///   - [`latency(i64)`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerOutput::latency): <p>The execution latency, in ms, of the test authorizer request.</p>
18    ///   - [`principal_id(Option<String>)`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerOutput::principal_id): <p>The principal identity returned by the Authorizer</p>
19    ///   - [`policy(Option<String>)`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerOutput::policy): <p>The JSON policy document returned by the Authorizer</p>
20    ///   - [`authorization(Option<HashMap::<String, Vec::<String>>>)`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerOutput::authorization): <p>The authorization response.</p>
21    ///   - [`claims(Option<HashMap::<String, String>>)`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerOutput::claims): <p>The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.</p>
22    /// - On failure, responds with [`SdkError<TestInvokeAuthorizerError>`](crate::operation::test_invoke_authorizer::TestInvokeAuthorizerError)
23    pub fn test_invoke_authorizer(&self) -> crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder {
24        crate::operation::test_invoke_authorizer::builders::TestInvokeAuthorizerFluentBuilder::new(self.handle.clone())
25    }
26}