aws_sdk_ecr/client/
update_repository_creation_template.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateRepositoryCreationTemplate`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`prefix(impl Into<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::prefix) / [`set_prefix(Option<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_prefix):<br>required: **true**<br><p>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 <code>prod</code> would apply to all repositories beginning with <code>prod/</code>. This includes a repository named <code>prod/team1</code> as well as a repository named <code>prod/repository1</code>.</p> <p>To apply a template to all repositories in your registry that don't have an associated creation template, you can use <code>ROOT</code> as the prefix.</p><br>
7    ///   - [`description(impl Into<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_description):<br>required: **false**<br><p>A description for the repository creation template.</p><br>
8    ///   - [`encryption_configuration(EncryptionConfigurationForRepositoryCreationTemplate)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::encryption_configuration) / [`set_encryption_configuration(Option<EncryptionConfigurationForRepositoryCreationTemplate>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_encryption_configuration):<br>required: **false**<br><p>The encryption configuration to associate with the repository creation template.</p><br>
9    ///   - [`resource_tags(Tag)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::resource_tags) / [`set_resource_tags(Option<Vec::<Tag>>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_resource_tags):<br>required: **false**<br><p>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.</p><br>
10    ///   - [`image_tag_mutability(ImageTagMutability)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::image_tag_mutability) / [`set_image_tag_mutability(Option<ImageTagMutability>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_image_tag_mutability):<br>required: **false**<br><p>Updates the tag mutability setting for the repository. If this parameter is omitted, the default setting of <code>MUTABLE</code> will be used which will allow image tags to be overwritten. If <code>IMMUTABLE</code> is specified, all image tags within the repository will be immutable which will prevent them from being overwritten.</p><br>
11    ///   - [`repository_policy(impl Into<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::repository_policy) / [`set_repository_policy(Option<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_repository_policy):<br>required: **false**<br><p>Updates the repository policy created using the template. A repository policy is a permissions policy associated with a repository to control access permissions.</p><br>
12    ///   - [`lifecycle_policy(impl Into<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::lifecycle_policy) / [`set_lifecycle_policy(Option<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_lifecycle_policy):<br>required: **false**<br><p>Updates the lifecycle policy associated with the specified repository creation template.</p><br>
13    ///   - [`applied_for(RctAppliedFor)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::applied_for) / [`set_applied_for(Option<Vec::<RctAppliedFor>>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_applied_for):<br>required: **false**<br><p>Updates the list of enumerable strings representing the Amazon ECR repository creation scenarios that this template will apply towards. The two supported scenarios are <code>PULL_THROUGH_CACHE</code> and <code>REPLICATION</code></p><br>
14    ///   - [`custom_role_arn(impl Into<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::custom_role_arn) / [`set_custom_role_arn(Option<String>)`](crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::set_custom_role_arn):<br>required: **false**<br><p>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.</p><br>
15    /// - On success, responds with [`UpdateRepositoryCreationTemplateOutput`](crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateOutput) with field(s):
16    ///   - [`registry_id(Option<String>)`](crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateOutput::registry_id): <p>The registry ID associated with the request.</p>
17    ///   - [`repository_creation_template(Option<RepositoryCreationTemplate>)`](crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateOutput::repository_creation_template): <p>The details of the repository creation template associated with the request.</p>
18    /// - On failure, responds with [`SdkError<UpdateRepositoryCreationTemplateError>`](crate::operation::update_repository_creation_template::UpdateRepositoryCreationTemplateError)
19    pub fn update_repository_creation_template(
20        &self,
21    ) -> crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder {
22        crate::operation::update_repository_creation_template::builders::UpdateRepositoryCreationTemplateFluentBuilder::new(self.handle.clone())
23    }
24}