aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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())
    }
}