#[non_exhaustive]pub struct AssociateRepositoryInput { /* private fields */ }Implementations§
source§impl AssociateRepositoryInput
impl AssociateRepositoryInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AssociateRepository, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AssociateRepository, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssociateRepository>
Examples found in repository?
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssociateRepository,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssociateRepositoryError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AssociateRepositoryOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateRepositoryError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AssociateRepositoryInput.
source§impl AssociateRepositoryInput
impl AssociateRepositoryInput
sourcepub fn repository(&self) -> Option<&Repository>
pub fn repository(&self) -> Option<&Repository>
The repository to associate.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
Amazon CodeGuru Reviewer uses this value to prevent the accidental creation of duplicate repository associations if there are failures and retries.
An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
-
A tag key (for example,
CostCenter,Environment,Project, orSecret). Tag keys are case sensitive. -
An optional field known as a tag value (for example,
111122223333,Production, or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
sourcepub fn kms_key_details(&self) -> Option<&KmsKeyDetails>
pub fn kms_key_details(&self) -> Option<&KmsKeyDetails>
A KMSKeyDetails object that contains:
-
The encryption option for this repository association. It is either owned by Amazon Web Services Key Management Service (KMS) (
AWS_OWNED_CMK) or customer managed (CUSTOMER_MANAGED_CMK). -
The ID of the Amazon Web Services KMS key that is associated with this repository association.
Trait Implementations§
source§impl Clone for AssociateRepositoryInput
impl Clone for AssociateRepositoryInput
source§fn clone(&self) -> AssociateRepositoryInput
fn clone(&self) -> AssociateRepositoryInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more