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 [`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):<br>required: **true**<br><p>A name for the segment.</p><br>
    ///   - [`pattern(impl Into<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::pattern) / [`set_pattern(Option<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_pattern):<br>required: **true**<br><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><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_description):<br>required: **false**<br><p>An optional description for this segment.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_tags):<br>required: **false**<br><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><br>
    /// - 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())
    }
}