aws_sdk_devopsagent/client/associate_service.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 [`AssociateService`](crate::operation::associate_service::builders::AssociateServiceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`agent_space_id(impl Into<String>)`](crate::operation::associate_service::builders::AssociateServiceFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::associate_service::builders::AssociateServiceFluentBuilder::set_agent_space_id):<br>required: **true**<br>The unique identifier of the AgentSpace<br>
7 /// - [`service_id(impl Into<String>)`](crate::operation::associate_service::builders::AssociateServiceFluentBuilder::service_id) / [`set_service_id(Option<String>)`](crate::operation::associate_service::builders::AssociateServiceFluentBuilder::set_service_id):<br>required: **true**<br>The unique identifier of the service.<br>
8 /// - [`configuration(ServiceConfiguration)`](crate::operation::associate_service::builders::AssociateServiceFluentBuilder::configuration) / [`set_configuration(Option<ServiceConfiguration>)`](crate::operation::associate_service::builders::AssociateServiceFluentBuilder::set_configuration):<br>required: **true**<br>The configuration that directs how AgentSpace interacts with the given service.<br>
9 /// - On success, responds with [`AssociateServiceOutput`](crate::operation::associate_service::AssociateServiceOutput) with field(s):
10 /// - [`association(Option<Association>)`](crate::operation::associate_service::AssociateServiceOutput::association): Represents a service association within an AgentSpace, defining how the agent interacts with external services.
11 /// - [`webhook(Option<GenericWebhook>)`](crate::operation::associate_service::AssociateServiceOutput::webhook): Generic webhook configuration
12 /// - On failure, responds with [`SdkError<AssociateServiceError>`](crate::operation::associate_service::AssociateServiceError)
13 pub fn associate_service(&self) -> crate::operation::associate_service::builders::AssociateServiceFluentBuilder {
14 crate::operation::associate_service::builders::AssociateServiceFluentBuilder::new(self.handle.clone())
15 }
16}