#[non_exhaustive]pub struct AssociateRepositoryInput {
pub repository: Option<Repository>,
pub client_request_token: Option<String>,
pub tags: Option<HashMap<String, String>>,
pub kms_key_details: Option<KmsKeyDetails>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.repository: Option<Repository>
The repository to associate.
client_request_token: Option<String>
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.
kms_key_details: 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.
Implementations§
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.
source§impl AssociateRepositoryInput
impl AssociateRepositoryInput
sourcepub fn builder() -> AssociateRepositoryInputBuilder
pub fn builder() -> AssociateRepositoryInputBuilder
Creates a new builder-style object to manufacture AssociateRepositoryInput
.
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 moresource§impl Debug for AssociateRepositoryInput
impl Debug for AssociateRepositoryInput
source§impl PartialEq for AssociateRepositoryInput
impl PartialEq for AssociateRepositoryInput
source§fn eq(&self, other: &AssociateRepositoryInput) -> bool
fn eq(&self, other: &AssociateRepositoryInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AssociateRepositoryInput
Auto Trait Implementations§
impl Freeze for AssociateRepositoryInput
impl RefUnwindSafe for AssociateRepositoryInput
impl Send for AssociateRepositoryInput
impl Sync for AssociateRepositoryInput
impl Unpin for AssociateRepositoryInput
impl UnwindSafe for AssociateRepositoryInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more