Class ClientCreators

java.lang.Object
io.openraven.magpie.plugins.aws.discovery.ClientCreators

public class ClientCreators extends Object
  • Field Details

    • localStsClient

      public static final software.amazon.awssdk.services.sts.StsClient localStsClient
  • Constructor Details

    • ClientCreators

      public ClientCreators()
  • Method Details

    • assumeRoleCreator

      public static MagpieAWSClientCreator assumeRoleCreator(software.amazon.awssdk.regions.Region region, String roleArn, @Nullable String externalId, @Nullable AWSDiscoveryConfig.ProxyRoleConfig proxyRoleConfig)
      Parameters:
      region - The region endpoint to use for the client, when created.
      roleArn - Role to assume
      externalId - Optional (nullable) external ID set on the client builder.
      proxyRoleConfig - Optional (nullable) configuration object for proxy-based arn discovery.
      Returns:
      A new ClientCreator instanced used for assume role based discovery.
    • localClientCreator

      public static MagpieAWSClientCreator localClientCreator(software.amazon.awssdk.regions.Region region)