Interface ApiKeySecretInput.Builder

  • Method Details

    • apiKey

      The API key value. The service stores it in an AWS Secrets Manager secret that the service owns. Write-only: reads return only the ARN of the secret holding it.

      Parameters:
      apiKey - The API key value. The service stores it in an AWS Secrets Manager secret that the service owns. Write-only: reads return only the ARN of the secret holding it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • apiKeySecretReference

      ApiKeySecretInput.Builder apiKeySecretReference(SecretReference apiKeySecretReference)

      An AWS Secrets Manager secret you own that holds the API key. The service reads the key from your secret rather than storing a copy of its own.

      Parameters:
      apiKeySecretReference - An AWS Secrets Manager secret you own that holds the API key. The service reads the key from your secret rather than storing a copy of its own.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • apiKeySecretReference

      default ApiKeySecretInput.Builder apiKeySecretReference(Consumer<SecretReference.Builder> apiKeySecretReference)

      An AWS Secrets Manager secret you own that holds the API key. The service reads the key from your secret rather than storing a copy of its own.

      This is a convenience method that creates an instance of the SecretReference.Builder avoiding the need to create one manually via SecretReference.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to apiKeySecretReference(SecretReference).

      Parameters:
      apiKeySecretReference - a consumer that will call methods on SecretReference.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: