1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateEndpoint`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::set_name):<br>required: **true**<br><p>The name of the global endpoint. For example, <code>"Name":"us-east-2-custom_bus_A-endpoint"</code>.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::set_description):<br>required: **false**<br><p>A description of the global endpoint.</p><br>
    ///   - [`routing_config(RoutingConfig)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::routing_config) / [`set_routing_config(Option<RoutingConfig>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::set_routing_config):<br>required: **true**<br><p>Configure the routing policy, including the health check and secondary Region..</p><br>
    ///   - [`replication_config(ReplicationConfig)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::replication_config) / [`set_replication_config(Option<ReplicationConfig>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::set_replication_config):<br>required: **false**<br><p>Enable or disable event replication. The default state is <code>ENABLED</code> which means you must supply a <code>RoleArn</code>. If you don't have a <code>RoleArn</code> or you don't want event replication enabled, set the state to <code>DISABLED</code>.</p><br>
    ///   - [`event_buses(EndpointEventBus)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::event_buses) / [`set_event_buses(Option<Vec::<EndpointEventBus>>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::set_event_buses):<br>required: **true**<br><p>Define the event buses used.</p><important>  <p>The names of the event buses must be identical in each Region.</p> </important><br>
    ///   - [`role_arn(impl Into<String>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::set_role_arn):<br>required: **false**<br><p>The ARN of the role used for replication.</p><br>
    /// - On success, responds with [`CreateEndpointOutput`](crate::operation::create_endpoint::CreateEndpointOutput) with field(s):
    ///   - [`name(Option<String>)`](crate::operation::create_endpoint::CreateEndpointOutput::name): <p>The name of the endpoint that was created by this request.</p>
    ///   - [`arn(Option<String>)`](crate::operation::create_endpoint::CreateEndpointOutput::arn): <p>The ARN of the endpoint that was created by this request.</p>
    ///   - [`routing_config(Option<RoutingConfig>)`](crate::operation::create_endpoint::CreateEndpointOutput::routing_config): <p>The routing configuration defined by this request.</p>
    ///   - [`replication_config(Option<ReplicationConfig>)`](crate::operation::create_endpoint::CreateEndpointOutput::replication_config): <p>Whether event replication was enabled or disabled by this request.</p>
    ///   - [`event_buses(Option<Vec::<EndpointEventBus>>)`](crate::operation::create_endpoint::CreateEndpointOutput::event_buses): <p>The event buses used by this request.</p>
    ///   - [`role_arn(Option<String>)`](crate::operation::create_endpoint::CreateEndpointOutput::role_arn): <p>The ARN of the role used by event replication for this request.</p>
    ///   - [`state(Option<EndpointState>)`](crate::operation::create_endpoint::CreateEndpointOutput::state): <p>The state of the endpoint that was created by this request.</p>
    /// - On failure, responds with [`SdkError<CreateEndpointError>`](crate::operation::create_endpoint::CreateEndpointError)
    pub fn create_endpoint(&self) -> crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder {
        crate::operation::create_endpoint::builders::CreateEndpointFluentBuilder::new(self.handle.clone())
    }
}