Amazon.Runtime.InstanceProfileAWSCredentials.ValidateResponse C# (CSharp) Метод

ValidateResponse() приватный статический Метод

private static ValidateResponse ( SecurityBase response ) : void
response SecurityBase
Результат void
        private static void ValidateResponse(SecurityBase response)
        {
            if (!string.Equals(response.Code, SuccessCode, StringComparison.OrdinalIgnoreCase))
            {
                throw new AmazonServiceException(string.Format(CultureInfo.InvariantCulture, 
                    "Unable to retrieve credentials. Code = \"{0}\". Message = \"{1}\".",
                    response.Code, response.Message));
            }
        }