Class CredentialsFactory
java.lang.Object
io.jenkins.plugins.credentials.secretsmanager.factory.CredentialsFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<com.cloudbees.plugins.credentials.common.StandardCredentials> create(String arn, String name, String description, Map<String, String> tags, software.amazon.awssdk.services.secretsmanager.SecretsManagerClient client) Construct a Jenkins credential from a Secrets Manager secret.
-
Method Details
-
create
public static Optional<com.cloudbees.plugins.credentials.common.StandardCredentials> create(String arn, String name, String description, Map<String, String> tags, software.amazon.awssdk.services.secretsmanager.SecretsManagerClient client) Construct a Jenkins credential from a Secrets Manager secret.- Parameters:
name- the secret's name (must be unique within the AWS account)description- the secret's descriptiontags- the secret's AWS tagsclient- the Secrets Manager client that will retrieve the secret's value on demand- Returns:
- a credential (if one could be constructed from the secret's properties)
-