public AwsSecret GetSecret(string secretId) { try { var body = $"{{ \"SecretId\": \"{secretId}\" }}"; var headers = this.SetHeaders(body); var request = HttpHelpers.ConstructWebRequest(endpointUri, httpMethod, headers, body); var responseBody = HttpHelpers.GetResponseBody(request); var secret = JsonConvert.DeserializeObject <AwsSecret>(responseBody); return(secret); } catch { throw; } }