Class ClientCreators
- java.lang.Object
-
- io.openraven.magpie.plugins.aws.discovery.ClientCreators
-
public class ClientCreators extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static software.amazon.awssdk.services.sts.StsClientlocalStsClient
-
Constructor Summary
Constructors Constructor Description ClientCreators()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MagpieAWSClientCreatorassumeRoleCreator(software.amazon.awssdk.regions.Region region, String roleArn, String externalId, AWSDiscoveryConfig.ProxyRoleConfig proxyRoleConfig)static MagpieAWSClientCreatorlocalClientCreator(software.amazon.awssdk.regions.Region region)
-
-
-
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 assumeexternalId- 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)
-
-