Package ai.clarity.codeartifact
Class CodeArtifactCredentials
java.lang.Object
ai.clarity.codeartifact.CodeArtifactCredentials
Static AWS credentials of a service account, used to request the CodeArtifact authorization token without relying on
a local AWS profile.
A session token can be supplied for temporary credentials, and must be omitted for the long lived access keys of an IAM user.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThe access key id with its middle section hidden, safe to write to the build log.inthashCode()static CodeArtifactCredentialsstatic CodeArtifactCredentialsstatic CodeArtifactCredentialsBuilds the credentials from a map, which is the shape the Groovy DSL passes them in, as incodeartifact(url, [accessKeyId: '...', secretAccessKey: '...']).toString()Redacted on purpose: these credentials end up in build logs and in Gradle error messages.
-
Method Details
-
of
-
of
public static CodeArtifactCredentials of(String accessKeyId, String secretAccessKey, String sessionToken) -
of
Builds the credentials from a map, which is the shape the Groovy DSL passes them in, as incodeartifact(url, [accessKeyId: '...', secretAccessKey: '...']). -
getAccessKeyId
-
getMaskedAccessKeyId
The access key id with its middle section hidden, safe to write to the build log. -
equals
-
hashCode
public int hashCode() -
toString
Redacted on purpose: these credentials end up in build logs and in Gradle error messages.
-