Package | Description |
---|---|
com.amazonaws.auth.profile |
AWS configuration profiles allow you to share multiple sets of AWS
security credentials between different tools such as the AWS SDK for Java
and the AWS CLI.
|
com.amazonaws.auth.profile.internal |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Profile> |
ProfilesConfigFileWriter.ProfilesConfigFileWriterHelper.newProfiles
Map of all the profiles to be modified, keyed by profile names
|
private java.util.Map<java.lang.String,Profile> |
ProfilesConfigFile.profilesByName |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,Profile> |
ProfilesConfigFile.getAllProfiles()
Returns all the profiles declared in this config file.
|
private static java.util.Map<java.lang.String,Profile> |
ProfilesConfigFile.loadProfiles(java.io.File file,
ProfileCredentialsService profileCredentialsService) |
Modifier and Type | Method and Description |
---|---|
static void |
ProfilesConfigFileWriter.dumpToFile(java.io.File destination,
boolean overwrite,
Profile... profiles)
Write all the credential profiles to a file.
|
static void |
ProfilesConfigFileWriter.modifyOneProfile(java.io.File destination,
java.lang.String profileName,
Profile newProfile)
Modify one profile in the existing credentials file by in-place
modification.
|
static void |
ProfilesConfigFileWriter.modifyOrInsertProfiles(java.io.File destination,
Profile... profiles)
Modify or insert new profiles into an existing credentials file by
in-place modification.
|
private void |
ProfilesConfigFileWriter.ProfilesConfigFileWriterHelper.writeProfile(Profile profile) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
ProfilesConfigFileWriter.modifyProfiles(java.io.File destination,
java.util.Map<java.lang.String,Profile> modifications)
A package-private method that supports all kinds of profile modification,
including renaming or deleting one or more profiles.
|
Constructor and Description |
---|
ProfilesConfigFileWriterHelper(java.io.Writer writer,
java.util.Map<java.lang.String,Profile> modifications)
Creates ProfilesConfigFileWriterHelper with the specified new
profiles.
|
Modifier and Type | Method and Description |
---|---|
(package private) static Profile |
Profile.createInvalidProfile(java.lang.String profileName,
java.lang.String invalidReason)
Ideally we should throw an exception when parsing the profile but for backwards compatiblity
we return a dummy profile that will throw an exception if it is used.
|
private static Profile |
ProfilesConfigFileLoader.fromAssumeRole(java.lang.String profileName,
java.util.Map<java.lang.String,java.lang.String> properties,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> allProfileProperties,
ProfileCredentialsService profileCredentialsService) |
private static Profile |
ProfilesConfigFileLoader.fromStaticCredentials(java.lang.String profileName,
java.util.Map<java.lang.String,java.lang.String> properties) |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,Profile> |
ProfilesConfigFileLoader.loadProfiles(java.io.File file,
ProfileCredentialsService profileCredentialsService) |
private static java.util.Map<java.lang.String,Profile> |
ProfilesConfigFileLoader.loadProfiles(java.io.InputStream is,
ProfileCredentialsService profileCredentialsService)
Loads the credential profiles from the given input stream.
|