private void GetFromCommandLine(out AWSPSCredentials awsPSCredentialsFromCommandLine, out RegionEndpoint regionFromCommandLine)
        {
            // Retrieve credentials if passed in (or from Instance Profile)
            if (this.TryGetCredentials(Host, out awsPSCredentialsFromCommandLine, SessionState))
            {
                WriteVerbose(string.Format("{0}: Credentials for this shell were set from {1}",
                                           MyInvocation.MyCommand.Name,
                                           ServiceCmdlet.FormatCredentialSourceForDisplay(awsPSCredentialsFromCommandLine)));
            }

            RegionSource regionSource;

            if (this.TryGetRegion(true, out regionFromCommandLine, out regionSource, SessionState))
            {
                WriteVerbose(string.Format("{0}: Region '{1}' was set for this shell from {2}",
                                           MyInvocation.MyCommand.Name,
                                           regionFromCommandLine.SystemName,
                                           ServiceCmdlet.FormatRegionSourceForDisplay(regionSource)));
            }
        }
 internal static string CredentialsSourceMessage(AWSPSCredentials creds)
 {
     return(string.Format(CredentialsSourceMsg, ServiceCmdlet.FormatCredentialSourceForDisplay(creds)));
 }