Struct aws_sdk_ecr::operation::create_repository_creation_template::builders::CreateRepositoryCreationTemplateInputBuilder
source · #[non_exhaustive]pub struct CreateRepositoryCreationTemplateInputBuilder { /* private fields */ }Expand description
A builder for CreateRepositoryCreationTemplateInput.
Implementations§
source§impl CreateRepositoryCreationTemplateInputBuilder
impl CreateRepositoryCreationTemplateInputBuilder
sourcepub fn prefix(self, input: impl Into<String>) -> Self
pub fn prefix(self, input: impl Into<String>) -> Self
The repository namespace prefix to associate with the template. 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/. Similarly, a prefix of prod/team would apply to all repositories beginning with prod/team/.
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.
There is always an assumed / applied to the end of the prefix. If you specify ecr-public as the prefix, Amazon ECR treats that as ecr-public/. When using a pull through cache rule, the repository prefix you specify during rule creation is what you should specify as your repository creation template prefix as well.
sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
The repository namespace prefix to associate with the template. 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/. Similarly, a prefix of prod/team would apply to all repositories beginning with prod/team/.
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.
There is always an assumed / applied to the end of the prefix. If you specify ecr-public as the prefix, Amazon ECR treats that as ecr-public/. When using a pull through cache rule, the repository prefix you specify during rule creation is what you should specify as your repository creation template prefix as well.
sourcepub fn get_prefix(&self) -> &Option<String>
pub fn get_prefix(&self) -> &Option<String>
The repository namespace prefix to associate with the template. 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/. Similarly, a prefix of prod/team would apply to all repositories beginning with prod/team/.
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.
There is always an assumed / applied to the end of the prefix. If you specify ecr-public as the prefix, Amazon ECR treats that as ecr-public/. When using a pull through cache rule, the repository prefix you specify during rule creation is what you should specify as your repository creation template prefix as well.
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 use for repositories created using the 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 use for repositories created using the template.
sourcepub fn get_encryption_configuration(
&self,
) -> &Option<EncryptionConfigurationForRepositoryCreationTemplate>
pub fn get_encryption_configuration( &self, ) -> &Option<EncryptionConfigurationForRepositoryCreationTemplate>
The encryption configuration to use for repositories created using the 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
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
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>
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
The repository policy to apply to repositories 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
The repository policy to apply to repositories 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>
The repository policy to apply to repositories 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
The lifecycle policy to use for repositories created using the template.
sourcepub fn set_lifecycle_policy(self, input: Option<String>) -> Self
pub fn set_lifecycle_policy(self, input: Option<String>) -> Self
The lifecycle policy to use for repositories created using the template.
sourcepub fn get_lifecycle_policy(&self) -> &Option<String>
pub fn get_lifecycle_policy(&self) -> &Option<String>
The lifecycle policy to use for repositories created using the 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.
A 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
A 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>>
A 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<CreateRepositoryCreationTemplateInput, BuildError>
pub fn build(self) -> Result<CreateRepositoryCreationTemplateInput, BuildError>
Consumes the builder and constructs a CreateRepositoryCreationTemplateInput.
source§impl CreateRepositoryCreationTemplateInputBuilder
impl CreateRepositoryCreationTemplateInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateRepositoryCreationTemplateOutput, SdkError<CreateRepositoryCreationTemplateError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateRepositoryCreationTemplateOutput, SdkError<CreateRepositoryCreationTemplateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateRepositoryCreationTemplateInputBuilder
impl Clone for CreateRepositoryCreationTemplateInputBuilder
source§fn clone(&self) -> CreateRepositoryCreationTemplateInputBuilder
fn clone(&self) -> CreateRepositoryCreationTemplateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateRepositoryCreationTemplateInputBuilder
impl Default for CreateRepositoryCreationTemplateInputBuilder
source§fn default() -> CreateRepositoryCreationTemplateInputBuilder
fn default() -> CreateRepositoryCreationTemplateInputBuilder
source§impl PartialEq for CreateRepositoryCreationTemplateInputBuilder
impl PartialEq for CreateRepositoryCreationTemplateInputBuilder
source§fn eq(&self, other: &CreateRepositoryCreationTemplateInputBuilder) -> bool
fn eq(&self, other: &CreateRepositoryCreationTemplateInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateRepositoryCreationTemplateInputBuilder
Auto Trait Implementations§
impl Freeze for CreateRepositoryCreationTemplateInputBuilder
impl RefUnwindSafe for CreateRepositoryCreationTemplateInputBuilder
impl Send for CreateRepositoryCreationTemplateInputBuilder
impl Sync for CreateRepositoryCreationTemplateInputBuilder
impl Unpin for CreateRepositoryCreationTemplateInputBuilder
impl UnwindSafe for CreateRepositoryCreationTemplateInputBuilder
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