Struct aws_sdk_ecr::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateInput
source · #[non_exhaustive]pub struct UpdateRepositoryCreationTemplateInput {
pub prefix: Option<String>,
pub description: Option<String>,
pub encryption_configuration: Option<EncryptionConfigurationForRepositoryCreationTemplate>,
pub resource_tags: Option<Vec<Tag>>,
pub image_tag_mutability: Option<ImageTagMutability>,
pub repository_policy: Option<String>,
pub lifecycle_policy: Option<String>,
pub applied_for: Option<Vec<RctAppliedFor>>,
pub custom_role_arn: Option<String>,
}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.prefix: 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.
description: Option<String>A description for the repository creation template.
encryption_configuration: Option<EncryptionConfigurationForRepositoryCreationTemplate>The encryption configuration to associate with the repository creation template.
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.
image_tag_mutability: 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.
repository_policy: 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.
lifecycle_policy: Option<String>Updates the lifecycle policy associated with the specified repository creation template.
applied_for: 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
custom_role_arn: 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.
Implementations§
source§impl UpdateRepositoryCreationTemplateInput
impl UpdateRepositoryCreationTemplateInput
sourcepub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
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) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the repository creation template.
sourcepub fn encryption_configuration(
&self,
) -> Option<&EncryptionConfigurationForRepositoryCreationTemplate>
pub fn encryption_configuration( &self, ) -> Option<&EncryptionConfigurationForRepositoryCreationTemplate>
The encryption configuration to associate with the repository creation template.
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_tags.is_none().
sourcepub fn image_tag_mutability(&self) -> Option<&ImageTagMutability>
pub fn 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) -> Option<&str>
pub fn repository_policy(&self) -> Option<&str>
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) -> Option<&str>
pub fn lifecycle_policy(&self) -> Option<&str>
Updates the lifecycle policy associated with the specified repository creation template.
sourcepub fn applied_for(&self) -> &[RctAppliedFor]
pub fn applied_for(&self) -> &[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
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .applied_for.is_none().
sourcepub fn custom_role_arn(&self) -> Option<&str>
pub fn custom_role_arn(&self) -> Option<&str>
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.
source§impl UpdateRepositoryCreationTemplateInput
impl UpdateRepositoryCreationTemplateInput
sourcepub fn builder() -> UpdateRepositoryCreationTemplateInputBuilder
pub fn builder() -> UpdateRepositoryCreationTemplateInputBuilder
Creates a new builder-style object to manufacture UpdateRepositoryCreationTemplateInput.
Trait Implementations§
source§impl Clone for UpdateRepositoryCreationTemplateInput
impl Clone for UpdateRepositoryCreationTemplateInput
source§fn clone(&self) -> UpdateRepositoryCreationTemplateInput
fn clone(&self) -> UpdateRepositoryCreationTemplateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for UpdateRepositoryCreationTemplateInput
impl PartialEq for UpdateRepositoryCreationTemplateInput
source§fn eq(&self, other: &UpdateRepositoryCreationTemplateInput) -> bool
fn eq(&self, other: &UpdateRepositoryCreationTemplateInput) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateRepositoryCreationTemplateInput
Auto Trait Implementations§
impl Freeze for UpdateRepositoryCreationTemplateInput
impl RefUnwindSafe for UpdateRepositoryCreationTemplateInput
impl Send for UpdateRepositoryCreationTemplateInput
impl Sync for UpdateRepositoryCreationTemplateInput
impl Unpin for UpdateRepositoryCreationTemplateInput
impl UnwindSafe for UpdateRepositoryCreationTemplateInput
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