Struct aws_sdk_proton::input::create_repository_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateRepositoryInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn provider(self, input: RepositoryProvider) -> Self
pub fn provider(self, input: RepositoryProvider) -> Self
The repository provider.
sourcepub fn set_provider(self, input: Option<RepositoryProvider>) -> Self
pub fn set_provider(self, input: Option<RepositoryProvider>) -> Self
The repository provider.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The repository name (for example, myrepos/myrepo
).
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The repository name (for example, myrepos/myrepo
).
sourcepub fn connection_arn(self, input: impl Into<String>) -> Self
pub fn connection_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account. For more information, see Setting up for Proton in the Proton User Guide.
sourcepub fn set_connection_arn(self, input: Option<String>) -> Self
pub fn set_connection_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account. For more information, see Setting up for Proton in the Proton User Guide.
sourcepub fn encryption_key(self, input: impl Into<String>) -> Self
pub fn encryption_key(self, input: impl Into<String>) -> Self
The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.
sourcepub fn set_encryption_key(self, input: Option<String>) -> Self
pub fn set_encryption_key(self, input: Option<String>) -> Self
The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
sourcepub fn build(self) -> Result<CreateRepositoryInput, BuildError>
pub fn build(self) -> Result<CreateRepositoryInput, BuildError>
Consumes the builder and constructs a CreateRepositoryInput
.