aws_sdk_cognitoidentityprovider/client/
start_web_authn_registration.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 [`StartWebAuthnRegistration`](crate::operation::start_web_authn_registration::builders::StartWebAuthnRegistrationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`access_token(impl Into<String>)`](crate::operation::start_web_authn_registration::builders::StartWebAuthnRegistrationFluentBuilder::access_token) / [`set_access_token(Option<String>)`](crate::operation::start_web_authn_registration::builders::StartWebAuthnRegistrationFluentBuilder::set_access_token):<br>required: **true**<br><p>A valid access token that Amazon Cognito issued to the currently signed-in user. Must include a scope claim for <code>aws.cognito.signin.user.admin</code>.</p><br>
7    /// - On success, responds with [`StartWebAuthnRegistrationOutput`](crate::operation::start_web_authn_registration::StartWebAuthnRegistrationOutput) with field(s):
8    ///   - [`credential_creation_options(Document)`](crate::operation::start_web_authn_registration::StartWebAuthnRegistrationOutput::credential_creation_options): <p>The information that a user can provide in their request to register with their passkey provider.</p>
9    /// - On failure, responds with [`SdkError<StartWebAuthnRegistrationError>`](crate::operation::start_web_authn_registration::StartWebAuthnRegistrationError)
10    pub fn start_web_authn_registration(&self) -> crate::operation::start_web_authn_registration::builders::StartWebAuthnRegistrationFluentBuilder {
11        crate::operation::start_web_authn_registration::builders::StartWebAuthnRegistrationFluentBuilder::new(self.handle.clone())
12    }
13}