Class SecretsManagerClientFactory

java.lang.Object
io.micronaut.aws.sdk.v2.service.AwsClientFactory<software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerClient,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient>
io.micronaut.aws.sdk.v2.service.secretsmanager.SecretsManagerClientFactory

@Factory public class SecretsManagerClientFactory extends AwsClientFactory<software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerClient,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient>
Factory that creates a Secrets Manager client.
Since:
2.6.0
Author:
Sergio del Amo
  • Field Summary

    Fields inherited from class io.micronaut.aws.sdk.v2.service.AwsClientFactory

    configuration, credentialsProvider, regionProvider, userAgentProvider
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SecretsManagerClientFactory(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProviderChain regionProvider, @Nullable UserAgentProvider userAgentProvider, @Nullable AWSServiceConfiguration awsServiceConfiguration)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder
    asyncBuilder(software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient)
    Configures the builder so that it uses the appropriate HTTP client, credentials and region providers.
    software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient
    asyncClient(software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder builder)
    Creates the async client.
    protected software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder
    Implementations need to create the builder, eg: S3AsyncClient.builder();.
    protected software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder
    Implementations need to create the builder, eg: S3Client.builder();.
    software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder
    syncBuilder(software.amazon.awssdk.http.SdkHttpClient httpClient)
    Configures the builder so that it uses the appropriate HTTP client, credentials and region providers.
    software.amazon.awssdk.services.secretsmanager.SecretsManagerClient
    syncClient(software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder builder)
    Creates the sync client.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SecretsManagerClientFactory

      protected SecretsManagerClientFactory(software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain credentialsProvider, software.amazon.awssdk.regions.providers.AwsRegionProviderChain regionProvider, @Nullable @Nullable UserAgentProvider userAgentProvider, @Nullable @Named("secretsmanager") @Nullable AWSServiceConfiguration awsServiceConfiguration)
      Constructor.
      Parameters:
      credentialsProvider - The credentials provider
      regionProvider - The region provider
      userAgentProvider - User-Agent Provider
      awsServiceConfiguration - AWS Service Configuration
  • Method Details

    • createSyncBuilder

      protected software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder createSyncBuilder()
      Description copied from class: AwsClientFactory
      Implementations need to create the builder, eg: S3Client.builder();.
      Specified by:
      createSyncBuilder in class AwsClientFactory<software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerClient,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient>
      Returns:
      The sync builder
    • createAsyncBuilder

      protected software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder createAsyncBuilder()
      Description copied from class: AwsClientFactory
      Implementations need to create the builder, eg: S3AsyncClient.builder();.
      Specified by:
      createAsyncBuilder in class AwsClientFactory<software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerClient,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient>
      Returns:
      The async builder
    • syncBuilder

      @Singleton public software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder syncBuilder(software.amazon.awssdk.http.SdkHttpClient httpClient)
      Description copied from class: AwsClientFactory
      Configures the builder so that it uses the appropriate HTTP client, credentials and region providers. Subclasses may want to override this method and annotate it with @Singleton.
      Overrides:
      syncBuilder in class AwsClientFactory<software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerClient,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient>
      Parameters:
      httpClient - The sync HTTP client
      Returns:
      The sync builder
    • syncClient

      @Bean(preDestroy="close") @Singleton public software.amazon.awssdk.services.secretsmanager.SecretsManagerClient syncClient(software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder builder)
      Description copied from class: AwsClientFactory
      Creates the sync client. It requires a bean of type SB.
      Overrides:
      syncClient in class AwsClientFactory<software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerClient,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient>
      Parameters:
      builder - The sync builder
      Returns:
      The sync AWS client
      See Also:
    • asyncBuilder

      @Singleton @Requires(beans=software.amazon.awssdk.http.async.SdkAsyncHttpClient.class) public software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder asyncBuilder(software.amazon.awssdk.http.async.SdkAsyncHttpClient httpClient)
      Description copied from class: AwsClientFactory
      Configures the builder so that it uses the appropriate HTTP client, credentials and region providers. Subclasses may want to override this method and annotate it with @Singleton.
      Overrides:
      asyncBuilder in class AwsClientFactory<software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerClient,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient>
      Parameters:
      httpClient - The async HTTP client
      Returns:
      The async builder
    • asyncClient

      @Bean(preDestroy="close") @Singleton @Requires(beans=software.amazon.awssdk.http.async.SdkAsyncHttpClient.class) public software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient asyncClient(software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder builder)
      Description copied from class: AwsClientFactory
      Creates the async client. It requires a bean of type AB.
      Overrides:
      asyncClient in class AwsClientFactory<software.amazon.awssdk.services.secretsmanager.SecretsManagerClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClientBuilder,software.amazon.awssdk.services.secretsmanager.SecretsManagerClient,software.amazon.awssdk.services.secretsmanager.SecretsManagerAsyncClient>
      Parameters:
      builder - The async builder
      Returns:
      The async AWS client