public final class ProfileFile extends Object
For more information on setting up AWS configuration profiles, see: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
 A profile file can be created with builder() and merged with other profiles files with aggregator(). By
 default, the SDK will use the defaultProfileFile() when that behavior hasn't been explicitly overridden.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ProfileFile.AggregatorA mechanism for merging multiple  ProfileFiles together into a single file. | 
| static interface  | ProfileFile.BuilderA builder for a  ProfileFile. | 
| static class  | ProfileFile.TypeThe supported types of profile files. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ProfileFile.Aggregator | aggregator()Create a builder that can merge multiple  ProfileFiles together. | 
| static ProfileFile.Builder | builder()Create a builder for a  ProfileFile. | 
| static ProfileFile | defaultProfileFile()Get the default profile file, using the credentials file from "~/.aws/credentials", the config file from "~/.aws/config"
 and the "default" profile. | 
| boolean | equals(Object o) | 
| int | hashCode() | 
| Optional<Profile> | profile(String profileName)Retrieve the profile from this file with the given name. | 
| Map<String,Profile> | profiles()Retrieve an unmodifiable collection including all of the profiles in this file. | 
| String | toString() | 
public static ProfileFile.Builder builder()
ProfileFile.public static ProfileFile.Aggregator aggregator()
ProfileFiles together.public static ProfileFile defaultProfileFile()
SdkSystemSetting.AWS_SHARED_CREDENTIALS_FILE, SdkSystemSetting.AWS_CONFIG_FILE and
 SdkSystemSetting.AWS_PROFILE settings or by specifying a different profile file and profile namepublic Optional<Profile> profile(String profileName)
profileName - The name of the profile that should be retrieved from this file.public Map<String,Profile> profiles()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.