aws_sdk_codeartifact/client/
get_repository_endpoint.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 [`GetRepositoryEndpoint`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`domain(impl Into<String>)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain that contains the repository.</p><br>
7    ///   - [`domain_owner(impl Into<String>)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::set_domain_owner):<br>required: **false**<br><p>The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces.</p><br>
8    ///   - [`repository(impl Into<String>)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::repository) / [`set_repository(Option<String>)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::set_repository):<br>required: **true**<br><p>The name of the repository.</p><br>
9    ///   - [`format(PackageFormat)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::format) / [`set_format(Option<PackageFormat>)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::set_format):<br>required: **true**<br><p>Returns which endpoint of a repository to return. A repository has one endpoint for each package format.</p><br>
10    ///   - [`endpoint_type(EndpointType)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::endpoint_type) / [`set_endpoint_type(Option<EndpointType>)`](crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::set_endpoint_type):<br>required: **false**<br><p>A string that specifies the type of endpoint.</p><br>
11    /// - On success, responds with [`GetRepositoryEndpointOutput`](crate::operation::get_repository_endpoint::GetRepositoryEndpointOutput) with field(s):
12    ///   - [`repository_endpoint(Option<String>)`](crate::operation::get_repository_endpoint::GetRepositoryEndpointOutput::repository_endpoint): <p>A string that specifies the URL of the returned endpoint.</p>
13    /// - On failure, responds with [`SdkError<GetRepositoryEndpointError>`](crate::operation::get_repository_endpoint::GetRepositoryEndpointError)
14    pub fn get_repository_endpoint(&self) -> crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder {
15        crate::operation::get_repository_endpoint::builders::GetRepositoryEndpointFluentBuilder::new(self.handle.clone())
16    }
17}