1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateGraphqlApi`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_name): <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
    ///   - [`log_config(LogConfig)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::log_config) / [`set_log_config(Option<LogConfig>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_log_config): <p>The Amazon CloudWatch Logs configuration.</p>
    ///   - [`authentication_type(AuthenticationType)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::authentication_type) / [`set_authentication_type(Option<AuthenticationType>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_authentication_type): <p>The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.</p>
    ///   - [`user_pool_config(UserPoolConfig)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::user_pool_config) / [`set_user_pool_config(Option<UserPoolConfig>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_user_pool_config): <p>The Amazon Cognito user pool configuration.</p>
    ///   - [`open_id_connect_config(OpenIdConnectConfig)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::open_id_connect_config) / [`set_open_id_connect_config(Option<OpenIdConnectConfig>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_open_id_connect_config): <p>The OIDC configuration.</p>
    ///   - [`tags(HashMap<String, String>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_tags): <p>A <code>TagMap</code> object.</p>
    ///   - [`additional_authentication_providers(Vec<AdditionalAuthenticationProvider>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::additional_authentication_providers) / [`set_additional_authentication_providers(Option<Vec<AdditionalAuthenticationProvider>>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_additional_authentication_providers): <p>A list of additional authentication providers for the <code>GraphqlApi</code> API.</p>
    ///   - [`xray_enabled(bool)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::xray_enabled) / [`set_xray_enabled(bool)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_xray_enabled): <p>A flag indicating whether to use X-Ray tracing for the <code>GraphqlApi</code>.</p>
    ///   - [`lambda_authorizer_config(LambdaAuthorizerConfig)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::lambda_authorizer_config) / [`set_lambda_authorizer_config(Option<LambdaAuthorizerConfig>)`](crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::set_lambda_authorizer_config): <p>Configuration for Lambda function authorization.</p>
    /// - On success, responds with [`CreateGraphqlApiOutput`](crate::operation::create_graphql_api::CreateGraphqlApiOutput) with field(s):
    ///   - [`graphql_api(Option<GraphqlApi>)`](crate::operation::create_graphql_api::CreateGraphqlApiOutput::graphql_api): <p>The <code>GraphqlApi</code>.</p>
    /// - On failure, responds with [`SdkError<CreateGraphqlApiError>`](crate::operation::create_graphql_api::CreateGraphqlApiError)
    pub fn create_graphql_api(
        &self,
    ) -> crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder {
        crate::operation::create_graphql_api::builders::CreateGraphqlApiFluentBuilder::new(
            self.handle.clone(),
        )
    }
}