1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutRuleGroupsNamespace`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workspace_id(impl Into<String>)`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::workspace_id) / [`set_workspace_id(Option<String>)`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::set_workspace_id):<br>required: **true**<br><p>The ID of the workspace where you are updating the rule groups namespace.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::set_name):<br>required: **true**<br><p>The name of the rule groups namespace that you are updating.</p><br>
    ///   - [`data(Blob)`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::data) / [`set_data(Option<Blob>)`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::set_data):<br>required: **true**<br><p>The new rules file to use in the namespace. A base64-encoded version of the YAML rule groups file.</p> <p>For details about the rule groups namespace structure, see <a href="https://docs.aws.amazon.com/prometheus/latest/APIReference/yaml-RuleGroupsNamespaceData.html">RuleGroupsNamespaceData</a>.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.</p><br>
    /// - On success, responds with [`PutRuleGroupsNamespaceOutput`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceOutput) with field(s):
    ///   - [`name(String)`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceOutput::name): <p>The name of the rule groups namespace that was updated.</p>
    ///   - [`arn(String)`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceOutput::arn): <p>The ARN of the rule groups namespace.</p>
    ///   - [`status(Option<RuleGroupsNamespaceStatus>)`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceOutput::status): <p>A structure that includes the current status of the rule groups namespace.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceOutput::tags): <p>The list of tag keys and values that are associated with the namespace.</p>
    /// - On failure, responds with [`SdkError<PutRuleGroupsNamespaceError>`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError)
    pub fn put_rule_groups_namespace(&self) -> crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder {
        crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::new(self.handle.clone())
    }
}