aws_sdk_rds/client/
add_source_identifier_to_subscription.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AddSourceIdentifierToSubscription`](crate::operation::add_source_identifier_to_subscription::builders::AddSourceIdentifierToSubscriptionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`subscription_name(impl Into<String>)`](crate::operation::add_source_identifier_to_subscription::builders::AddSourceIdentifierToSubscriptionFluentBuilder::subscription_name) / [`set_subscription_name(Option<String>)`](crate::operation::add_source_identifier_to_subscription::builders::AddSourceIdentifierToSubscriptionFluentBuilder::set_subscription_name):<br>required: **true**<br><p>The name of the RDS event notification subscription you want to add a source identifier to.</p><br>
    ///   - [`source_identifier(impl Into<String>)`](crate::operation::add_source_identifier_to_subscription::builders::AddSourceIdentifierToSubscriptionFluentBuilder::source_identifier) / [`set_source_identifier(Option<String>)`](crate::operation::add_source_identifier_to_subscription::builders::AddSourceIdentifierToSubscriptionFluentBuilder::set_source_identifier):<br>required: **true**<br><p>The identifier of the event source to be added.</p> <p>Constraints:</p> <ul>  <li>   <p>If the source type is a DB instance, a <code>DBInstanceIdentifier</code> value must be supplied.</p></li>  <li>   <p>If the source type is a DB cluster, a <code>DBClusterIdentifier</code> value must be supplied.</p></li>  <li>   <p>If the source type is a DB parameter group, a <code>DBParameterGroupName</code> value must be supplied.</p></li>  <li>   <p>If the source type is a DB security group, a <code>DBSecurityGroupName</code> value must be supplied.</p></li>  <li>   <p>If the source type is a DB snapshot, a <code>DBSnapshotIdentifier</code> value must be supplied.</p></li>  <li>   <p>If the source type is a DB cluster snapshot, a <code>DBClusterSnapshotIdentifier</code> value must be supplied.</p></li>  <li>   <p>If the source type is an RDS Proxy, a <code>DBProxyName</code> value must be supplied.</p></li> </ul><br>
    /// - On success, responds with [`AddSourceIdentifierToSubscriptionOutput`](crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionOutput) with field(s):
    ///   - [`event_subscription(Option<EventSubscription>)`](crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionOutput::event_subscription): <p>Contains the results of a successful invocation of the <code>DescribeEventSubscriptions</code> action.</p>
    /// - On failure, responds with [`SdkError<AddSourceIdentifierToSubscriptionError>`](crate::operation::add_source_identifier_to_subscription::AddSourceIdentifierToSubscriptionError)
    pub fn add_source_identifier_to_subscription(
        &self,
    ) -> crate::operation::add_source_identifier_to_subscription::builders::AddSourceIdentifierToSubscriptionFluentBuilder {
        crate::operation::add_source_identifier_to_subscription::builders::AddSourceIdentifierToSubscriptionFluentBuilder::new(self.handle.clone())
    }
}