aws_sdk_wafv2/client/
get_permission_policy.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetPermissionPolicy`](crate::operation::get_permission_policy::builders::GetPermissionPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::get_permission_policy::builders::GetPermissionPolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::get_permission_policy::builders::GetPermissionPolicyFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the rule group for which you want to get the policy.</p><br>
    /// - On success, responds with [`GetPermissionPolicyOutput`](crate::operation::get_permission_policy::GetPermissionPolicyOutput) with field(s):
    ///   - [`policy(Option<String>)`](crate::operation::get_permission_policy::GetPermissionPolicyOutput::policy): <p>The IAM policy that is attached to the specified rule group.</p>
    /// - On failure, responds with [`SdkError<GetPermissionPolicyError>`](crate::operation::get_permission_policy::GetPermissionPolicyError)
    pub fn get_permission_policy(&self) -> crate::operation::get_permission_policy::builders::GetPermissionPolicyFluentBuilder {
        crate::operation::get_permission_policy::builders::GetPermissionPolicyFluentBuilder::new(self.handle.clone())
    }
}