Struct aws_sdk_codebuild::types::RegistryCredential
source · #[non_exhaustive]pub struct RegistryCredential {
pub credential: String,
pub credential_provider: CredentialProviderType,
}
Expand description
Information about credentials that provide access to a private Docker registry. When this is set:
-
imagePullCredentialsType
must be set toSERVICE_ROLE
. -
images cannot be curated or an Amazon ECR image.
For more information, see Private Registry with Secrets Manager Sample for CodeBuild.
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.credential: String
The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon Web Services Region.
credential_provider: CredentialProviderType
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
Implementations§
source§impl RegistryCredential
impl RegistryCredential
sourcepub fn credential(&self) -> &str
pub fn credential(&self) -> &str
The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.
The credential
can use the name of the credentials only if they exist in your current Amazon Web Services Region.
sourcepub fn credential_provider(&self) -> &CredentialProviderType
pub fn credential_provider(&self) -> &CredentialProviderType
The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.
source§impl RegistryCredential
impl RegistryCredential
sourcepub fn builder() -> RegistryCredentialBuilder
pub fn builder() -> RegistryCredentialBuilder
Creates a new builder-style object to manufacture RegistryCredential
.
Trait Implementations§
source§impl Clone for RegistryCredential
impl Clone for RegistryCredential
source§fn clone(&self) -> RegistryCredential
fn clone(&self) -> RegistryCredential
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegistryCredential
impl Debug for RegistryCredential
source§impl PartialEq for RegistryCredential
impl PartialEq for RegistryCredential
source§fn eq(&self, other: &RegistryCredential) -> bool
fn eq(&self, other: &RegistryCredential) -> bool
self
and other
values to be equal, and is used
by ==
.