Interface InstanceProfileCredentialsProvider.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceProfileCredentialsProvider.Builder,,InstanceProfileCredentialsProvider> HttpCredentialsProvider.Builder<InstanceProfileCredentialsProvider,,InstanceProfileCredentialsProvider.Builder> SdkBuilder<InstanceProfileCredentialsProvider.Builder,InstanceProfileCredentialsProvider>
- Enclosing class:
InstanceProfileCredentialsProvider
public static interface InstanceProfileCredentialsProvider.Builder
extends HttpCredentialsProvider.Builder<InstanceProfileCredentialsProvider,InstanceProfileCredentialsProvider.Builder>, CopyableBuilder<InstanceProfileCredentialsProvider.Builder,InstanceProfileCredentialsProvider>
A builder for creating a custom a
InstanceProfileCredentialsProvider.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aInstanceProfileCredentialsProviderfrom the provided configuration.profileFile(Supplier<ProfileFile> profileFileSupplier) Define the mechanism for loading profile files.profileFile(ProfileFile profileFile) Configure the profile file used for loading IMDS-related configuration, like the endpoint mode (IPv4 vs IPv6).profileName(String profileName) Configure the profile name used for loading IMDS-related configuration, like the endpoint mode (IPv4 vs IPv6).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.auth.credentials.HttpCredentialsProvider.Builder
asyncCredentialUpdateEnabled, asyncThreadName, endpointMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
profileFile
Configure the profile file used for loading IMDS-related configuration, like the endpoint mode (IPv4 vs IPv6).By default,
ProfileFile.defaultProfileFile()is used.- See Also:
-
profileFile
Define the mechanism for loading profile files.- Parameters:
profileFileSupplier- Supplier interface for generating a ProfileFile instance.- See Also:
-
profileName
Configure the profile name used for loading IMDS-related configuration, like the endpoint mode (IPv4 vs IPv6).By default,
ProfileFileSystemSetting.AWS_PROFILEis used. -
build
Build aInstanceProfileCredentialsProviderfrom the provided configuration.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceHttpCredentialsProvider.Builder<InstanceProfileCredentialsProvider,InstanceProfileCredentialsProvider.Builder> - Specified by:
buildin interfaceSdkBuilder<InstanceProfileCredentialsProvider.Builder,InstanceProfileCredentialsProvider> - Returns:
- an instance of T
-