Struct aws_sdk_ecr::operation::create_repository_creation_template::builders::CreateRepositoryCreationTemplateFluentBuilder
source · pub struct CreateRepositoryCreationTemplateFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateRepositoryCreationTemplate.
Creates a repository creation template. This template is used to define the settings for repositories created by Amazon ECR on your behalf. For example, repositories created through pull through cache actions. For more information, see Private repository creation templates in the Amazon Elastic Container Registry User Guide.
Implementations§
source§impl CreateRepositoryCreationTemplateFluentBuilder
impl CreateRepositoryCreationTemplateFluentBuilder
sourcepub fn as_input(&self) -> &CreateRepositoryCreationTemplateInputBuilder
pub fn as_input(&self) -> &CreateRepositoryCreationTemplateInputBuilder
Access the CreateRepositoryCreationTemplate as a reference.
sourcepub async fn send(
self,
) -> Result<CreateRepositoryCreationTemplateOutput, SdkError<CreateRepositoryCreationTemplateError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateRepositoryCreationTemplateOutput, SdkError<CreateRepositoryCreationTemplateError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<CreateRepositoryCreationTemplateOutput, CreateRepositoryCreationTemplateError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateRepositoryCreationTemplateOutput, CreateRepositoryCreationTemplateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 resourceTags.
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 appliedFor.
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.
Trait Implementations§
source§impl Clone for CreateRepositoryCreationTemplateFluentBuilder
impl Clone for CreateRepositoryCreationTemplateFluentBuilder
source§fn clone(&self) -> CreateRepositoryCreationTemplateFluentBuilder
fn clone(&self) -> CreateRepositoryCreationTemplateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CreateRepositoryCreationTemplateFluentBuilder
impl !RefUnwindSafe for CreateRepositoryCreationTemplateFluentBuilder
impl Send for CreateRepositoryCreationTemplateFluentBuilder
impl Sync for CreateRepositoryCreationTemplateFluentBuilder
impl Unpin for CreateRepositoryCreationTemplateFluentBuilder
impl !UnwindSafe for CreateRepositoryCreationTemplateFluentBuilder
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