1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAuthorizer`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`authorizer_name(impl Into<String>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::authorizer_name) / [`set_authorizer_name(Option<String>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::set_authorizer_name):<br>required: **true**<br><p>The authorizer name.</p><br>
    ///   - [`authorizer_function_arn(impl Into<String>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::authorizer_function_arn) / [`set_authorizer_function_arn(Option<String>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::set_authorizer_function_arn):<br>required: **true**<br><p>The ARN of the authorizer's Lambda function.</p><br>
    ///   - [`token_key_name(impl Into<String>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::token_key_name) / [`set_token_key_name(Option<String>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::set_token_key_name):<br>required: **false**<br><p>The name of the token key used to extract the token from the HTTP headers.</p><br>
    ///   - [`token_signing_public_keys(impl Into<String>, impl Into<String>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::token_signing_public_keys) / [`set_token_signing_public_keys(Option<HashMap::<String, String>>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::set_token_signing_public_keys):<br>required: **false**<br><p>The public keys used to verify the digital signature returned by your custom authentication service.</p><br>
    ///   - [`status(AuthorizerStatus)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::status) / [`set_status(Option<AuthorizerStatus>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::set_status):<br>required: **false**<br><p>The status of the create authorizer request.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::set_tags):<br>required: **false**<br><p>Metadata which can be used to manage the custom authorizer.</p><note>  <p>For URI Request parameters use format: ...key1=value1&amp;key2=value2...</p>  <p>For the CLI command-line parameter use format: &amp;&amp;tags "key1=value1&amp;key2=value2..."</p>  <p>For the cli-input-json file use format: "tags": "key1=value1&amp;key2=value2..."</p> </note><br>
    ///   - [`signing_disabled(bool)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::signing_disabled) / [`set_signing_disabled(Option<bool>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::set_signing_disabled):<br>required: **false**<br><p>Specifies whether IoT validates the token signature in an authorization request.</p><br>
    ///   - [`enable_caching_for_http(bool)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::enable_caching_for_http) / [`set_enable_caching_for_http(Option<bool>)`](crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::set_enable_caching_for_http):<br>required: **false**<br><p>When <code>true</code>, the result from the authorizer’s Lambda function is cached for clients that use persistent HTTP connections. The results are cached for the time specified by the Lambda function in <code>refreshAfterInSeconds</code>. This value does not affect authorization of clients that use MQTT connections.</p> <p>The default value is <code>false</code>.</p><br>
    /// - On success, responds with [`CreateAuthorizerOutput`](crate::operation::create_authorizer::CreateAuthorizerOutput) with field(s):
    ///   - [`authorizer_name(Option<String>)`](crate::operation::create_authorizer::CreateAuthorizerOutput::authorizer_name): <p>The authorizer's name.</p>
    ///   - [`authorizer_arn(Option<String>)`](crate::operation::create_authorizer::CreateAuthorizerOutput::authorizer_arn): <p>The authorizer ARN.</p>
    /// - On failure, responds with [`SdkError<CreateAuthorizerError>`](crate::operation::create_authorizer::CreateAuthorizerError)
    pub fn create_authorizer(&self) -> crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder {
        crate::operation::create_authorizer::builders::CreateAuthorizerFluentBuilder::new(self.handle.clone())
    }
}