/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { EnableKeyResponse response = new EnableKeyResponse(); return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { EnableKeyResponse response = new EnableKeyResponse(); return(response); }
public static EnableKeyResponse Unmarshall(UnmarshallerContext context) { EnableKeyResponse enableKeyResponse = new EnableKeyResponse(); enableKeyResponse.HttpResponse = context.HttpResponse; enableKeyResponse.RequestId = context.StringValue("EnableKey.RequestId"); return enableKeyResponse; }
public static EnableKeyResponse Unmarshall(UnmarshallerContext _ctx) { EnableKeyResponse enableKeyResponse = new EnableKeyResponse(); enableKeyResponse.HttpResponse = _ctx.HttpResponse; enableKeyResponse.RequestId = _ctx.StringValue("EnableKey.RequestId"); return(enableKeyResponse); }
public static EnableKeyResponse Unmarshall(UnmarshallerContext context) { EnableKeyResponse enableKeyResponse = new EnableKeyResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("EnableKey.RequestId") }; return(enableKeyResponse); }
private static async Task EnableKey(KmsManagementClient kmsManagementClient, string keyId) { logger.Info("Enable Key"); EnableKeyRequest enableKeyRequest = new EnableKeyRequest { KeyId = keyId }; EnableKeyResponse enableKeyResponse = await kmsManagementClient.EnableKey(enableKeyRequest); logger.Info($"Key Disabled Successfully: {enableKeyResponse.Key.DisplayName}"); }