aws_sdk_amp/client/
put_rule_groups_namespace.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 [`PutRuleGroupsNamespace`](crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    ///   - [`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>
9    ///   - [`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>
10    /// - On success, responds with [`PutRuleGroupsNamespaceOutput`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceOutput) with field(s):
11    ///   - [`name(String)`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceOutput::name): <p>The name of the rule groups namespace that was updated.</p>
12    ///   - [`arn(String)`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceOutput::arn): <p>The ARN of the rule groups namespace.</p>
13    ///   - [`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>
14    ///   - [`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>
15    /// - On failure, responds with [`SdkError<PutRuleGroupsNamespaceError>`](crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError)
16    pub fn put_rule_groups_namespace(&self) -> crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder {
17        crate::operation::put_rule_groups_namespace::builders::PutRuleGroupsNamespaceFluentBuilder::new(self.handle.clone())
18    }
19}