// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateEnvironmentConnection`](crate::operation::create_environment_connection::builders::CreateEnvironmentConnectionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`environment_arn(impl Into<String>)`](crate::operation::create_environment_connection::builders::CreateEnvironmentConnectionFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::create_environment_connection::builders::CreateEnvironmentConnectionFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
/// - [`provider_config(ConnectionProviderConfig)`](crate::operation::create_environment_connection::builders::CreateEnvironmentConnectionFluentBuilder::provider_config) / [`set_provider_config(Option<ConnectionProviderConfig>)`](crate::operation::create_environment_connection::builders::CreateEnvironmentConnectionFluentBuilder::set_provider_config):<br>required: **true**<br><p>The evidence source to connect. Set exactly one member.</p><br>
/// - On success, responds with [`CreateEnvironmentConnectionOutput`](crate::operation::create_environment_connection::CreateEnvironmentConnectionOutput) with field(s):
/// - [`status(ConnectionStatus)`](crate::operation::create_environment_connection::CreateEnvironmentConnectionOutput::status): <p>The status of the connection. To get the other attributes of the connection, call <code>ListEnvironmentConnections</code>.</p>
/// - [`authorization_url(Option<String>)`](crate::operation::create_environment_connection::CreateEnvironmentConnectionOutput::authorization_url): <p>The URL to open in a browser to approve access at GitHub or Microsoft. The response includes this URL only for a <code>github</code> or <code>sharepoint</code> connection with a status of <code>PENDING</code>. The connection becomes <code>ACTIVE</code> after you approve access.</p> <p>The response includes this URL only once. If you lose it, call <code>CreateEnvironmentConnection</code> again.</p>
/// - On failure, responds with [`SdkError<CreateEnvironmentConnectionError>`](crate::operation::create_environment_connection::CreateEnvironmentConnectionError)
pub fn create_environment_connection(
&self,
) -> crate::operation::create_environment_connection::builders::CreateEnvironmentConnectionFluentBuilder {
crate::operation::create_environment_connection::builders::CreateEnvironmentConnectionFluentBuilder::new(self.handle.clone())
}
}