aws_sdk_codeguruprofiler/client/
get_policy.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 [`GetPolicy`](crate::operation::get_policy::builders::GetPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`profiling_group_name(impl Into<String>)`](crate::operation::get_policy::builders::GetPolicyFluentBuilder::profiling_group_name) / [`set_profiling_group_name(Option<String>)`](crate::operation::get_policy::builders::GetPolicyFluentBuilder::set_profiling_group_name):<br>required: **true**<br><p>The name of the profiling group.</p><br>
7    /// - On success, responds with [`GetPolicyOutput`](crate::operation::get_policy::GetPolicyOutput) with field(s):
8    ///   - [`policy(String)`](crate::operation::get_policy::GetPolicyOutput::policy): <p>The JSON-formatted resource-based policy attached to the <code>ProfilingGroup</code>.</p>
9    ///   - [`revision_id(String)`](crate::operation::get_policy::GetPolicyOutput::revision_id): <p>A unique identifier for the current revision of the returned policy.</p>
10    /// - On failure, responds with [`SdkError<GetPolicyError>`](crate::operation::get_policy::GetPolicyError)
11    pub fn get_policy(&self) -> crate::operation::get_policy::builders::GetPolicyFluentBuilder {
12        crate::operation::get_policy::builders::GetPolicyFluentBuilder::new(self.handle.clone())
13    }
14}