/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DisableKeyResponse response = new DisableKeyResponse(); 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) { DisableKeyResponse response = new DisableKeyResponse(); return response; }
public static DisableKeyResponse Unmarshall(UnmarshallerContext context) { DisableKeyResponse disableKeyResponse = new DisableKeyResponse(); disableKeyResponse.HttpResponse = context.HttpResponse; disableKeyResponse.RequestId = context.StringValue("DisableKey.RequestId"); return disableKeyResponse; }
public static DisableKeyResponse Unmarshall(UnmarshallerContext context) { DisableKeyResponse disableKeyResponse = new DisableKeyResponse(); disableKeyResponse.HttpResponse = context.HttpResponse; disableKeyResponse.RequestId = context.StringValue("DisableKey.RequestId"); return(disableKeyResponse); }
private static async Task DisableKey(KmsManagementClient kmsManagementClient, string keyId) { logger.Info("Disable Key"); DisableKeyRequest disableKeyRequest = new DisableKeyRequest { KeyId = keyId }; DisableKeyResponse disableKeyResponse = await kmsManagementClient.DisableKey(disableKeyRequest); logger.Info($"Key Disabled Successfully: {disableKeyResponse.Key.DisplayName}"); }