#[non_exhaustive]pub struct EcrRepositoryConfiguration {
pub repository_policy: Option<String>,
}
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.repository_policy: Option<String>
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.
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() -> EcrRepositoryConfigurationBuilder
pub fn builder() -> EcrRepositoryConfigurationBuilder
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 for EcrRepositoryConfiguration
impl PartialEq 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 ==
.impl StructuralPartialEq for EcrRepositoryConfiguration
Auto Trait Implementations§
impl Freeze for EcrRepositoryConfiguration
impl RefUnwindSafe for EcrRepositoryConfiguration
impl Send for EcrRepositoryConfiguration
impl Sync for EcrRepositoryConfiguration
impl Unpin for EcrRepositoryConfiguration
impl UnwindSafe for EcrRepositoryConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more