Class ClientCreators
java.lang.Object
io.openraven.magpie.plugins.aws.discovery.ClientCreators
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final software.amazon.awssdk.services.sts.StsClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MagpieAWSClientCreatorassumeRoleCreator(software.amazon.awssdk.regions.Region region, String roleArn, String externalId, AWSDiscoveryConfig.ProxyRoleConfig proxyRoleConfig) static MagpieAWSClientCreatorlocalClientCreator(software.amazon.awssdk.regions.Region region)
-
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 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)
-