1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateDeployment`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`rest_api_id(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::rest_api_id) / [`set_rest_api_id(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_rest_api_id):<br>required: **true**<br><p>The string identifier of the associated RestApi.</p><br>
    ///   - [`stage_name(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::stage_name) / [`set_stage_name(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_stage_name):<br>required: **false**<br><p>The name of the Stage resource for the Deployment resource to create.</p><br>
    ///   - [`stage_description(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::stage_description) / [`set_stage_description(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_stage_description):<br>required: **false**<br><p>The description of the Stage resource for the Deployment resource to create.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_description):<br>required: **false**<br><p>The description for the Deployment resource to create.</p><br>
    ///   - [`cache_cluster_enabled(bool)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::cache_cluster_enabled) / [`set_cache_cluster_enabled(Option<bool>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_cache_cluster_enabled):<br>required: **false**<br><p>Enables a cache cluster for the Stage resource specified in the input.</p><br>
    ///   - [`cache_cluster_size(CacheClusterSize)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::cache_cluster_size) / [`set_cache_cluster_size(Option<CacheClusterSize>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_cache_cluster_size):<br>required: **false**<br><p>The stage's cache capacity in GB. For more information about choosing a cache size, see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html">Enabling API caching to enhance responsiveness</a>.</p><br>
    ///   - [`variables(impl Into<String>, impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::variables) / [`set_variables(Option<HashMap::<String, String>>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_variables):<br>required: **false**<br><p>A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p><br>
    ///   - [`canary_settings(DeploymentCanarySettings)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::canary_settings) / [`set_canary_settings(Option<DeploymentCanarySettings>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_canary_settings):<br>required: **false**<br><p>The input configuration for the canary deployment when the deployment is a canary release deployment.</p><br>
    ///   - [`tracing_enabled(bool)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::tracing_enabled) / [`set_tracing_enabled(Option<bool>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_tracing_enabled):<br>required: **false**<br><p>Specifies whether active tracing with X-ray is enabled for the Stage.</p><br>
    /// - On success, responds with [`CreateDeploymentOutput`](crate::operation::create_deployment::CreateDeploymentOutput) with field(s):
    ///   - [`id(Option<String>)`](crate::operation::create_deployment::CreateDeploymentOutput::id): <p>The identifier for the deployment resource.</p>
    ///   - [`description(Option<String>)`](crate::operation::create_deployment::CreateDeploymentOutput::description): <p>The description for the deployment resource.</p>
    ///   - [`created_date(Option<DateTime>)`](crate::operation::create_deployment::CreateDeploymentOutput::created_date): <p>The date and time that the deployment resource was created.</p>
    ///   - [`api_summary(Option<HashMap::<String, HashMap::<String, MethodSnapshot>>>)`](crate::operation::create_deployment::CreateDeploymentOutput::api_summary): <p>A summary of the RestApi at the date and time that the deployment resource was created.</p>
    /// - On failure, responds with [`SdkError<CreateDeploymentError>`](crate::operation::create_deployment::CreateDeploymentError)
    pub fn create_deployment(&self) -> crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder {
        crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::new(self.handle.clone())
    }
}