#[non_exhaustive]pub struct EcrRepositoryConfiguration { /* private fields */ }
Expand description
The proposed access control configuration for an Amazon ECR repository. You can propose a configuration for a new Amazon ECR repository or an existing Amazon ECR repository that you own by specifying the Amazon ECR policy. For more information, see Repository.
-
If the configuration is for an existing Amazon ECR repository and you do not specify the Amazon ECR policy, then the access preview uses the existing Amazon ECR policy for the repository.
-
If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon ECR repository without a policy.
-
To propose deletion of an existing Amazon ECR repository policy, you can specify an empty string for the Amazon ECR policy.
Implementations§
source§impl EcrRepositoryConfiguration
impl EcrRepositoryConfiguration
sourcepub fn repository_policy(&self) -> Option<&str>
pub fn repository_policy(&self) -> Option<&str>
The JSON repository policy text to apply to the Amazon ECR repository. For more information, see Private repository policy examples in the Amazon ECR User Guide.
source§impl EcrRepositoryConfiguration
impl EcrRepositoryConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EcrRepositoryConfiguration
.
Trait Implementations§
source§impl Clone for EcrRepositoryConfiguration
impl Clone for EcrRepositoryConfiguration
source§fn clone(&self) -> EcrRepositoryConfiguration
fn clone(&self) -> EcrRepositoryConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EcrRepositoryConfiguration
impl Debug for EcrRepositoryConfiguration
source§impl PartialEq<EcrRepositoryConfiguration> for EcrRepositoryConfiguration
impl PartialEq<EcrRepositoryConfiguration> for EcrRepositoryConfiguration
source§fn eq(&self, other: &EcrRepositoryConfiguration) -> bool
fn eq(&self, other: &EcrRepositoryConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.