Struct aws_sdk_ecr::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateInputBuilder
source · #[non_exhaustive]pub struct UpdateRepositoryCreationTemplateInputBuilder { /* private fields */ }Expand description
A builder for UpdateRepositoryCreationTemplateInput.
Implementations§
source§impl UpdateRepositoryCreationTemplateInputBuilder
impl UpdateRepositoryCreationTemplateInputBuilder
sourcepub fn prefix(self, input: impl Into<String>) -> Self
pub fn prefix(self, input: impl Into<String>) -> Self
The repository namespace prefix that matches an existing repository creation template in the registry. All repositories created using this namespace prefix will have the settings defined in this template applied. For example, a prefix of prod would apply to all repositories beginning with prod/. This includes a repository named prod/team1 as well as a repository named prod/repository1.
To apply a template to all repositories in your registry that don't have an associated creation template, you can use ROOT as the prefix.
sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
The repository namespace prefix that matches an existing repository creation template in the registry. All repositories created using this namespace prefix will have the settings defined in this template applied. For example, a prefix of prod would apply to all repositories beginning with prod/. This includes a repository named prod/team1 as well as a repository named prod/repository1.
To apply a template to all repositories in your registry that don't have an associated creation template, you can use ROOT as the prefix.
sourcepub fn get_prefix(&self) -> &Option<String>
pub fn get_prefix(&self) -> &Option<String>
The repository namespace prefix that matches an existing repository creation template in the registry. All repositories created using this namespace prefix will have the settings defined in this template applied. For example, a prefix of prod would apply to all repositories beginning with prod/. This includes a repository named prod/team1 as well as a repository named prod/repository1.
To apply a template to all repositories in your registry that don't have an associated creation template, you can use ROOT as the prefix.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the repository creation template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the repository creation template.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for the repository creation template.
sourcepub fn encryption_configuration(
self,
input: EncryptionConfigurationForRepositoryCreationTemplate,
) -> Self
pub fn encryption_configuration( self, input: EncryptionConfigurationForRepositoryCreationTemplate, ) -> Self
The encryption configuration to associate with the repository creation template.
sourcepub fn set_encryption_configuration(
self,
input: Option<EncryptionConfigurationForRepositoryCreationTemplate>,
) -> Self
pub fn set_encryption_configuration( self, input: Option<EncryptionConfigurationForRepositoryCreationTemplate>, ) -> Self
The encryption configuration to associate with the repository creation template.
sourcepub fn get_encryption_configuration(
&self,
) -> &Option<EncryptionConfigurationForRepositoryCreationTemplate>
pub fn get_encryption_configuration( &self, ) -> &Option<EncryptionConfigurationForRepositoryCreationTemplate>
The encryption configuration to associate with the repository creation template.
Appends an item to resource_tags.
To override the contents of this collection use set_resource_tags.
The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
The metadata to apply to the repository to help you categorize and organize. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
sourcepub fn image_tag_mutability(self, input: ImageTagMutability) -> Self
pub fn image_tag_mutability(self, input: ImageTagMutability) -> Self
Updates the tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
sourcepub fn set_image_tag_mutability(self, input: Option<ImageTagMutability>) -> Self
pub fn set_image_tag_mutability(self, input: Option<ImageTagMutability>) -> Self
Updates the tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
sourcepub fn get_image_tag_mutability(&self) -> &Option<ImageTagMutability>
pub fn get_image_tag_mutability(&self) -> &Option<ImageTagMutability>
Updates the tag mutability setting for the repository. If this parameter is omitted, the default setting of MUTABLE will be used which will allow image tags to be overwritten. If IMMUTABLE is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.
sourcepub fn repository_policy(self, input: impl Into<String>) -> Self
pub fn repository_policy(self, input: impl Into<String>) -> Self
Updates the repository policy created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
sourcepub fn set_repository_policy(self, input: Option<String>) -> Self
pub fn set_repository_policy(self, input: Option<String>) -> Self
Updates the repository policy created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
sourcepub fn get_repository_policy(&self) -> &Option<String>
pub fn get_repository_policy(&self) -> &Option<String>
Updates the repository policy created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.
sourcepub fn lifecycle_policy(self, input: impl Into<String>) -> Self
pub fn lifecycle_policy(self, input: impl Into<String>) -> Self
Updates the lifecycle policy associated with the specified repository creation template.
sourcepub fn set_lifecycle_policy(self, input: Option<String>) -> Self
pub fn set_lifecycle_policy(self, input: Option<String>) -> Self
Updates the lifecycle policy associated with the specified repository creation template.
sourcepub fn get_lifecycle_policy(&self) -> &Option<String>
pub fn get_lifecycle_policy(&self) -> &Option<String>
Updates the lifecycle policy associated with the specified repository creation template.
sourcepub fn applied_for(self, input: RctAppliedFor) -> Self
pub fn applied_for(self, input: RctAppliedFor) -> Self
Appends an item to applied_for.
To override the contents of this collection use set_applied_for.
Updates the list of enumerable strings representing the Amazon ECR repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
sourcepub fn set_applied_for(self, input: Option<Vec<RctAppliedFor>>) -> Self
pub fn set_applied_for(self, input: Option<Vec<RctAppliedFor>>) -> Self
Updates the list of enumerable strings representing the Amazon ECR repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
sourcepub fn get_applied_for(&self) -> &Option<Vec<RctAppliedFor>>
pub fn get_applied_for(&self) -> &Option<Vec<RctAppliedFor>>
Updates the list of enumerable strings representing the Amazon ECR repository creation scenarios that this template will apply towards. The two supported scenarios are PULL_THROUGH_CACHE and REPLICATION
sourcepub fn custom_role_arn(self, input: impl Into<String>) -> Self
pub fn custom_role_arn(self, input: impl Into<String>) -> Self
The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as the registry that you are configuring. Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.
sourcepub fn set_custom_role_arn(self, input: Option<String>) -> Self
pub fn set_custom_role_arn(self, input: Option<String>) -> Self
The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as the registry that you are configuring. Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.
sourcepub fn get_custom_role_arn(&self) -> &Option<String>
pub fn get_custom_role_arn(&self) -> &Option<String>
The ARN of the role to be assumed by Amazon ECR. This role must be in the same account as the registry that you are configuring. Amazon ECR will assume your supplied role when the customRoleArn is specified. When this field isn't specified, Amazon ECR will use the service-linked role for the repository creation template.
sourcepub fn build(self) -> Result<UpdateRepositoryCreationTemplateInput, BuildError>
pub fn build(self) -> Result<UpdateRepositoryCreationTemplateInput, BuildError>
Consumes the builder and constructs a UpdateRepositoryCreationTemplateInput.
source§impl UpdateRepositoryCreationTemplateInputBuilder
impl UpdateRepositoryCreationTemplateInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateRepositoryCreationTemplateOutput, SdkError<UpdateRepositoryCreationTemplateError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateRepositoryCreationTemplateOutput, SdkError<UpdateRepositoryCreationTemplateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateRepositoryCreationTemplateInputBuilder
impl Clone for UpdateRepositoryCreationTemplateInputBuilder
source§fn clone(&self) -> UpdateRepositoryCreationTemplateInputBuilder
fn clone(&self) -> UpdateRepositoryCreationTemplateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateRepositoryCreationTemplateInputBuilder
impl Default for UpdateRepositoryCreationTemplateInputBuilder
source§fn default() -> UpdateRepositoryCreationTemplateInputBuilder
fn default() -> UpdateRepositoryCreationTemplateInputBuilder
source§impl PartialEq for UpdateRepositoryCreationTemplateInputBuilder
impl PartialEq for UpdateRepositoryCreationTemplateInputBuilder
source§fn eq(&self, other: &UpdateRepositoryCreationTemplateInputBuilder) -> bool
fn eq(&self, other: &UpdateRepositoryCreationTemplateInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateRepositoryCreationTemplateInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateRepositoryCreationTemplateInputBuilder
impl RefUnwindSafe for UpdateRepositoryCreationTemplateInputBuilder
impl Send for UpdateRepositoryCreationTemplateInputBuilder
impl Sync for UpdateRepositoryCreationTemplateInputBuilder
impl Unpin for UpdateRepositoryCreationTemplateInputBuilder
impl UnwindSafe for UpdateRepositoryCreationTemplateInputBuilder
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