#[non_exhaustive]pub struct SetRepositoryPolicyInput {
pub registry_id: Option<String>,
pub repository_name: Option<String>,
pub policy_text: Option<String>,
pub force: Option<bool>,
}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.registry_id: Option<String>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.
repository_name: Option<String>The name of the repository to receive the policy.
policy_text: Option<String>The JSON repository policy text to apply to the repository. For more information, see Amazon ECR repository policies in the Amazon Elastic Container Registry User Guide.
force: Option<bool>If the policy you are attempting to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation. This is intended to prevent accidental repository lock outs.
Implementations§
source§impl SetRepositoryPolicyInput
impl SetRepositoryPolicyInput
sourcepub fn registry_id(&self) -> Option<&str>
pub fn registry_id(&self) -> Option<&str>
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.
sourcepub fn repository_name(&self) -> Option<&str>
pub fn repository_name(&self) -> Option<&str>
The name of the repository to receive the policy.
sourcepub fn policy_text(&self) -> Option<&str>
pub fn policy_text(&self) -> Option<&str>
The JSON repository policy text to apply to the repository. For more information, see Amazon ECR repository policies in the Amazon Elastic Container Registry User Guide.
source§impl SetRepositoryPolicyInput
impl SetRepositoryPolicyInput
sourcepub fn builder() -> SetRepositoryPolicyInputBuilder
pub fn builder() -> SetRepositoryPolicyInputBuilder
Creates a new builder-style object to manufacture SetRepositoryPolicyInput.
Trait Implementations§
source§impl Clone for SetRepositoryPolicyInput
impl Clone for SetRepositoryPolicyInput
source§fn clone(&self) -> SetRepositoryPolicyInput
fn clone(&self) -> SetRepositoryPolicyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SetRepositoryPolicyInput
impl Debug for SetRepositoryPolicyInput
source§impl PartialEq for SetRepositoryPolicyInput
impl PartialEq for SetRepositoryPolicyInput
impl StructuralPartialEq for SetRepositoryPolicyInput
Auto Trait Implementations§
impl Freeze for SetRepositoryPolicyInput
impl RefUnwindSafe for SetRepositoryPolicyInput
impl Send for SetRepositoryPolicyInput
impl Sync for SetRepositoryPolicyInput
impl Unpin for SetRepositoryPolicyInput
impl UnwindSafe for SetRepositoryPolicyInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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