Class ClientCreators


  • public class ClientCreators
    extends Object
    • Field Detail

      • localStsClient

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

      • ClientCreators

        public ClientCreators()
    • Method Detail

      • 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)