aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetComment`](crate::operation::get_comment::builders::GetCommentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_arn(impl Into<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
    ///   - [`project(impl Into<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::project) / [`set_project(Option<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::set_project):<br>required: **true**<br><p>The name of the project.</p><br>
    ///   - [`framework(impl Into<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::framework) / [`set_framework(Option<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::set_framework):<br>required: **true**<br><p>The name of the compliance framework.</p><br>
    ///   - [`framework_version(impl Into<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::framework_version) / [`set_framework_version(Option<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::set_framework_version):<br>required: **true**<br><p>The version of the compliance framework.</p><br>
    ///   - [`control_id(impl Into<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::control_id) / [`set_control_id(Option<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::set_control_id):<br>required: **true**<br><p>The control identifier. Optional. If omitted, the operation applies to the full framework.</p><br>
    ///   - [`comment_id(impl Into<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::comment_id) / [`set_comment_id(Option<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::set_comment_id):<br>required: **true**<br><p>The unique identifier of the comment.</p><br>
    /// - On success, responds with [`GetCommentOutput`](crate::operation::get_comment::GetCommentOutput) with field(s):
    ///   - [`comment(Option<Comment>)`](crate::operation::get_comment::GetCommentOutput::comment): <p>The comment.</p>
    /// - On failure, responds with [`SdkError<GetCommentError>`](crate::operation::get_comment::GetCommentError)
    pub fn get_comment(&self) -> crate::operation::get_comment::builders::GetCommentFluentBuilder {
        crate::operation::get_comment::builders::GetCommentFluentBuilder::new(self.handle.clone())
    }
}