Struct aws_sdk_ecrpublic::input::SetRepositoryPolicyInput [−][src]
#[non_exhaustive]pub struct SetRepositoryPolicyInput {
pub registry_id: Option<String>,
pub repository_name: Option<String>,
pub policy_text: Option<String>,
pub force: 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 AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default public 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: 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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetRepositoryPolicy, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SetRepositoryPolicy, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<SetRepositoryPolicy
>
Creates a new builder-style object to manufacture SetRepositoryPolicyInput
The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default public registry is assumed.
The name of the repository to receive the policy.
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.
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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SetRepositoryPolicyInput
impl Send for SetRepositoryPolicyInput
impl Sync for SetRepositoryPolicyInput
impl Unpin for SetRepositoryPolicyInput
impl UnwindSafe for SetRepositoryPolicyInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more