aws-sdk-amplifygen3 1.0.0

AWS SDK for AWS Amplify Gen 3
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetEnvironment`](crate::operation::get_environment::builders::GetEnvironmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_name(impl Into<String>)`](crate::operation::get_environment::builders::GetEnvironmentFluentBuilder::app_name) / [`set_app_name(Option<String>)`](crate::operation::get_environment::builders::GetEnvironmentFluentBuilder::set_app_name):<br>required: **true**<br><p>The name of the app.</p><br>
    ///   - [`environment_name(impl Into<String>)`](crate::operation::get_environment::builders::GetEnvironmentFluentBuilder::environment_name) / [`set_environment_name(Option<String>)`](crate::operation::get_environment::builders::GetEnvironmentFluentBuilder::set_environment_name):<br>required: **true**<br><p>The name of the environment.</p><br>
    /// - On success, responds with [`GetEnvironmentOutput`](crate::operation::get_environment::GetEnvironmentOutput) with field(s):
    ///   - [`app_name(String)`](crate::operation::get_environment::GetEnvironmentOutput::app_name): <p>The name of the app.</p>
    ///   - [`environment_name(String)`](crate::operation::get_environment::GetEnvironmentOutput::environment_name): <p>The name of the environment.</p>
    ///   - [`environment_arn(String)`](crate::operation::get_environment::GetEnvironmentOutput::environment_arn): <p>The Amazon Resource Name (ARN) of the environment.</p>
    ///   - [`r#type(EnvironmentType)`](crate::operation::get_environment::GetEnvironmentOutput::type): <p>The type of the environment.</p>
    ///   - [`environment_role_arn(String)`](crate::operation::get_environment::GetEnvironmentOutput::environment_role_arn): <p>The Amazon Resource Name (ARN) of the IAM role for the environment.</p>
    ///   - [`environment_role_permission_mode(Option<EnvironmentRolePermissionMode>)`](crate::operation::get_environment::GetEnvironmentOutput::environment_role_permission_mode): <p>The permission mode for the environment's IAM role.</p>
    ///   - [`source_config(Option<EnvironmentSourceConfig>)`](crate::operation::get_environment::GetEnvironmentOutput::source_config): <p>The source configuration for the environment.</p>
    ///   - [`waf_log_configs(Option<Vec::<WafLogConfig>>)`](crate::operation::get_environment::GetEnvironmentOutput::waf_log_configs): <p>A list of the environment's AWS WAF log configurations. Omitted when the environment has no WAF log configuration.</p>
    ///   - [`gradual_rollout_config(Option<GradualRolloutConfig>)`](crate::operation::get_environment::GetEnvironmentOutput::gradual_rollout_config): <p>The gradual rollout settings.</p>
    ///   - [`web(Option<EnvironmentWebConfig>)`](crate::operation::get_environment::GetEnvironmentOutput::web): <p>The web hosting settings for the environment.</p>
    ///   - [`backend(Option<EnvironmentBackend>)`](crate::operation::get_environment::GetEnvironmentOutput::backend): <p>The backend settings for the environment. Database is present only when the app has a backend. Auth is present whenever it is stored.</p>
    ///   - [`network_config(Option<EnvironmentNetworkConfig>)`](crate::operation::get_environment::GetEnvironmentOutput::network_config): <p>The VPC network configuration for the environment.</p>
    ///   - [`created_at(DateTime)`](crate::operation::get_environment::GetEnvironmentOutput::created_at): <p>The time at which the environment was created. The value is in ISO-8601 format.</p>
    ///   - [`updated_at(Option<DateTime>)`](crate::operation::get_environment::GetEnvironmentOutput::updated_at): <p>The time at which the environment was last updated. The value is in ISO-8601 format.</p>
    /// - On failure, responds with [`SdkError<GetEnvironmentError>`](crate::operation::get_environment::GetEnvironmentError)
    pub fn get_environment(&self) -> crate::operation::get_environment::builders::GetEnvironmentFluentBuilder {
        crate::operation::get_environment::builders::GetEnvironmentFluentBuilder::new(self.handle.clone())
    }
}