aws_sdk_ecr/client/
get_registry_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 [`GetRegistryPolicy`](crate::operation::get_registry_policy::builders::GetRegistryPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_registry_policy::builders::GetRegistryPolicyFluentBuilder::send) it.
6    /// - On success, responds with [`GetRegistryPolicyOutput`](crate::operation::get_registry_policy::GetRegistryPolicyOutput) with field(s):
7    ///   - [`registry_id(Option<String>)`](crate::operation::get_registry_policy::GetRegistryPolicyOutput::registry_id): <p>The registry ID associated with the request.</p>
8    ///   - [`policy_text(Option<String>)`](crate::operation::get_registry_policy::GetRegistryPolicyOutput::policy_text): <p>The JSON text of the permissions policy for a registry.</p>
9    /// - On failure, responds with [`SdkError<GetRegistryPolicyError>`](crate::operation::get_registry_policy::GetRegistryPolicyError)
10    pub fn get_registry_policy(&self) -> crate::operation::get_registry_policy::builders::GetRegistryPolicyFluentBuilder {
11        crate::operation::get_registry_policy::builders::GetRegistryPolicyFluentBuilder::new(self.handle.clone())
12    }
13}