aws_sdk_ecr/client/
get_repository_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 [`GetRepositoryPolicy`](crate::operation::get_repository_policy::builders::GetRepositoryPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`registry_id(impl Into<String>)`](crate::operation::get_repository_policy::builders::GetRepositoryPolicyFluentBuilder::registry_id) / [`set_registry_id(Option<String>)`](crate::operation::get_repository_policy::builders::GetRepositoryPolicyFluentBuilder::set_registry_id):<br>required: **false**<br><p>The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.</p><br>
7    ///   - [`repository_name(impl Into<String>)`](crate::operation::get_repository_policy::builders::GetRepositoryPolicyFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::get_repository_policy::builders::GetRepositoryPolicyFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository with the policy to retrieve.</p><br>
8    /// - On success, responds with [`GetRepositoryPolicyOutput`](crate::operation::get_repository_policy::GetRepositoryPolicyOutput) with field(s):
9    ///   - [`registry_id(Option<String>)`](crate::operation::get_repository_policy::GetRepositoryPolicyOutput::registry_id): <p>The registry ID associated with the request.</p>
10    ///   - [`repository_name(Option<String>)`](crate::operation::get_repository_policy::GetRepositoryPolicyOutput::repository_name): <p>The repository name associated with the request.</p>
11    ///   - [`policy_text(Option<String>)`](crate::operation::get_repository_policy::GetRepositoryPolicyOutput::policy_text): <p>The JSON repository policy text associated with the repository.</p>
12    /// - On failure, responds with [`SdkError<GetRepositoryPolicyError>`](crate::operation::get_repository_policy::GetRepositoryPolicyError)
13    pub fn get_repository_policy(&self) -> crate::operation::get_repository_policy::builders::GetRepositoryPolicyFluentBuilder {
14        crate::operation::get_repository_policy::builders::GetRepositoryPolicyFluentBuilder::new(self.handle.clone())
15    }
16}