Skip to main content

aws_sdk_continuum/client/
start_integration_authorization.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`StartIntegrationAuthorization`](crate::operation::start_integration_authorization::builders::StartIntegrationAuthorizationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`provider_type(IntegrationAuthorizationProviderType)`](crate::operation::start_integration_authorization::builders::StartIntegrationAuthorizationFluentBuilder::provider_type) / [`set_provider_type(Option<IntegrationAuthorizationProviderType>)`](crate::operation::start_integration_authorization::builders::StartIntegrationAuthorizationFluentBuilder::set_provider_type):<br>required: **true**<br>The provider to authorize. Only GITHUB is supported.<br>
7    ///   - [`name(impl Into<String>)`](crate::operation::start_integration_authorization::builders::StartIntegrationAuthorizationFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::start_integration_authorization::builders::StartIntegrationAuthorizationFluentBuilder::set_name):<br>required: **false**<br>The name the integration will be created with. When specified, the request fails with ConflictException if an integration with this name already exists in the account, before the caller leaves for the provider. The name is only checked: it is not reserved, stored, or authorized. CreateIntegration requires its own name, checks it again, and may use a different one.<br>
8    /// - On success, responds with [`StartIntegrationAuthorizationOutput`](crate::operation::start_integration_authorization::StartIntegrationAuthorizationOutput) with field(s):
9    ///   - [`state(String)`](crate::operation::start_integration_authorization::StartIntegrationAuthorizationOutput::state): An opaque value to send as the OAuth `state` parameter. Pass the value the provider returns in its callback to CreateIntegration as `authorization.state`.
10    ///   - [`code_challenge(String)`](crate::operation::start_integration_authorization::StartIntegrationAuthorizationOutput::code_challenge): The PKCE code challenge to send as the OAuth `code_challenge` parameter.
11    ///   - [`code_challenge_method(OAuthCodeChallengeMethod)`](crate::operation::start_integration_authorization::StartIntegrationAuthorizationOutput::code_challenge_method): The PKCE challenge method to send as the OAuth `code_challenge_method` parameter.
12    ///   - [`expires_at(DateTime)`](crate::operation::start_integration_authorization::StartIntegrationAuthorizationOutput::expires_at): The time after which CreateIntegration no longer accepts this authorization.
13    /// - On failure, responds with [`SdkError<StartIntegrationAuthorizationError>`](crate::operation::start_integration_authorization::StartIntegrationAuthorizationError)
14    pub fn start_integration_authorization(
15        &self,
16    ) -> crate::operation::start_integration_authorization::builders::StartIntegrationAuthorizationFluentBuilder {
17        crate::operation::start_integration_authorization::builders::StartIntegrationAuthorizationFluentBuilder::new(self.handle.clone())
18    }
19}