Struct aws_sdk_ecr::operation::set_repository_policy::builders::SetRepositoryPolicyInputBuilder
source · #[non_exhaustive]pub struct SetRepositoryPolicyInputBuilder { /* private fields */ }
Expand description
A builder for SetRepositoryPolicyInput
.
Implementations§
source§impl SetRepositoryPolicyInputBuilder
impl SetRepositoryPolicyInputBuilder
sourcepub fn registry_id(self, input: impl Into<String>) -> Self
pub fn registry_id(self, input: impl Into<String>) -> Self
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 set_registry_id(self, input: Option<String>) -> Self
pub fn set_registry_id(self, input: Option<String>) -> Self
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 get_registry_id(&self) -> &Option<String>
pub fn get_registry_id(&self) -> &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.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository to receive the policy.
This field is required.sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository to receive the policy.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository to receive the policy.
sourcepub fn policy_text(self, input: impl Into<String>) -> Self
pub fn policy_text(self, input: impl Into<String>) -> Self
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.
This field is required.sourcepub fn set_policy_text(self, input: Option<String>) -> Self
pub fn set_policy_text(self, input: Option<String>) -> Self
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.
sourcepub fn get_policy_text(&self) -> &Option<String>
pub fn get_policy_text(&self) -> &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.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
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.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
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.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &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.
sourcepub fn build(self) -> Result<SetRepositoryPolicyInput, BuildError>
pub fn build(self) -> Result<SetRepositoryPolicyInput, BuildError>
Consumes the builder and constructs a SetRepositoryPolicyInput
.
source§impl SetRepositoryPolicyInputBuilder
impl SetRepositoryPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SetRepositoryPolicyOutput, SdkError<SetRepositoryPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SetRepositoryPolicyOutput, SdkError<SetRepositoryPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SetRepositoryPolicyInputBuilder
impl Clone for SetRepositoryPolicyInputBuilder
source§fn clone(&self) -> SetRepositoryPolicyInputBuilder
fn clone(&self) -> SetRepositoryPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SetRepositoryPolicyInputBuilder
impl Default for SetRepositoryPolicyInputBuilder
source§fn default() -> SetRepositoryPolicyInputBuilder
fn default() -> SetRepositoryPolicyInputBuilder
source§impl PartialEq for SetRepositoryPolicyInputBuilder
impl PartialEq for SetRepositoryPolicyInputBuilder
source§fn eq(&self, other: &SetRepositoryPolicyInputBuilder) -> bool
fn eq(&self, other: &SetRepositoryPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.