#[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
source§fn eq(&self, other: &SetRepositoryPolicyInput) -> bool
fn eq(&self, other: &SetRepositoryPolicyInput) -> bool
self
and other
values to be equal, and is used
by ==
.