aws_sdk_networkflowmonitor/client/
get_scope.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetScope`](crate::operation::get_scope::builders::GetScopeFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`scope_id(impl Into<String>)`](crate::operation::get_scope::builders::GetScopeFluentBuilder::scope_id) / [`set_scope_id(Option<String>)`](crate::operation::get_scope::builders::GetScopeFluentBuilder::set_scope_id):<br>required: **true**<br><p>The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account. A scope ID is returned from a <code>CreateScope</code> API call.</p><br>
    /// - On success, responds with [`GetScopeOutput`](crate::operation::get_scope::GetScopeOutput) with field(s):
    ///   - [`scope_id(String)`](crate::operation::get_scope::GetScopeOutput::scope_id): <p>The identifier for the scope that includes the resources you want to get data results for. A scope ID is an internally-generated identifier that includes all the resources for a specific root account. A scope ID is returned from a <code>CreateScope</code> API call.</p>
    ///   - [`status(ScopeStatus)`](crate::operation::get_scope::GetScopeOutput::status): <p>The status of a scope. The status can be one of the following: <code>SUCCEEDED</code>, <code>IN_PROGRESS</code>, or <code>FAILED</code>.</p>
    ///   - [`scope_arn(String)`](crate::operation::get_scope::GetScopeOutput::scope_arn): <p>The Amazon Resource Name (ARN) of the scope.</p>
    ///   - [`targets(Vec::<TargetResource>)`](crate::operation::get_scope::GetScopeOutput::targets): <p>The targets for a scope</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_scope::GetScopeOutput::tags): <p>The tags for a scope.</p>
    /// - On failure, responds with [`SdkError<GetScopeError>`](crate::operation::get_scope::GetScopeError)
    pub fn get_scope(&self) -> crate::operation::get_scope::builders::GetScopeFluentBuilder {
        crate::operation::get_scope::builders::GetScopeFluentBuilder::new(self.handle.clone())
    }
}