1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateSegment`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_name): <p>A name for the segment.</p>
    ///   - [`pattern(impl Into<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::pattern) / [`set_pattern(Option<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_pattern): <p>The pattern to use for the segment. For more information about pattern syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-segments.html#CloudWatch-Evidently-segments-syntax.html"> Segment rule pattern syntax</a>.</p>
    ///   - [`description(impl Into<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_description): <p>An optional description for this segment.</p>
    ///   - [`tags(HashMap<String, String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_tags): <p>Assigns one or more tags (key-value pairs) to the segment.</p>  <p>Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.</p>  <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>  <p>You can associate as many as 50 tags with a segment.</p>  <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p>
    /// - On success, responds with [`CreateSegmentOutput`](crate::operation::create_segment::CreateSegmentOutput) with field(s):
    ///   - [`segment(Option<Segment>)`](crate::operation::create_segment::CreateSegmentOutput::segment): <p>A structure that contains the complete information about the segment that was just created.</p>
    /// - On failure, responds with [`SdkError<CreateSegmentError>`](crate::operation::create_segment::CreateSegmentError)
    pub fn create_segment(
        &self,
    ) -> crate::operation::create_segment::builders::CreateSegmentFluentBuilder {
        crate::operation::create_segment::builders::CreateSegmentFluentBuilder::new(
            self.handle.clone(),
        )
    }
}