pub struct CreateTemplateSyncConfig { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateTemplateSyncConfig
.
Set up a template to create new template versions automatically by tracking a linked repository. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository
.
When a commit is pushed to your linked repository, Proton checks for changes to your repository template bundles. If it detects a template bundle change, a new major or minor version of its template is created, if the version doesn’t already exist. For more information, see Template sync configurations in the Proton User Guide.
Implementations§
source§impl CreateTemplateSyncConfig
impl CreateTemplateSyncConfig
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateTemplateSyncConfig, AwsResponseRetryClassifier>, SdkError<CreateTemplateSyncConfigError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateTemplateSyncConfig, AwsResponseRetryClassifier>, SdkError<CreateTemplateSyncConfigError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateTemplateSyncConfigOutput, SdkError<CreateTemplateSyncConfigError>>
pub async fn send(
self
) -> Result<CreateTemplateSyncConfigOutput, SdkError<CreateTemplateSyncConfigError>>
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 template_name(self, input: impl Into<String>) -> Self
pub fn template_name(self, input: impl Into<String>) -> Self
The name of your registered template.
sourcepub fn set_template_name(self, input: Option<String>) -> Self
pub fn set_template_name(self, input: Option<String>) -> Self
The name of your registered template.
sourcepub fn template_type(self, input: TemplateType) -> Self
pub fn template_type(self, input: TemplateType) -> Self
The type of the registered template.
sourcepub fn set_template_type(self, input: Option<TemplateType>) -> Self
pub fn set_template_type(self, input: Option<TemplateType>) -> Self
The type of the registered template.
sourcepub fn repository_provider(self, input: RepositoryProvider) -> Self
pub fn repository_provider(self, input: RepositoryProvider) -> Self
The provider type for your repository.
sourcepub fn set_repository_provider(self, input: Option<RepositoryProvider>) -> Self
pub fn set_repository_provider(self, input: Option<RepositoryProvider>) -> Self
The provider type for your repository.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The repository name (for example, myrepos/myrepo
).
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The repository name (for example, myrepos/myrepo
).
sourcepub fn set_branch(self, input: Option<String>) -> Self
pub fn set_branch(self, input: Option<String>) -> Self
The repository branch for your template.
sourcepub fn subdirectory(self, input: impl Into<String>) -> Self
pub fn subdirectory(self, input: impl Into<String>) -> Self
A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory.
sourcepub fn set_subdirectory(self, input: Option<String>) -> Self
pub fn set_subdirectory(self, input: Option<String>) -> Self
A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory.
Trait Implementations§
source§impl Clone for CreateTemplateSyncConfig
impl Clone for CreateTemplateSyncConfig
source§fn clone(&self) -> CreateTemplateSyncConfig
fn clone(&self) -> CreateTemplateSyncConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more