Class CredentialsFactory

java.lang.Object
io.jenkins.plugins.credentials.secretsmanager.factory.CredentialsFactory

public abstract class CredentialsFactory extends Object
  • 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 description
      tags - the secret's AWS tags
      client - 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)